Cloud Phone Renewal Price Calculation
Cloud phone renewal price calculation.
Interface Address:
text
/papi/order/renewal/price-calcRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID. See API Rules for authentication |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 result |
| X-Timestamp | string | Yes | Millisecond-level Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10~32 lowercase letters + digits |
Body Parameters:
The request body is an array, each element contains the following fields:
| Parameter | Type | Required | Description |
|---|---|---|---|
| skuCode | string | Yes | SKU code |
| containerSids | array[string] | Yes | Cloud phone ID list |
| packageCode | string | Yes | Package code |
Request Example:
json
[
{
"skuCode": "cvqhptc25b",
"containerSids": ["fIKM/0Z0rK4q32eN0Bet/w=="],
"packageCode": "7dfg9d3c9u"
}
]Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | object | Response data |
| ├─ totalContainerCount | integer | Total cloud phone count |
| ├─ currency | string | Currency type |
| ├─ currencySymbol | string | Currency symbol |
| ├─ currencyUnit | string | Currency unit |
| ├─ skuGroupResults | array[object] | SKU group calculation result list |
| ├─├─ skuCode | string | SKU code |
| ├─├─ skuName | string | SKU name |
| ├─├─ aliasCode | string | SKU alias code |
| ├─├─ packageCode | string | Package code |
| ├─├─ packageName | string | Package name |
| ├─├─ packagePrice | number | Package price |
| ├─├─ period | integer | Package period |
| ├─├─ unit | integer | Period unit |
| ├─├─ containerCount | integer | Cloud phone count |
| ├─├─ originalPrice | number | Original price (US cents) |
| ├─├─ favorablePrice | number | Discounted price (US cents) |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"totalContainerCount": 0,
"currency": "",
"currencySymbol": "",
"currencyUnit": "",
"skuGroupResults": [
{
"skuCode": "",
"skuName": "",
"aliasCode": "",
"packageCode": "",
"packageName": "",
"packagePrice": 0,
"period": 0,
"unit": 0,
"containerCount": 0,
"originalPrice": 0,
"favorablePrice": 0
}
]
},
"msg": ""
}