1. API Description
Domain name for API request: tcsas.intl.tencentcloudapi.com.
This API is used to retrieve the line chart data for mini game payment.
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.
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: DescribeMNGPaymentLineChart. |
| Version |
Yes |
String |
Common Params. The value used for this API: 2025-01-06. |
| Region |
Yes |
String |
Common Params. For more information, please see the list of regions supported by the product. |
| PlatformId |
Yes |
String |
Tenant ID |
| ReportId |
Yes |
String |
Fixed value: payment_data_analysis |
| IndexId |
Yes |
String |
Valid values: mng_paid_amount: Virtual payment amount, paid_user_num: Number of paying users, new_paid_user_num: Number of new paying users, new_paid_user_amount: Revenue from new paying users, new_paid_user_ratio: Percentage of new users who made payments, arppu: Average revenue per paying user (ARPPU), mng_refund_num: Number of refund orders mng_refund_amount: Refund amount |
| QueryData |
Yes |
String |
Input parameter base64 string: {"Platform":0,"MnpId":"mgcp5xc2yzw8aixv","BeginDate":20251028,"EndDate":20251126,"DataType":"1","PaymentType":2} |
3. Output Parameters
| Parameter Name |
Type |
Description |
| Data |
Array of ReportDataResult |
Data display 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 demo
POST / HTTP/1.1
Host: tcsas.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMNGPaymentLineChart
<Common request parameters>
{
"PlatformId": "T04398WY9481762VZTT",
"ReportId": "payment_data_analysis",
"IndexId": "paid_user_num",
"QueryData": "eyJQbGF0Zm9ybSI6MCwiTW5wSWQiOiJtZ21rc3p1bXZocGRjM2dmIiwiQmVnaW5EYXRlIjoyMDI1MTEyNCwiRW5kRGF0ZSI6MjAyNTExMzAsIkRhdGFUeXBlIjoiMSIsIlBheW1lbnRUeXBlIjoyfQ=="
}
Output Example
{
"Response": {
"Data": [
{
"DataResult": "W10=",
"ExecSql": "",
"ExecTime": 0,
"IndexId": "paid_user_num"
}
],
"RequestId": "2ce64baf-d18c-4672-9d7a-e6ec273f3be0"
}
}
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 |
| FailedOperation.NoAccessPermission |
FailedOperation.NoAccessPermission |
| FailedOperation.PackageAlreadyExpired |
FailedOperation.PackageAlreadyExpired |
| InvalidParameter |
Incorrect parameter. |
| InvalidParameterValue |
Invalid parameter value. |