Domain name for API request: intlpartnersmgt.intl.tencentcloudapi.com.
This API is used to get the URL for downloading the customer bill file by reseller. The download conditions are as follows:
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: DescribeCustomerBillDownloadUrl. |
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 | The month to which the bill belongs, formatted as yyyy-mm; the earliest month available for query is june, 2022. current month's billing data may be inaccurate; please download the current month's bill after it is generated at 1:00 on the 5th of the next month. |
FileType | Yes | String | Bill type. valid values: [billResource, billDetail, billResourcePack, billDetailPack]. billResource : resource bill; billDetail : detailed bill; billResourcePack : resource bill package; billDetailPack : detailed bill package. |
CustomerUinType | Yes | String | Customer type. valid values: [Customer, Reseller, ResellerCustomer]. Customer : direct customer; Reseller : secondary reseller; ResellerCustomer : reseller's customers |
FileLanguage | No | String | Language. valid values: [zh_cn, en]. default is en (english). |
CustomerUin | No | Integer | Customer uin. when downloading the bill package (FileType is billResourcePack or billDetailPack), CustomerUin is not passed |
Parameter Name | Type | Description |
---|---|---|
DownloadUrl | String | File download link, with a file validity period of 1 hour. |
Ready | Integer | File generation status. 0: generating; 1: generated. |
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. |
Reseller downloads direct customer L2 resource bill
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerBillDownloadUrl
<Common request parameters>
{
"Month": "2024-12",
"FileType": "billResource",
"CustomerUinType": "Customer",
"CustomerUin": 800000425835
}
{
"Response": {
"DownloadUrl": "https://partner-bill-xxxx.cos.ap-singapore.myqcloud.com/L2-bill_by_Instance-800000425835-202412-xx-test.csv",
"Ready": 1,
"RequestId": "fa772ee3-e610-4e5b-905e-35c92a13e052"
}
}
Reseller obtains indirect customer L3 bill detail link
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerBillDownloadUrl
<Common request parameters>
{
"Month": "2024-12",
"FileType": "billDetail",
"CustomerUinType": "ResellerCustomer",
"CustomerUin": 800001608331
}
{
"Response": {
"DownloadUrl": "https://partner-bill-xxx.cos.ap-singapore.myqcloud.com/L3-bill_details-800001608331-202412-xxx-test.csv",
"Ready": 1,
"RequestId": "b93fad4a-1ef8-4011-a93b-bf8b6b5ee3ee"
}
}
Reseller obtains all customer L2 resource bill packages (billed)
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerBillDownloadUrl
<Common request parameters>
{
"Month": "2024-11",
"FileType": "billResourcePack",
"CustomerUinType": "Customer"
}
{
"Response": {
"DownloadUrl": "https://partner-bill-xxx.cos.ap-singapore.myqcloud.com/%2Fmnt/bill/en/L2-bill_by_Instance-800000950266-AllCustomersBills-202411-xxx-test.zip",
"Ready": 1,
"RequestId": "0aa8fe2c-5221-4d94-b481-3f329c89b25a"
}
}
Reseller obtains all indirect customer L3 bill detail packages (billed)
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerBillDownloadUrl
<Common request parameters>
{
"Month": "2024-11",
"FileType": "billDetailPack",
"CustomerUinType": "ResellerCustomer"
}
{
"Response": {
"DownloadUrl": "https://partner-bill-xxxx.cos.ap-singapore.myqcloud.com/%2Fmnt/bill/en/L3-bill_details-800000950266-AllResellersBills-202411-xxxx-test.zip",
"Ready": 1,
"RequestId": "fb76a1cd-7b8e-435a-909e-3f8ec3b91c9a"
}
}
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 |
---|---|
FailedOperation | Operation failed. |
InvalidParameter | Invalid parameter |
UnauthorizedOperation.UinNoAuth | The current user doesn’t have permission for the operation. |