POST
Transfer Voucher Query
Query and download the electronic voucher for a successful transfer.
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.
requestIdCondition: Required when
Merchant-generated business reference for the payout.payoutId is not provided.Constraints
- Rule
- Maximum length: 32.
- Rule
- For a merchant request ID longer than 32 characters, query using payoutId instead.
- Rule
- If both requestId and payoutId are provided, they must identify the same payout.
payoutIdCondition: Required when
Onerway payout ID.requestId is not provided.Constraints
- Rule
- Supply it as a string to preserve integer precision. If both requestId and payoutId are provided, they must identify the same payout.
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/txn/queryVoucher' \
-H 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "800699",
"payoutId": "1984136974445449216",
"sign": "{{SIGN}}"
}'Response
respCodeResponse code;
20000 indicates successful request processing. All other values are error codes.respMsgHuman-readable description of the response code.
data{ merchantNo, requestId, ... }Electronic receipt for a successfully completed payout. A payout that has not reached status S cannot be queried for a receipt.
{
"respCode": "20000",
"respMsg": null,
"data": {
"requestId": "CYPW20251031055450",
"payoutId": "1984136974445449216",
"url": "https://example.com/vouchers/1984136974445449216.pdf",
"merchantNo": "800699"
}
}No error responses are documented for this endpoint.