Query the Subscription of P-Series Hosting Package
Query the detailed information of the P-Series Hosting Package subscription.
Request URL
GET {base_url}/dm/open_api/v1/subscription
Request parameters
Headers
Parameter | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | Pass the access token in the header. Format: Bearer {access_token}. |
Response parameters
Parameter | Type | Description |
---|---|---|
data | Object <Details> | The detailed information. |
requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
status | String | Request result:
|
time | Long | The response time. Note: The YCM API response returns a
timestamp, you can convert the timestamp to detailed
date and time as needed. For more information, see Convert Timestamp to Local Date and Time.
|
Details
Parameter | Type | Description |
---|---|---|
capacity | Object <Capacity> | The capacity of the P-Series Hosting Package. |
expirationTime | Long | The expiration time of the P-Series Hosting Package. Note: The YCM API response returns a
timestamp, you can convert the timestamp to detailed
date and time as needed. For more information, see Convert Timestamp to Local Date and Time.
|
recordingExpireDate | Long | The expiration time of Call Recording service. |
highAvailability | String | The subscription status of High Availability service.
|
whiteLabel | String | The subscription status of White Label service.
|
- Capacity
-
Parameter Type Description total Object <Total> Total capacity. used Object <Used> Used capacity. available Object <Available> Available capacity.
Example
Request example
GET /dm/open_api/v1/subscription HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21Kd3RQYXlsb2FkSW5mbyI6eyJncmFudFR5cGUiOiJjbGllbnRfY3JlZGVudGlhbHMiLCJ5c0lkIjoxNzg5NjM2MDM5MDg1MDI1NzM0OSwidmVyc2lvbiI6MTYzODk1OTkwOSwicmVmcmVzaFZlcnNpb24iOjE2NjM1NTkwMDZ9LCJzY29wZSI6WyJhbGwiXSwiZXhwIjoxNjYzNTYwODA2LCJhdXRob3JpdGllcyI6WyJST0xFX0NMSUVOVCJdLCJqdGkiOiI2N2FmZDY4OS01N2M4LTQ3ZjAtYjg5OS04MmJjNjMzZjZhNmQiLCJjbGllbnRfaWQiOiJrcDl5eW50bXVlc3VrNWpvV3ZNa1RiQ0J4cU82TEtSaCJ9.RkrDaoBpepDUY4FurjRsRZ8JvlwVbEdPguWgsHIjFuk
Response exampleHTTP/1.1 200 OK
{
"data": {
"capacity": {
"total": {
"extensionCapacity": 50,
"concurrentCallCapacity": 50,
"recordingCapacity": 500
},
"used": {
"extensionCapacity": 30,
"concurrentCallCapacity": 20,
"recordingCapacity": 200,
"frozenExtensionCapacity": 0,
"assignedToResellerExtensionCapacity": 20,
"assignedToResellerConcurrentCallCapacity": 10,
"assignedToResellerRecordingCapacity": 150
},
"available": {
"extensionCapacity": 20,
"concurrentCallCapacity": 30,
"recordingCapacity": 300
}
},
"expirationTime": 1734274802,
"recordingExpireDate": 1748658872,
"highAvailability": "Enabled",
"whiteLabel": "Subscribed"
},
"requestId": "6bde21ce407114f24e93436788bd79b3",
"status": "Success",
"time": 1666141827
}