DescribeRechargeRefundHistory

1. API Description

This API is used to query recharge and refund history.

2. Input Parameters

The following request parameter list only provides API request parameters.

3. Output Parameters

4. Code Example

Query recharge and refund history.

POST /api/v2/zbc HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeRechargeRefundHistory
<Common Request Params>

Request:
{
  "endTime": "2023-09-05T14:26:18Z",
  "startTime": "2023-08-05T14:26:18Z",
  "pageSize": 10,
  "pageNum": 1,
  "state":["PAY_SUCCESS"]
}

Response:
{
    "requestId": "TB11F9883-9134-460B-AA54-7079B3DAD308",
    "response": {
        "requestId": "TB11F9883-9134-460B-AA54-7079B3DAD308",
        "totalCount": 1,
        "dataSet": [
            {
                "transactionType": "ORDER_REFUND",
                "amount": 39.05,
                "paymentMethod": "REFUND",
                "state": "PAY_SUCCESS",
                "transactionTime": "2023-08-15T09:47:01Z",
                "accountUid": "cccbf4c0-12ab-417a-95ba-0bf8e60a55d1",
                "transactionId": "10000000893685"
            }
        ]
    }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

No error codes related to the API business logic. For other error codes, see Common Error Codes.​​

Last updated