Onerway
POST

Transfer Voucher Query

Query and download the electronic voucher for a successful transfer.

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.
requestId
Condition: Required when payoutId is not provided.
Merchant-generated business reference for the payout.
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.
payoutId
Condition: Required when requestId is not provided.
Onerway payout ID.
Constraints
Rule
Supply it as a string to preserve integer precision. If both requestId and payoutId are provided, they must identify the same payout.
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/txn/queryVoucher' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "merchantNo": "800699",
  "payoutId": "1984136974445449216",
  "sign": "{{SIGN}}"
}'

Response

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
Electronic receipt for a successfully completed payout. A payout that has not reached status S cannot be queried for a receipt.

Response example

{
  "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.