Queries the renewal fees for a subscription instance.
Operation description
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. | ETnLKlblzczshOTUbOCzxxxxxxxxxx |
DBInstanceId | string | Yes | The instance ID. You can call the DescribeDBInstances operation to query the instance ID. | rm-uf6wjk5xxxxxx |
RegionId | string | No | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
PayType | string | No | The billing method of the instance. Valid values:
| Postpaid |
DBInstanceClass | string | No | The instance type of the instance. For more information, see Primary instance types. By default, the current instance type applies. | mysql.n2.medium.2c |
UsedTime | integer | Yes | The subscription duration of the instance. Valid values:
| 1 |
TimeType | string | Yes | The renewal cycle of the instance. Valid values:
| Year |
Quantity | integer | No | The number of the instances. Default value: 1. | 1 |
OrderType | string | No | The type of the order that you want to place. Set the value to BUY. | BUY |
BusinessInfo | string | No | The additional business information about the instance. | 121436975448952 |
ResourceGroupId | string | No | The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID. | rg-acfmx**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "DC9F4EF6-D038-4405-B497-1F48E722C9F2",
"PriceInfo": {
"OriginalPrice": 138,
"DiscountPrice": 27,
"Currency": "CNY",
"TradePrice": 111,
"Coupons": {
"Coupon": [
{
"IsSelected": "true",
"CouponNo": "123456",
"Name": "test",
"Description": "test"
}
]
},
"RuleIds": {
"RuleId": [
"1001199213"
]
},
"ActivityInfo": {
"CheckErrMsg": "Error description\n",
"ErrorCode": " 123456",
"Success": "Success"
}
},
"Rules": {
"Rule": [
{
"Name": "test",
"Description": "Content\n",
"RuleId": 1001199213
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | SYSTEM.SaleValidateFailed | The request not refer to the correct order period. please check your Period or UsedTime param. |
400 | OrdQueryAccountError | Error calling account service. |
400 | Price.WanHuaTong.sys | Inquiry error. |
404 | canNotFindSubscription | Subscription information not found. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-09-08 | The Error code has changed | see changesets | ||||||
| ||||||||
2023-07-21 | The request parameters of the API has changed | see changesets | ||||||
|