Voids an open or unpaid invoice, so that Acme stops collecting it. Acme cancels the scheduled payment retries and sets amountDue to 0. You cannot void a paid invoice or an invoice that is already void: the API returns 409. This action is permanent.
- Sandboxhttps://acme-billing.redocly.app/_mock/apis/billing/invoices/{invoiceId}/void
- Sandbox (mock data)https://acme-billing.redocly.app/_mock/apis/billing/invoices/{invoiceId}/void
curl -i -X POST \
'https://acme-billing.redocly.app/_mock/apis/billing/invoices/{invoiceId}/void' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"reason": "duplicate"
}'The voided invoice.
The name of the customer, copied from the customer when the invoice was finalized.
The status of the invoice. See the invoice lifecycle guide.
The three-letter ISO 4217 currency code, in lowercase.
How Acme collects the invoice. charge_automatically charges the payment method on file on the due date. send_invoice emails the invoice, and the customer pays by card or bank transfer.
When Acme retries the failed card payment next. null when no retry is scheduled.
When Acme captured the payment that paid the invoice in full.
{ "object": "invoice", "id": "INV-2048", "customerId": "cus_U7m1Fh5Gd", "customerName": "Umbrella Corporation", "status": "void", "currency": "usd", "total": 80000, "amountPaid": 0, "amountDue": 0, "issueDate": "2026-09-30", "dueDate": "2026-10-30", "pastDue": false, "collectionMethod": "send_invoice", "nextRetryAt": null, "paidAt": null, "voidedAt": "2026-10-27T10:15:00Z", "lineItems": [ { … } ], "createdAt": "2026-09-30T08:00:00Z" }