tencent cloud

APIs

DescribeCustomerOrder

Download
Focus Mode
Font Size
Last updated: 2026-12-03 15:22:30

1. API Description

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

This API is used to query the order list of sub-customers.
Data before November 20, 2026 does not support querying indirect sub-customer data. When querying direct sub-customer data, the data of both direct and indirect sub-customers is included. Second-level resellers are not supported to query sub-customer data.

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

Start point of the query time window. Filter by order create_time. Must be in the same year as end_time.

Parameter format: Time format yyyy-MM-dd HH:mm:ss, for example, 2026-07-23 15:04:05

EndTime Yes String

End point of the query time window. Filter by order create_time. Must be in the same year as start_time.

Parameter format: Time format yyyy-MM-dd HH:mm:ss, for example, 2026-10-22 15:04:05

CustomerUin No Integer

UIN of the queried sub-customer.

CustomerUinType No String

Sub-customer type: Customer = direct sub-customer, ResellerCustomer = indirect sub-customer (sub-customer under a second-level distributor). Only a master distributor can pass ResellerCustomer; otherwise, no permission is returned. A sub-customer does not need to pass this parameter when querying itself.

Valid values:

  • Customer: direct sub-customer
  • ResellerCustomer: indirect sub-customer
PageSize No Integer

Number of entries per page.

Value range: [1, 200]

Default value: 10

Page No Integer

Page number.

Status.N No Array of Integer

Order display status. Multiple values are supported with OR: 1 = unpaid, 2 = processing, 5 = completed, 6 = refunded, 7 = canceled, 8 = expired, 9 = shipment failed and refunded. Passing other values returns a parameter error.

OrderId No String

Sub-order number.

BigDealId No String

Main order number.

3. Output Parameters

Parameter Name Type Description
Orders Array of CustomerOrderData

Order data.

TotalCount Integer

Total number of orders.

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 Querying Sub-customer Orders

Input Example

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

{
    "StartTime": "2026-01-23 15:04:05",
    "EndTime": "2026-10-22 15:04:05",
    "CustomerUin": 800001841595,
    "CustomerUinType": "Customer",
    "PageSize": 10,
    "Page": 1,
    "Status": [
        1
    ],
    "OrderId": "20260825595021867263831",
    "BigDealId": "20260825595021867263821"
}

Output Example

{
    "Response": {
        "Orders": [
            {
                "Action": "prePurchase",
                "AdminUin": 0,
                "BigDealId": "20260825595021867263821",
                "CreateTime": "2026-08-25 10:17:22",
                "Currency": "USD",
                "DiscountCost": "200.00000000",
                "OperatorUin": 800001841595,
                "OrderId": "20260825595021867263831",
                "OriginalCost": "200.00000000",
                "OwnerUin": 800001841595,
                "PayMode": 1,
                "PayTime": "",
                "PayerUin": 800001840374,
                "ProductCode": "p_jifei",
                "ProductInfo": [],
                "ProductName": "JIFEI",
                "ResourceId": "",
                "Status": 1,
                "SubProductCode": "sp_jifei_prepay_resource",
                "SubProductName": "sp_jifei_prepay_resource",
                "Tax": "0.00000000",
                "TimeSpan": "1",
                "TimeUnit": "m",
                "TotalCost": "200.00000000",
                "VoucherDecline": "0.00000000"
            }
        ],
        "TotalCount": 1,
        "RequestId": "62c1bf01-4c61-4495-804d-6efd8af9194c"
    }
}

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

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback