POST
Refund request rejection webhook
Receive a notification at the original transaction’s
notifyUrl only when Onerway rejects the refund request during review. Do not use the example to determine whether a field is always returned or can be null. See Webhooks for handling and Create or cancel refund for requests.Webhook URLSetup guide
Notifications are sent to the
notifyUrl from the original transaction request.Verification
Verification guideHeader-signed
- Signature header
- x-signature
Signature coverage
All payload fields except sign(legacy signature value).
Webhook payload fields
x-signatureSignature for verifying this notification. Contains one or more comma-separated
v1=<signature> values.x-timestampNotification send time as a Unix timestamp in seconds. Excluded from the signature.
notifyTypeNotification category.
transactionIdOnerway refund transaction number. Return this value unchanged when acknowledging the notification.
merchantNoMerchant number assigned by Onerway.
merchantTxnIdMerchant transaction number for the refund. Onerway generates it if omitted from the refund request.
originMerchantTxnIdMerchant transaction number of the original payment.
responseTimeTime when Onerway generated the notification result, in Beijing time (UTC+08:00), formatted as
yyyy-MM-dd HH:mm:ss.txnTimeZoneUTC offset when Onerway generated this notification:
+08:00 (Beijing time).orderAmountTransaction amount reported in this notification, expressed in
orderCurrency as a decimal string.orderCurrencyCurrency of
orderAmount.statusResult of the rejected refund request:
F (failed).reasonResult details encoded as a JSON string containing
respCode and respMsg. When verifying the signature, use the field value as received, without parsing or reserializing its JSON content.signCompatibility signature in the notification body, excluded from the signature input. Onerway calculates it using the first signing key enabled at that time. During rotation, it may differ from the signature you compute with another key. Verify this notification with
x-signature. Do not fall back to X-Rh-Signature or body sign when x-signature is missing or fails verification.{
"notifyType": "REFUND_AUDIT",
"transactionId": "demo_transactionId",
"merchantNo": "demo_merchantNo",
"merchantTxnId": "demo_merchantTxnId",
"originMerchantTxnId": "demo_originMerchantTxnId",
"responseTime": "2026-09-14 00:35:26",
"txnTimeZone": "+08:00",
"orderAmount": "593.30",
"orderCurrency": "USD",
"status": "F",
"reason": "{\"respCode\": \"70002\", \"respMsg\": \"Unknown decline\"}",
"sign": "replace_with_signature"
}Acknowledgement
After receiving and accepting the notification, return HTTP 200 with
Content-Type: text/plain and the received transactionId unchanged in the response body. Without a successful response, Onerway retries at 30-minute intervals, up to 3 times. On automatic retries, the payload and signature values remain unchanged; only the unsigned x-timestamp header is refreshed. Do not use this header as proof that a notification has not been replayed.demo_transactionId