Skip to main content
Webhooks allow your application to receive real-time notifications when the status of a payment changes. Instead of continuously polling the API for updates, your server receives an HTTP POST request whenever an event occurs.

Supported Events

Currently, the API supports:
  • payment.confirmed
Future events may include:
  • 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.
  1. Visit Webhook.site.
  2. Copy the unique webhook URL.
  3. Register it using POST /webhook/register.
  4. Send a payment.
  5. Watch the webhook payload appear instantly.

Example Receiver (FastAPI)

The merchant needs an endpoint like below to receive your webhook.
The merchant’s application must expose an HTTPS endpoint capable of receiving POST requests. During development, you can use services such as Webhook.site to inspect webhook payloads without writing a webhook receiver. The above FASTAPI webhook receiver is part of merchant’s application not the Vaayu API.

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.