Webhooks
Breeze uses webhooks to notify your server about important payment events — such as when a payment succeeds, fails, or expires. Webhooks allow your backend to update order statuses and trigger post-payment logic automatically.
🔔 Event Format
Each webhook is sent as a POST request to your configured webhook URL, with a JSON payload in the following format:
{
"type": "PAYMENT_SUCCEEDED",
"data": {
"pageId": "pay_abc123xyz",
"status": "PAID",
"clientReferenceId": "order-<your-unique-id>",
"customer": {
"id": "cus_abc123xyz",
"referenceId": "<your-customer-id>",
"email": "[email protected]"
},
"currency": "USD",
"amount": 100,
"payinDetails": {
"amount": 100,
"currency": "USD",
"type": "CARD",
"scheme": "AMEX",
"last4": "0602",
"cardType": "CREDIT",
"bin": "377910",
"issuer": "DBS BANK LTD"
},
"source": "direct"
// ...
},
"signature": "afZiTJ..."
}{
"type": "PAYMENT_EXPIRED",
"data": {
"pageId": "pay_abc123xyz",
"status": "EXPIRED",
"clientReferenceId": "order-<your-unique-id>",
"customer": {
"id": "cus_abc123xyz",
"referenceId": "<your-customer-id>",
"email": "[email protected]"
},
"currency": "USD",
"amount": 100,
"source": "direct"
// ...
},
"signature": "afZiTJ..."
}{
"type": "PAYMENT_CREATED",
"data": {
"pageId": "pay_abc123xyz",
"status": "UNPAID",
"clientReferenceId": "order-<your-unique-id>",
"customer": {
"id": "cus_abc123xyz",
"referenceId": "<your-customer-id>",
"email": "[email protected]"
},
"currency": "USD",
"amount": 100,
"source": "direct"
// ...
},
"signature": "afZiTJ..."
}{
"type": "KYC_DATA_REQUIRED",
"data": {
"email": "[email protected]"
},
"signature": "afZiTJ..."
}{
"data": {
"id": "invc_6761617949f59",
"customerId": "cus_9147c98f25092c",
"dueAt": 1758706742140,
"expiredAt": 1763890742140,
"livemode": false,
"merchantId": "mch_cd233802d7b4e",
"statusUpdatedAt": 1758704448814,
"status": "PENDING",
"amount": 301,
"currency": "USD",
"previousInvoiceId": "invc_bc896e7cbf8176",
"subscriptionId": "subs_6e7a0ad6e90d",
"paymentPageId": "page_0663161a7bc9",
"billingPeriod": {
"start": 1758706742140,
"end": 1758710342140
}
},
"signature": "OdYLaaQJg8xUsfqLJjQQ0iQAUpG/HpAK1WpJZA/NA=",
"type": "INVOICE_STATUS_UPDATED"
}- type: The type of event (PAYMENT_SUCCEEDED, PAYMENT_EXPIRED, etc.)
- data: The full payload with transaction details
- signature: A hash used for validating the webhook authenticity
✅ Supported Events
| Event Type | Description |
|---|---|
| PAYMENT_CREATED* | Payment was created, but not yet completed |
| PAYMENT_SUCCEEDED | Payment was successfully completed |
| PAYMENT_EXPIRED | Payment was not completed in time |
| KYC_DATA_REQUIRED | KYC data required from merchant |
| OFFRAMP_STATUS_UPDATE | Customer offramp status was updated |
| SUBSCRIPTION_STATUS_UPDATED | Subscription status update |
| INVOICE_STATUS_UPDATED | Invoice status update |
PAYMENT_CREATED event is only enabled by default for merchants onboarded after 25 Aug 2025.
🔒 Webhook Security
1. Signature Validation (Recommended)
To verify the webhook is sent by Breeze and not a third party:
- Compute the HMAC-SHA256 of the raw request body using your Webhook Secret.
- Compare it with the signature field in the payload.
We’ll provide a code snippet in the language of your choice in the Webhook Reference section.
2. Static IP Whitelist (Optional)
For additional security, you can restrict webhook requests to only come from Breeze’s static IPs. Contact us at [email protected] to get the current list.
🔁 Retry Policy
- If your server returns a non-200 OK status code, Breeze will retry the webhook up to 10 times over a 60-minute window.
- Delays between retries increase exponentially (e.g., 2s, 5s, 10s…).
- Once a 200 OK status code is received, we stop retrying.
🔁 Idempotency
Webhook handlers should always be idempotent, meaning:
- If you receive the same event multiple times (due to retries), your system should handle it gracefully.
- Use pageId or clientReferenceId to check if you’ve already processed the event.
📘 Best Practices
- Log all incoming webhooks for debugging and audit trails.
- Always return 200 OK after successful processing.
- Do not rely solely on client-side redirects to determine payment success.
- Make your webhook handler robust against duplicate events and transient failures.
Updated 26 days ago
