Webhook Notification - Transaction Failed

View as Markdown
Example webhook notification sent by SQRIL when a transaction is finalized as failed. **When it is sent:** - After provider processing marks the transaction failed. - Sent to all active webhook configs whose event filter matches `transaction.failed`. **Payload notes:** - Required fields: `tx_id`, `status` (`FAILED`). - Optional fields: `error_message`, `sender`, `recipient`, and fee fields (if present). - `error_message` describes why the transaction failed. **Headers:** - `Content-Type: application/json` - `User-Agent: SQRIL-Webhook/` - `X-SQRIL-Signature` only when a webhook secret is configured.

Headers

X-SQRIL-SignaturestringOptional

HMAC-SHA256 signature of the webhook payload (base64). Included only when webhook secret is configured.

Request

This endpoint expects an object.
tx_idstringRequired
statusstringRequired
error_messagestringRequired
senderobjectRequired
recipientobjectRequired

Response

OK
receivedboolean
messagestring