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.RkrDaoBpepDUY4FurjRsRZ8JvlwVbEdPguWgsHIjFukResponse example
HTTP/1.1 200 OK { "data": { "capacity": { "total": { "extensionCapacity": 1400, "concurrentCallCapacity": 1400, "recordingCapacity": 10000, "transcriptionCapacity": 10000, "ultimatePlanCapacity": 500 }, "used": { "extensionCapacity": 60, "concurrentCallCapacity": 10, "recordingCapacity": 100, "transcriptionCapacity": 500, "ultimatePlanCapacity": 50 }, "available": { "extensionCapacity": 1340, "concurrentCallCapacity": 1390, "recordingCapacity": 9900, "transcriptionCapacity": 9500, "ultimatePlanCapacity": 450 } }, "expirationTime": 1734274802, "recordingExpireDate": 1748658872, "highAvailability": "Enabled", "whiteLabel": "Subscribed" }, "requestId": "8a0f4ed371214dbc3dc6ab67f4c36c37", "status": "Success", "time": 1663559015 }