tencent cloud

Billing Center

製品お知らせ
当社の契約主体変更に関する説明
請求書フィールドのアップグレードに関するお知らせ
サービス停止済みリソースの復元ガイド
課金概要
課金方式
アカウント凍結の説明
残高アラートガイド
クラウドサービスの返品説明
課金モード
年決め・月決め課金モードの製品リスト
購入ガイド
購入
支払方法
受取人口座への銀行振込専用口座振込機能の説明
チャージプロセスの説明
前払い製品の支払い方法
後払いアカウントの支払い
自動支払い機能
収支明細
クーポン
Savings Plan
継続支払い管理
請求書管理
請求書照合
請求書の紹介
請求書フィールドの説明
使用量明細
請求書ダウンロードセンター
請求書サブスクリプション
請求書はCOSバケットに保存されます
課金 CAM 権限設定のガイド
オンライン領収書発行機能説明
Tax Management
FOCUS 1.0
FOCUS 1.0 差異説明
コスト管理
消耗請求書の紹介
消耗機能の説明
消耗請求書のフィールド説明
コスト分析
コスト予測
予算管理
コスト配分管理
明細配分ユニット
コスト配分請求書
コスト配分Tag
コスト配分のバックトラック
よくあるご質問
請求書よくあるご質問
クーポンのよくある質問
継続支払いのよくある質問
ドキュメントBilling Center

DescribeBillSummaryByPayMode

フォーカスモード
フォントサイズ
最終更新日: 2026-03-26 14:28:03

1. API Description

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

This API is used to get the bill summarized by billing mode.

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: DescribeBillSummaryByPayMode.
Version Yes String Common Params. The value used for this API: 2018-07-09.
Region No String Common Params. This parameter is not required.
BeginTime Yes String The value must be of the same month as EndTime. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both BeginTime and EndTime are 2018-09, the data returned will be for the entire month of September 2018.
EndTime Yes String The value must be of the same month as BeginTime. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both BeginTime and EndTime are 2018-09, the data returned will be for the entire month of September 2018.
PayerUin No String Query bill data user's UIN

3. Output Parameters

Parameter Name Type Description
Ready Integer Indicates whether the data is ready. 0: Not ready. 1: Ready. If Ready is 0, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again.
SummaryOverview Array of PayModeSummaryOverviewItem Detailed cost distribution for all billing modes
Note: This field may return null, indicating that no valid value was found.
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 the bill summarized by billing mode

This example shows you how to get the bill summarized by billing mode.

Input Example

POST / HTTP/1.1Host: billing.intl.tencentcloudapi.comContent-Type: application/jsonX-TC-Action: DescribeBillSummaryByPayMode<Common request parameters>{    "EndTime": "2018-11",    "BeginTime": "2018-11"}

Output Example

{
    "Response": {
        "Ready": 1,
        "RequestId": "8ef7c0ea-6f84-4d77-a3db-75f22e93307e",
        "SummaryOverview": [
            {
                "CashPayAmount": "6247.54982666",
                "Detail": [
                    {
                        "ActionType": "pre_purchase",
                        "ActionTypeName": "New yearly/monthly subscription",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "6195.75401529",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "6209.27829961",
                        "RealTotalCostRatio": "99.02",
                        "TotalCost": "5715.64000000",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "13.52428432"
                    },
                    {
                        "ActionType": "pre_renew",
                        "ActionTypeName": "Yearly/monthly subscription renewal",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "61.35894583",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "61.35894583",
                        "RealTotalCostRatio": "0.98",
                        "TotalCost": "160.64647000",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    },
                    {
                        "ActionType": "pre_upgrade",
                        "ActionTypeName": "Yearly/monthly subscription specification adjustment",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "0.00000000",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "2.99518000",
                        "RealTotalCostRatio": "0.00",
                        "TotalCost": "8.88964000",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "2.99518000"
                    },
                    {
                        "ActionType": "prepay_return",
                        "ActionTypeName": " Yearly/monthly subscription refund",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "-9.56313446",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "-9.56313446",
                        "RealTotalCostRatio": "0.00",
                        "TotalCost": "-8.77351786",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    }
                ],
                "IncentivePayAmount": "0.00000000",
                "PayMode": "prePay",
                "PayModeName": "Yearly/monthly subscription",
                "RealTotalCost": "6264.06929098",
                "RealTotalCostRatio": "86.77",
                "TotalCost": "5876.40259214",
                "TransferPayAmount": "0.00000000",
                "VoucherPayAmount": "16.51946432"
            },
            {
                "CashPayAmount": "952.60940356",
                "Detail": [
                    {
                        "ActionType": "postpay_deduct_d",
                        "ActionTypeName": "Daily settlement",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "460.76964609",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "460.76964609",
                        "RealTotalCostRatio": "48.32",
                        "TotalCost": "847.48501517",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    },
                    {
                        "ActionType": "svp_hour_pay",
                        "ActionTypeName": "Hourly Savings Plan fee",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "353.37800000",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "353.37800000",
                        "RealTotalCostRatio": "37.06",
                        "TotalCost": "324.20000000",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    },
                    {
                        "ActionType": "postpay_deduct_h",
                        "ActionTypeName": "Hourly settlement",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "139.46175747",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "139.46174589",
                        "RealTotalCostRatio": "14.62",
                        "TotalCost": "576.80845417",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    },
                    {
                        "ActionType": "recon_increase",
                        "ActionTypeName": "Adjustment - compensation",
                        "BillMonth": "2024-07",
                        "CashPayAmount": "-1.00000000",
                        "IncentivePayAmount": "0.00000000",
                        "RealTotalCost": "-1.00000000",
                        "RealTotalCostRatio": "0.00",
                        "TotalCost": "-1.00000000",
                        "TransferPayAmount": "0.00000000",
                        "VoucherPayAmount": "0.00000000"
                    }
                ],
                "IncentivePayAmount": "0.00000000",
                "PayMode": "postPay",
                "PayModeName": "Pay-As-You-Go resources",
                "RealTotalCost": "952.60939198",
                "RealTotalCostRatio": "13.23",
                "TotalCost": "1747.49346934",
                "TransferPayAmount": "0.00000000",
                "VoucherPayAmount": "0.00000000"
            },
            {
                "CashPayAmount": "0.00000000",
                "Detail": [],
                "IncentivePayAmount": "0.00000000",
                "PayMode": "riPay",
                "PayModeName": "Standard RI",
                "RealTotalCost": "0.00000000",
                "RealTotalCostRatio": "0.00",
                "TotalCost": "0.00000000",
                "TransferPayAmount": "0.00000000",
                "VoucherPayAmount": "0.00000000"
            }
        ]
    }
}

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.
InternalError.UnknownError Undefined exception.
InvalidParameter Invalid parameter.
InvalidParameterValue Invalid parameter value.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック