Onerway
POST

Transfer Callback

Receive asynchronous callbacks when the transfer status changes and update your business order accordingly.

Verification

Header token

Webhook payload fields

Authorization
Webhook verification token header.
merchantNo
Merchant number of the request initiator.
onBehalfOf
Merchant number that the request is for. Include only when making a request on behalf of another merchant.
requestId
Merchant-generated business reference for the payout.
payoutId
Onerway payout ID.
Constraints
Rule
This JSON integer can exceed the JavaScript safe-integer range. Use a lossless JSON parser and preserve its decimal digits as a string for storage and comparison; converting an already-rounded Number to a string cannot recover the ID.
status
Payout status. See enum values.
Allowed values
A
Created.
P
Payout in progress.
S
Succeeded.
Constraints
Rule
Use this field as the transfer lifecycle status. A means created, P means processing, S means succeeded, and F means failed, including returned transfers.
statusTime
Order update time; if unavailable, the time the notification is prepared is used, in yyyy-MM-dd HH:mm:ss format. Time zone: Beijing time (UTC+08:00).
payoutStatusReason
Additional information about the payout status. For A (created), P (processing), and S (succeeded), this field contains supplementary information when available, or an empty string otherwise. For F (failed), it contains the failure reason when available; for a returned transfer, it starts with Returned- fail reason: followed by the return reason.
Constraints
Rule
A returned transfer has status F and a reason prefixed with Returned- fail reason:.
settleCurrency
Settlement currency.
settleSumAmount
Total settlement amount recorded for the payout, denominated in settleCurrency.
payoutCurrency
Payout currency.
payoutAmount
Payout amount recorded for the order, denominated in payoutCurrency.
Constraints
Rule
This amount alone does not confirm receipt of funds; check status.
serviceFee
Platform service fee for this transfer.
convRate
Conversion rate recorded for the payout.

Webhook example

POST {{webhookUrl}} HTTP/1.1
Authorization: Credentials replace_with_webhook_token

{
  "merchantNo": "800699",
  "onBehalfOf": null,
  "requestId": "replace_with_request_id",
  "payoutId": 123456789,
  "status": "P",
  "statusTime": "2025-01-15 08:32:10",
  "payoutStatusReason": "",
  "settleCurrency": "USD",
  "settleSumAmount": 100,
  "payoutCurrency": "EUR",
  "payoutAmount": 92.35,
  "serviceFee": 2.5,
  "convRate": 0.9235
}

Acknowledgement

After processing the notification successfully, return HTTP 200 with the plain-text body SUCCESS. Acknowledgement requires both HTTP 2xx and this body (case-insensitive). Do not add JSON quotes, spaces, or a trailing newline. Failed acknowledgements can be retried; process duplicate notifications idempotently.

Response body example

SUCCESS