{
"id": "evt_5f0c2a9e4b7d4c1e8a3b6d9f1c2e4a7b",
"type": "invoice.failed",
"createdAt": "2026-11-10T09:30:05.000Z",
"partnerId": "7d5f3c1a-2b64-4c0e-9a51-6f1e2d3c4b5a",
"data": {
"invoiceNumber": "TEST-0001",
"subtotal": 100,
"taxAmount": 19,
"total": 119,
"currency": "EUR",
"dueDate": "2026-11-15T00:00:00.000Z",
"hostedInvoiceUrl": "https://example.com/widgetic/invoices/TEST-0001",
"purpose": "contract",
"reason": "Your card was declined."
}
}Payments
Payment failed
A payment for an invoice did not go through. The invoice stays open and can be paid again.
It is emailed whatever you choose, listed in your dashboard and sent to your webhook. Your webhook is sent it when webhookEvents is null or lists invoice.failed.
WEBHOOK
invoice.failed
{
"id": "evt_5f0c2a9e4b7d4c1e8a3b6d9f1c2e4a7b",
"type": "invoice.failed",
"createdAt": "2026-11-10T09:30:05.000Z",
"partnerId": "7d5f3c1a-2b64-4c0e-9a51-6f1e2d3c4b5a",
"data": {
"invoiceNumber": "TEST-0001",
"subtotal": 100,
"taxAmount": 19,
"total": 119,
"currency": "EUR",
"dueDate": "2026-11-15T00:00:00.000Z",
"hostedInvoiceUrl": "https://example.com/widgetic/invoices/TEST-0001",
"purpose": "contract",
"reason": "Your card was declined."
}
}Headers
One or more signatures, separated by a space: v1, and the base64 HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<raw body> under your secret. A second signature is there while a rotated secret overlaps. See Verify signatures.
Body
application/json
Response
Received. Answer with any 2xx status within 10 seconds. Widgetic reads at most 16 KiB of your answer and ignores what it says, so keep it short: a longer answer counts as a failure.