Refund Webhook
A server-initiated callback. Implement a receiving endpoint in your service.
When the refund status changes, Cregis pushes a notification to the callback_url configured when creating the order.
Verify the signature, then respond with the plain-text string success to acknowledge receipt. Other response content is treated as a failed callback. Retry failed callbacks from Cregis App > WaaS Projects > Select Project > Callback Error. See Exception Callback Handling.
Callback events
| event_type | Description |
|---|---|
initiated | Refund created |
refunding | Refund in progress |
refund_successful | Refund completed |
refund_failed | Refund failed |
The initiated event omits refund_fee and refund_history; refund transaction details for other statuses are returned as processing progresses. Complete examples for all four statuses are shown below.
Request
Callback Payload
application/jsonpidinteger<int64>Project ID — found under the project's settings.
signstringDigital signature — merchants MUST verify it to authenticate the callback.
noncestring6-character random string.
timestampinteger<int64>13-digit Unix timestamp (ms).
event_namestringenum: "waasom_refund"Callback event name.
event_typestringenum: "initiated", "refunding", "refund_successful", "refund_failed"Refund event type.
- initiatedRefund created
- refundingRefund in progress
- refund_successfulRefund completed
- refund_failedRefund failed
Responses
200Respond with plain-text success to acknowledge the callback.text/plainstring