Domain name for API request: intlpartnersmgt.intl.tencentcloudapi.com.
Description: End-customer queries its own bill details.
Callable role: End-customer.
A maximum of 1 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: DescribeBillDetail. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-28. |
| Region | No | String | Common Params. This parameter is not required. |
| Month | Yes | String | Query month, in the format of YYYY-MM, such as 2023-01 |
| PageSize | Yes | Integer | Page parameter: number of entries per page. Value range: [1, 200] |
| Page | Yes | Integer | Page parameter: current page number. The minimum value is 1. |
| PayMode | No | String | Billing mode Enumeration values:
|
| ActionType | No | String | Transaction type Enumeration values:
|
| Parameter Name | Type | Description |
|---|---|---|
| DetailSet | Array of CustomerBillDetailData | Data details |
| Total | Integer | Total quantity. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query L3 bills for a customer.
POST / HTTP/1.1
Host: intlpartnersmgt.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerBillDetail
<Common request parameters>
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBillDetail
<Common request parameters>
{
"Month": "2023-02",
"PayMode": "postPay",
"ActionType": "postpay_deduct_h",
"PageSize": "10",
"Page": "1"
}
{
"Response": {
"Total": 0,
"DetailSet": [
{
"PayerAccountId": 1230,
"OwnerAccountId": 132,
"OperatorAccountId": 321,
"ProductName": "cloud block storage",
"BillingMode": "Pay-As-You-Go resources",
"ProjectName": "default",
"Region": "East Chinaxa0(Shanghai)",
"AvailabilityZone": "Shanghai Zone 1",
"InstanceId": "disk-4jrmzpvk",
"InstanceName": "the name",
"SubProductName": "HDD cloud block storage",
"TransactionType": "Hourly settlement",
"TransactionId": "2023010112345678",
"TransactionTime": "2023-01-01 00:01:02",
"UsageStartTime": "2023-01-01 00:01:02",
"UsageEndTime": "2023-01-01 00:01:02",
"ComponentType": "volume size",
"ComponentName": "HDD cloud block storage-volume size",
"ComponentListPrice": "0.1",
"ComponentPriceMeasurementUnit": "USD/GB/Second",
"ComponentUsage": "100",
"ComponentUsageUnit": "GB",
"UsageDuration": "100",
"DurationUnit": "Second",
"OriginalCost": "10",
"Currency": "USD",
"TotalCost": "10"
}
],
"RequestId": "asdfgh"
}
}
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 |
|---|---|
| InvalidParameterValue.InvalidMonth | Incorrect month value |
| OperationDenied.ServiceBusy | System busy. Please try again later. |
| UnauthorizedOperation.UinNoAuth | The current user doesn’t have permission for the operation. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários