tencent cloud

International Partners

DescribeCustomerOwnCostExplorerSummary

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-28 15:33:19

1. API Description

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

Cost analysis API

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: DescribeCustomerOwnCostExplorerSummary.
Version Yes String Common Params. The value used for this API: 2022-09-28.
Region No String Common Params. This parameter is not required.
Dimension Yes String

Classification dimension

Enumeration value:

  • Default: Default dimension
  • Business: Product
  • Product: Subproduct
  • Region: Region
  • Zone: Availability zone
  • ActionType: Transaction type
  • PayMode: Payment mode
  • Project: Project
  • PayerUin: Payer uin
  • OwnerUin: Owner uin
  • Tag: Tag
FeeType Yes String

Fee type

Enumeration value:

  • originalCost: Original Cost
  • totalCost: Total Cost
BillType Yes Integer

Billing mode

Enumeration value:

  • 1: Billing statement
StartTime Yes String

Start time

Parameter format: YYYY-MM-DD hh:mm:ss, for example 2006-01-02 00:00:00

Input limit: When PeriodType is month, the time range is 6 calendar months; when PeriodType is day, the time range is 2 calendar months;

EndTime Yes String

End time

Parameter format: YYYY-MM-DD hh:mm:ss, for example 2006-01-02 00:00:00

Input limit: When PeriodType is month, the time range is 6 calendar months. When PeriodType is day, the time range is 2 calendar months.

PeriodType Yes String

Time type

Enumeration value:

  • day: By day
  • month: By month
Page Yes Integer

Page number

Value range: [1, 10000]

PageSize Yes Integer

Page size

Value range: [1, 200]

TagKey No String

Tag key of the statistical dimension. When Dimension is Tag, TagKey is required.

Filter No CostAnalyzeFilter Filter

You can pass the data returned by DescribeCustomerOwnCostExplorerFilter as a parameter to filter the data.

3. Output Parameters

Parameter Name Type Description
DimensionName String

Classification dimension

Detail Array of DimensionPeriodData

Details

TotalDetail CostAnalyzeDimensionData

Classification dimension statistics

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 DescribeCustomerOwnCostExplorerSummary

For sub-accounts to query cost analysis data

Input Example

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

{
    "Dimension": "Default",
    "FeeType": "originalCost",
    "BillType": 1,
    "StartTime": "2024-09-01 00:00:00",
    "EndTime": "2024-09-12 23:59:59",
    "PeriodType": "day",
    "Page": 1,
    "PageSize": 10,
    "Filter": {
        "BusinessIn": [
            "p_cbs"
        ],
        "ProductIn": [
            "sp_cbs_premium"
        ],
        "RegionIn": [
            "1"
        ],
        "ActionTypeIn": [
            "pre_purchase"
        ],
        "PayModeIn": [
            "prePay"
        ],
        "ProjectIn": [
            "default"
        ],
        "PayerUinIn": [
            "8000********"
        ],
        "ZoneIn": [
            "100002"
        ],
        "OwnerUinIn": [
            "80000*******"
        ],
        "ResourceIn": [
            "disk-f*******"
        ]
    }
}

Output Example

{
    "Response": {
        "Detail": [
            {
                "Code": "",
                "ItemDetail": [
                    {
                        "Cost": "0.7",
                        "Period": "2024-09-09"
                    }
                ],
                "Name": "default",
                "SumCost": "0.7"
            }
        ],
        "DimensionName": "Default",
        "TotalDetail": {
            "PeriodItemDetail": [
                {
                    "Cost": "0.7",
                    "Period": "2024-09-09"
                }
            ],
            "SumCost": "0.7",
            "TotalCount": 1
        },
        "RequestId": "af9d9375-bc8e-4bf5-ad4c-7a83033f4fc3"
    }
}

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
OperationDenied.ServiceBusy System busy. Please try again later.
UnauthorizedOperation.UinNoAuth The current user doesn’t have permission for the operation.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백