On this page6 sections
POST/api/invoices/void-invoiceInvoicesPermission: invoice.delete
Void Invoice
Voids a previously saved invoice and atomically reverses any deducted tracked inventory movements (`INVOICE_VOID`) inside the same transaction. Enforces outlet scope and writes security audit logs.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Outlet Scope Enforcement: Results and mutations are automatically scoped to the actor's accessible outlets when the
invoicemodule restriction applies.
Request
Provide the following fields in the request payload.
idstring (uuid)required
id parameter.
reasonstringoptional
reason parameter.
Responses
Select a status code to inspect schema.
OK — Invoice voided and stock restored (idempotent if already voided).application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/invoices/void-invoice
curl -X POST "https://api.invoger.com/api/invoices/void-invoice" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "id": "inv_41029412", "reason": "Customer canceled order before fulfillment" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Invoice voided successfully",
"data": {
"ID": "inv_41029412",
"InvoiceNumber": "SO-01.26.11.0042",
"AlreadyVoided": false,
"RestoredMovements": 1
}
}