POST
Account Detail Query
Query account balances and transaction details for a specific currency.
Request
merchantNoMerchant number of the request initiator.
Example:
800699onBehalfOfMerchant number that the request is for. Include only when making a request on behalf of another merchant.
currencyCurrency of the payout account.
Example:
USDConstraints
- Rule
- Maximum length: 20.
beginTimeStart 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:
2025-06-15 00:00:00endTimeEnd 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:
2025-09-10 12:12:12sizeNumber of records per page.
Example:
10Constraints
- Rule
- Omit or send null to use 10.
currentPage number, starting at 1.
Example:
1Constraints
- Rule
- Omit or send null to use 1.
txnTypeAccount 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.
signRequest signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.
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
respCodeResponse code;
20000 indicates successful request processing. All other values are error codes.respMsgHuman-readable description of the response code.
data{ currency, availBalance, ... }Account detail and transaction ledger result.
{
"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.