Domain name for API request: billing.intl.tencentcloudapi.com.
This API is used to query the details of a cost allocation bill by product.
A maximum of 50 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: DescribeAllocationSummaryByBusiness. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-09. |
| Region | No | String | Common Params. This parameter is not required. |
| Limit | Yes | Integer | Quantity, with the maximum value of 1,000 |
| Offset | Yes | Integer | Pagination offset. If Offset is 0, it indicates the first page. If Limit is 100, then Offset is 100, and it indicates the second page. If Offset is 200, it indicates the third page, and so on. |
| Month | No | String | Bill month, in the format of 2024-02, which is the current month by default if not provided |
| PeriodType | No | String | Statistical period, with the enumerated values as follows: month - Month day - Day |
| TreeNodeUniqKeys.N | No | Array of String | Unique identifier of a billing unit, used for filtering |
| SortType | No | String | Sorting type, with the enumerated values as follows: asc - Ascending desc - Descending |
| Sort | No | String | Sorting field, with the enumerated values as follows: GatherCashPayAmount - Collected fees (cash) GatherVoucherPayAmount - Collected fees (voucher) GatherIncentivePayAmount - Collected fees (free credit) GatherTransferPayAmount - Collected fees (royalty amount) AllocateCashPayAmount - Allocated fees (cash) AllocateVoucherPayAmount - Allocated fees (voucher) AllocateIncentivePayAmount - Allocated fees (free credit) AllocateTransferPayAmount - Allocated fees (royalty amount) TotalCashPayAmount - Total fees (cash) TotalVoucherPayAmount - Total fees (voucher) TotalIncentivePayAmount - Total fees (free credit) TotalTransferPayAmount - Total fees (royalty amount) GatherRealCost - Collected fees (discounted total) AllocateRealCost - Allocated fees (discounted total) RealTotalCost - Total fees (discounted total) BusinessCode - Product code Ratio - Proportion (discounted total) Trend - Month-on-month ratio (discounted total) |
| BillDates.N | No | Array of String | Date, used for filtering and provided when PeriodType is set to day |
| BusinessCodes.N | No | Array of String | Product code, used for filtering |
| Parameter Name | Type | Description |
|---|---|---|
| RecordNum | Integer | Total quantity. |
| Total | AllocationOverviewTotal | Total amount of a cost allocation bill |
| Detail | Array of AllocationSummaryByBusiness | Detailed summary of the cost allocation bill by business |
| 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. |
POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAllocationSummaryByBusiness
<Common request parameters>
{
"Limit": 30,
"Month": "2022-11-01 00:00:00",
"Offset": 0,
"PeriodType": "month"
}
{
"Response": {
"Detail": [
{
"AllocateCashPayAmount": "0.00000000",
"AllocateIncentivePayAmount": "0.00000000",
"AllocateRealCost": "0.00000000",
"AllocateTransferPayAmount": "0.00000000",
"AllocateVoucherPayAmount": "0.00000000",
"AllocationRealTotalCost": "-48.95000000",
"BillDate": "2024-02-01",
"BusinessCode": "p_ci",
"BusinessCodeName": "CI",
"CashPayAmount": "-16.43000000",
"GatherCashPayAmount": "-16.43000000",
"GatherIncentivePayAmount": "-32.52000000",
"GatherRealCost": "-48.95000000",
"GatherTransferPayAmount": "0.00000000",
"GatherVoucherPayAmount": "0.00000000",
"IncentivePayAmount": "0.00000000",
"RICost": "0.00000000",
"Ratio": "-0.15",
"RealTotalCost": "-48.95000000",
"SPCost": "0.00000000",
"TotalCashPayAmount": "-16.43000000",
"TotalCost": "-48.95000000",
"TotalIncentivePayAmount": "0.00000000",
"TotalTransferPayAmount": "-32.52000000",
"TotalVoucherPayAmount": "0.00000000",
"TransferPayAmount": "-32.52000000",
"TreeNodeUniqKey": null,
"TreeNodeUniqKeyName": "Unallocated",
"Trend": null,
"TrendType": null,
"VoucherPayAmount": "0.00000000"
},
{
"AllocateCashPayAmount": "0.00000000",
"AllocateIncentivePayAmount": "0.00000000",
"AllocateRealCost": "0.00000000",
"AllocateTransferPayAmount": "0.00000000",
"AllocateVoucherPayAmount": "0.00000000",
"AllocationRealTotalCost": "-2365.08000000",
"BillDate": "2024-02-01",
"BusinessCode": "p_rav",
"BusinessCodeName": " TRTC ",
"CashPayAmount": "0.00000000",
"GatherCashPayAmount": "0.00000000",
"GatherIncentivePayAmount": "-2365.08000000",
"GatherRealCost": "-2365.08000000",
"GatherTransferPayAmount": "0.00000000",
"GatherVoucherPayAmount": "0.00000000",
"IncentivePayAmount": "0.00000000",
"RICost": "0.00000000",
"Ratio": "-7.18",
"RealTotalCost": "-2365.08000000",
"SPCost": "0.00000000",
"TotalCashPayAmount": "0.00000000",
"TotalCost": "-2365.08000000",
"TotalIncentivePayAmount": "0.00000000",
"TotalTransferPayAmount": "-2365.08000000",
"TotalVoucherPayAmount": "0.00000000",
"TransferPayAmount": "-2365.08000000",
"TreeNodeUniqKey": null,
"TreeNodeUniqKeyName": "Unallocated",
"Trend": null,
"TrendType": null,
"VoucherPayAmount": "0.00000000"
},
{
"AllocateCashPayAmount": "0.00000000",
"AllocateIncentivePayAmount": "0.00000000",
"AllocateRealCost": "0.00000000",
"AllocateTransferPayAmount": "0.00000000",
"AllocateVoucherPayAmount": "0.00000000",
"AllocationRealTotalCost": "0.00000000",
"BillDate": "2024-02-01",
"BusinessCode": "p_ccc",
"BusinessCodeName": " Cloud Contact Center ",
"CashPayAmount": "0.00000000",
"GatherCashPayAmount": "0.00000000",
"GatherIncentivePayAmount": "0.00000000",
"GatherRealCost": "0.00000000",
"GatherTransferPayAmount": "0.00000000",
"GatherVoucherPayAmount": "0.00000000",
"IncentivePayAmount": "0.00000000",
"RICost": "0.00000000",
"Ratio": "0.00",
"RealTotalCost": "0.00000000",
"SPCost": "0.00000000",
"TotalCashPayAmount": "0.00000000",
"TotalCost": "263.44000000",
"TotalIncentivePayAmount": "0.00000000",
"TotalTransferPayAmount": "0.00000000",
"TotalVoucherPayAmount": "0.00000000",
"TransferPayAmount": "0.00000000",
"TreeNodeUniqKey": null,
"TreeNodeUniqKeyName": "Unallocated",
"Trend": null,
"TrendType": null,
"VoucherPayAmount": "0.00000000"
}
],
"RecordNum": 611,
"RequestId": "1cd9694c-88a7-4cfe-846c-182f1f9dbf6c",
"Total": {
"CashPayAmount": "1630.93000000",
"IncentivePayAmount": "31062.86000000",
"RealTotalCost": "32953.81000000",
"TransferPayAmount": "0.00000000",
"VoucherPayAmount": "260.02000000"
}
}
}
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 |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| AuthFailure.UnauthorizedOperation | No permission. |
| InternalError | Internal error. |
| InvalidParameter | Invalid parameter. |
| InvalidParameterValue | Invalid parameter value. |
| MissingParameter | Parameters are missing |
文档反馈