tencent cloud

DescribeBillDownloadUrl

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-04-24 15:08:37

1. API Description

Domain name for API request: billing.intl.tencentcloudapi.com.

This API is used to get bill download URLs for L0, L1, L2, and L3 bills and bill packs.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: DescribeBillDownloadUrl.
Version Yes String Common Params. The value used for this API: 2018-07-09.
Region No String Common Params. This parameter is not required.
FileType Yes String Billing mode. Enumeration values
billOverview=L0-PDF Bill
Bill Summary=L1-Summary Bill
billResource=L2-Resource bill
billDetail=L3-Detailed Bill
billPack
Month Yes String Billing month
Earliest start month supported is 2021-01
L0-PDF&bill package does not support download for the current month. Please download the monthly bill after billing on the 1st of next month at 19:00.
ChildUin.N No Array of String Downloaded account ID list. By default, the query returns the account statement of the current account. If the group management account needs to download the self-pay bills of member accounts, enter the member account UIN in this field.

3. Output Parameters

Parameter Name Type Description
Ready Integer Whether the bill file is ready. 0: file generating, 1: file generated
DownloadUrl String Billing file download link, valid for 1 day
Note: This field may return null, indicating that no valid values can be obtained.
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.

4. Example

Example1 Getting bill download URLs

This example shows you how to get bill download URLs.

Input Example

POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBillDownloadUrl
<Common request parameters>

{
    "FileType": "billPack",
    "Month": "2023-08"
}

Output Example

{
    "Response": {
        "DownloadUrl": "http://xxxxxxxxxxxxxxxxx",
        "Ready": 1,
        "RequestId": "3efd37d8-68aa-4bfc-8f8c-f8a0197f9931"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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 Internal error.
InternalError.GatewayError Gateway error.
InvalidParameter Invalid parameter.

Ajuda e Suporte

Esta página foi útil?

comentários