Skip to content

Fund Transaction Page ​

Query all wallet fund transactions with pagination, including recharges, debits and order cancel refunds. Filterable by currency, transaction type, business type, associated order number and time range. Filters are exact-match.

Interface Address:

text
/papi/wallet/transaction/page

Request Method:

text
POST

Content-Type:

text
application/json

Header Parameters:

ParameterTypeRequiredDescription
X-Access-KeystringYesAPI access key ID. See API Rules for authentication
X-SignaturestringYesSignature value, Base64-encoded HMAC-SHA256 result
X-TimestampstringYesMillisecond-level Unix timestamp (13 digits)
X-NoncestringYesRandom string, 10~32 lowercase letters and digits

Body Parameters:

ParameterTypeRequiredDescription
pageNointegerNoPage number, starting from 1. Defaults to 1
pageSizeintegerNoPage size. Defaults to 10, max 1000
currencystringNoCurrency code; only USD is supported
typeintegerNoTransaction type: 1 recharge, 2 debit, 3 order cancel refund
bizTypestringNoTransaction business type, see notes below
orderNostringNoAssociated order number
beginTimelongNoQuery start time, Unix timestamp in milliseconds. Defaults to 30 days before endTime
endTimelongNoQuery end time, Unix timestamp in milliseconds. Defaults to current time

Request Example:

json
{
  "pageNo": 1,
  "pageSize": 10,
  "currency": "USD",
  "type": 2,
  "bizType": "ORDER_PAY",
  "orderNo": "MO202611021000000000002",
  "beginTime": 1793491200000,
  "endTime": 1793577600000
}

Response Parameters:

ParameterTypeDescription
codeintegerError code. See Error Codes
dataobjectReturn data
├─ listarray[object]Data list
├─├─ transactionNostringFund transaction number
├─├─ typeintegerTransaction type: 1 recharge, 2 debit, 3 order cancel refund
├─├─ directionstringFund direction: CREDIT incoming, DEBIT outgoing
├─├─ bizTypestringTransaction business type
├─├─ bizNostringAssociated business number
├─├─ orderNostringAssociated order number
├─├─ payCodestringPayment method code
├─├─ amountstringAmount, in cents
├─├─ balanceBeforestringWallet balance before this transaction
├─├─ balanceAfterstringWallet balance after this transaction
├─├─ currencystringCurrency code
├─├─ currencySymbolstringCurrency symbol, e.g. $ for USD
├─├─ ctimestringTransaction creation time
├─ totalintegerTotal count
msgstringError message

Response Example:

json
{
  "code": 0,
  "data": {
    "list": [
      {
        "transactionNo": "",
        "type": 2,
        "direction": "DEBIT",
        "bizType": "ORDER_PAY",
        "bizNo": "",
        "orderNo": "MO202611021000000000002",
        "payCode": "WALLET",
        "amount": "400",
        "balanceBefore": "2250",
        "balanceAfter": "1850",
        "currency": "USD",
        "currencySymbol": "$",
        "ctime": ""
      }
    ],
    "total": 0
  },
  "msg": ""
}

Notes:

  • Common bizType values: USER_RECHARGE user recharge, ADMIN_RECHARGE admin recharge, ADMIN_DEBIT admin debit, ORDER_PAY order payment, AUTO_RENEW auto renewal, ORDER_CANCEL_RETURN order cancel refund.
  • Admin remarks, operators, merchant and channel credentials are cleared on the consumer side.
  • The time range must not be reversed or exceed 90 days.

OpenAPI Docs