Payment
Refund Status Notification
When a refund order status changes, GatePay sends a webhook with bizType PAY_REFUND.
Verify the signature and return {"returnCode":"SUCCESS","returnMessage":""} after successful processing. On delivery failure, GatePay retries at the intervals documented in Notifications Overview.
WEBHOOK
Overview
This page documentswebhook refundWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above.
GatePay sends asynchronous notifications to the merchant callback URL when refund order status changes (bizType is PAY_REFUND).
Notes
- Use
refundInfo.refundRequestIdorbizIdfor idempotency. - Signature verification, retries, parsing
data, and the success response are covered in Notifications Overview; see Security and Signature for signing rules.
Trigger Scenarios
- When a refund order status changes (success, in progress, or rejected), GatePay sends a notification to the callback URL configured at merchant registration
- If delivery fails, see retry rules in Notifications Overview.
bizType is PAY_REFUND). For refund reconciliation, prefer the merchant-unique identifier refundRequestId.
Query fallback
- A successful refund API response only means acceptance, not the final refund outcome.
- Wait for the
PAY_REFUNDcallback first; if no status notification arrives within 10 seconds, call Query Refund Details (GET /v2/pay/refund/details) usingrefundRequestId.
Message Structure
Example Message
bizStatus Enumeration
data Field Reference
refundInfo Fields
Callback Example
Refund succeeded (bizStatus=REFUND_SUCCESS)
Refund in process (bizStatus=REFUND_PROCESS)
Refund rejected (bizStatus=REFUND_REJECTED)
Body
application/json
Business type; always PAY_REFUND.
Available options:
PAY_REFUND Refund order ID.
Refund order status; see enum values.
Available options:
REFUND_SUCCESS, REFUND_PROCESS, REFUND_REJECTED Business data as a JSON string; parsed structure see refundData.
Merchant client_id that created the order.
Parsed refund notification details from data.
Response
200 - application/json
HTTP 200 indicates the merchant successfully received the notification.

