Domain name for API request: cdn.tencentcloudapi.com.
This API (DescribePayType) is used to query billing information of the current account, such as billing mode and billing cycle.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribePayType. |
Version | Yes | String | Common Params. The value used for this API: 2018-06-06. |
Region | No | String | Common Params. This parameter is not required for this API. |
Area | No | String | Specifies a service region.mainland : queries billing methods within Mainland China;overseas : queries billing methods outside Mainland China.Default value: mainland . |
Product | No | String | Specifies the product to query, either cdn (default) or ecdn . |
Parameter Name | Type | Description |
---|---|---|
PayType | String | Billing modes:flux : Bill by trafficbandwidth : Bill by bandwidthrequest : Bill by the number of requestsflux_sep : Disused fieldbandwidth_sep : Disused fieldWhen you change a daily billing mode to another, and there is network usage on the day of change, this field shows the new billing mode, which takes effect from the next day. If there is no network usage on the day of change, this field shows the new billing mode directly. |
BillingCycle | String | Billing cycle:day : Dailymonth : Monthly hour : Hourly |
StatType | String | monthMax : billed by the monthly average of daily peak traffic (monthly settlement)day95 : billed by the daily 95th percentile bandwidth (monthly settlement)month95 : billed by the monthly 95th percentile bandwidth (monthly settlement)sum : billed by the total traffic/total requests (daily or monthly settlement)max : billed by the peak bandwidth (daily settlement) |
RegionType | String | Billing method outside Mainland China:all : unified billing for all regionsmultiple : separate billing for different regions |
CurrentPayType | String | The current billing mode in effect:flux : Bill by trafficbandwidth : Bill by bandwidthrequest : Bill by the number of requestsflux_sep : Disused fieldbandwidth_sep : Disused field |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://cdn.tencentcloudapi.com/?Action=DescribePayType
&<Common request parameters>
{
"Response": {
"RequestId": "1732a0dd-48d8-4ff1-8dcb-7f04ca139825",
"PayType": "flux",
"StatType": "sum",
"BillingCycle": "day",
"RegionType": "all",
"CurrentPayType": "flux"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError.CdnDbError | Internal data error. Please submit a ticket for troubleshooting. |
InternalError.CdnSystemError | System error. Please submit a ticket for troubleshooting. |
InvalidParameter.CdnInterfaceError | Internal API error. Please submit a ticket for troubleshooting. |
InvalidParameter.CdnParamError | Parameter error. Please see the sample parameters in the documentation. |
InvalidParameter.EcdnInterfaceError | API internal error. Please try again or contact the customer service for assistance. |
ResourceNotFound.CdnUserNotExists | The CDN service has not been activated. Please activate it first before using this API. |
UnauthorizedOperation.CdnUserNoWhitelist | You are not in the beta whitelist and thus have no permission to use this function. |
UnauthorizedOperation.OperationTooOften | Too many calling attempts. |
Was this page helpful?