Payment Exception Webhook
A server-initiated callback. Implement a receiving endpoint in your service.
When a payment exception status changes, Cregis sends an HTTP POST application/json notification to your configured payment-exception callback URL. Verify the callback signature first, then return plain text success to acknowledge receipt; any other response is treated as a failure.
For failed callbacks, log in to Cregis and retry from “Payment Engine Projects > Select Project > Callback Error”. See Exception Callback Handling for details.
Callback events
event_name is always payment_exception.
| event_type | Description |
|---|---|
initiated | Payment exception received |
transferring | Transfer in progress |
transfer_successful | Transfer completed |
transfer_failed | Transfer failed |
payment_history is an array of record objects for all statuses, sorted by block_time in ascending order. initiated omits transfer_fee and transfer_history. For in-progress and failed transfers, transfer_history contains addresses and amount; a completed transfer also includes block_time and tx_id.
Request
Callback Payload
application/jsonpidinteger<int64>Project ID.
signstringCallback signature. Verify the signature before processing and acknowledging the callback.
noncestring6-character random string.
timestampinteger<int64>Timestamp.
event_namestringenum: "payment_exception"Event name.
event_typestringenum: "initiated", "transferring", "transfer_successful", "transfer_failed"Payment exception event type.
- initiatedPayment exception received
- transferringTransfer in progress
- transfer_successfulTransfer completed
- transfer_failedTransfer failed
Responses
200Return plain text success to acknowledge the callback.text/plainstring