Onerway
POST

Account Detail Query

Query account balances and transaction details for a specific currency.

Request

merchantNo
Merchant number of the request initiator.
Example:
onBehalfOf
Merchant number that the request is for. Include only when making a request on behalf of another merchant.
currency
Currency of the payout account.
Example:
Constraints
Rule
Maximum length: 20.
beginTime
Start of the transaction query period, in yyyy-MM-dd HH:mm:ss format. beginTime must not be later than endTime. Time zone: Beijing time (UTC+08:00).
Example:
endTime
End of the transaction query period, in yyyy-MM-dd HH:mm:ss format. beginTime must not be later than endTime. Time zone: Beijing time (UTC+08:00).
Example:
size
Number of records per page.
Example:
Constraints
Rule
Omit or send null to use 10.
current
Page number, starting at 1.
Example:
Constraints
Rule
Omit or send null to use 1.
txnType
Account transaction type code.
Constraints
Rule
Published codes include 0036 fee adjustment; 0034 monthly fee; 0043 top-up; 1024 credit freeze; 1025 credit fee; 1026 top-up credit; 0032 withdrawal; 1030 payout; 1031 withdrawal/payout fee; 1038 fee reversal.
sign
Request signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.

Request example

curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/acct/queryAcctDetail' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "beginTime": "2025-06-15 00:00:00",
  "currency": "USD",
  "current": 1,
  "endTime": "2025-09-10 12:12:12",
  "merchantNo": "800699",
  "sign": "{{SIGN}}",
  "size": 10
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Account detail and transaction ledger result.

Response example

{
  "respCode": "20000",
  "respMsg": null,
  "data": {
    "currency": "USD",
    "availBalance": "989734.42",
    "freezeBalance": "128.00",
    "accountTransactionDetails": [
      {
        "serviceId": "1965301543088029696",
        "txnType": "0107",
        "subAcntType": "AVAIL",
        "currency": "USD",
        "accountBalanceBefore": 989996.92,
        "moveAmount": -5,
        "accountBalanceAfter": 989991.92,
        "remark": "demo_account_entry",
        "balanceUpdDate": "2025-09-09 14:29:36"
      },
      {
        "serviceId": "1965301540898603008",
        "txnType": "0035",
        "subAcntType": "AVAIL",
        "currency": "USD",
        "accountBalanceBefore": 989997.98,
        "moveAmount": -1.06,
        "accountBalanceAfter": 989996.92,
        "remark": null,
        "balanceUpdDate": "2025-09-09 14:29:35"
      }
    ]
  }
}
No error responses are documented for this endpoint.