Domain name for API request: intlpartnersmgt.intl.tencentcloudapi.com.
Description: The current API is used to query the usage details of reseller's customer vouchers by Reseller, Second-level Reseller or Distributor.
Reseller, Second-level Reseller or Distributor can call this API.
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: DescribeCustomerVoucherUsageDetails. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-28. |
| Region | No | String | Common Params. This parameter is not required. |
| Page | Yes | Integer | Page number, starting from 1 |
| PageSize | Yes | Integer | Number of items per page, range 1-100 |
| CustomerUin | Yes | Integer | Customer UIN |
| VoucherId | Yes | Integer | Voucher ID |
| Month | No | String | Voucher Usage Month |
| Parameter Name | Type | Description |
|---|---|---|
| Data | Array of UsageDetail | Voucher information details |
| CustomerUin | Integer | Customer UIN |
| VoucherId | Integer | Voucher ID. |
| TotalAmount | Float | Total voucher amount |
| RemainAmount | Float | Voucher balance |
| TotalRecordsCount | Integer | Total number of records |
| Month | String | Voucher Usage Month |
| RecordsCountByMonth | Integer | Number of records in the current month |
| 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 queries sub-customer voucher usage details
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerVoucherUsageDetails
<Common request parameters>
{
"Page": 1,
"PageSize": 10,
"CustomerUin": 800000495142,
"VoucherId": 12130012,
"Month": "2024-03"
}
{
"Response": {
"CustomerUin": 800000495142,
"Data": [],
"Month": "2024-03",
"RecordsCountByMonth": 0,
"RemainAmount": 0,
"TotalAmount": 1,
"TotalRecordsCount": 2,
"VoucherId": 12130012,
"RequestId": "28404cbe-6694-4b52-84a7-74e61efac79f"
}
}
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. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback