Acme Billing sends an HTTPS POST request to your endpoint when an invoice changes. Add an endpoint in the Acme Billing dashboard, under Settings > Webhooks, and select the events that you want.
The sandbox does not send webhooks.
| Event | When it fires |
|---|---|
invoice.paid | Acme captured a payment for the full amount due, and the invoice became paid. |
invoice.payment_failed | The last scheduled retry of a card payment failed. The invoice stays unpaid, and Acme stops retrying. |
invoice.voided | Someone voided the invoice in the dashboard or with the API. |
invoice.payment_failed does not fire for each failed attempt. It fires once, after the third retry fails. For the retry schedule, see Invoice lifecycle.
Every event has the same envelope. data holds the invoice as the API returns it, after the change.
{
"object": "event",
"id": "evt_4Hs7Kq2Xb",
"type": "invoice.payment_failed",
"createdAt": "2026-11-02T14:05:40Z",
"data": {
"object": "invoice",
"id": "INV-2041",
"customerId": "cus_N8w2Lq7Tz",
"customerName": "Northwind Traders",
"status": "unpaid",
"currency": "usd",
"total": 320000,
"amountPaid": 0,
"amountDue": 320000,
"dueDate": "2026-10-21",
"pastDue": true,
"nextRetryAt": null
}
}
The example shortens data. A real event has every invoice field.
Every request has an Acme-Signature header:
Acme-Signature: t=1793628340,v1=5b1f0c6c3e0a2d8f9e4b7a1c6d3e2f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e
tis the Unix time when Acme sent the request.v1is the HMAC-SHA256 of{t}.{raw request body}, signed with the signing secret of the endpoint, in hexadecimal.
To verify a request:
- Read
tandv1from the header. - Compute the HMAC-SHA256 of
t, a period, and the raw request body, with your signing secret. - Compare the result with
v1in constant time. - Reject the request if
tis more than 5 minutes old.
Find the signing secret of each endpoint on the Settings > Webhooks page.
Return a 2xx status within 10 seconds. If your endpoint returns another status or times out, Acme retries the request with exponential backoff for up to 3 days. Use the event id to ignore a request that you already processed.