Skip to main content
POST
/
invoices
/
{invoice_number}
/
void
Void Invoice
curl --request POST \
  --url https://payments.shakesco.com/invoices/{invoice_number}/void \
  --header 'Authorization: Bearer <token>'
{ "success": true }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Cancels a pending invoice. Once voided, the invoice cannot be paid. Already-paid invoices return 422.
Treat this as a transaction. If the response times out, fetch GET /invoices/{invoice_number} to confirm the current status before retrying.

Path Parameters

invoice_number
string
required
The invoice to void

Response

success
boolean
true once the invoice is marked void
await fetch("https://payments.shakesco.com/invoices/INV-2026-a1b2c3d4/void", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}` },
});
{ "success": true }