Supported Events
Currently, the API supports:- payment.confirmed
- payment.failed
- payment.pending
Register a Webhook
Register a webhook URL using:Example Webhook Payload
When a payment is confirmed, your endpoint receives:Testing Webhooks
For development, you can use a temporary webhook receiver such as Webhook.site.- Visit Webhook.site.
- Copy the unique webhook URL.
- Register it using POST /webhook/register.
- Send a payment.
- Watch the webhook payload appear instantly.
Example Receiver (FastAPI)
The merchant needs an endpoint like below to receive your webhook.Best Practices
- Respond with HTTP 200 OK as quickly as possible.
- Process webhook events asynchronously if they require significant work.
- Keep your webhook endpoint publicly accessible over HTTPS.
- In future releases, webhook requests will include a signature header so you can verify they originated from the Stablecoin Payments API.