Cancel an invoice
POST
https://api.tamio.com/v2/invoices/cancel/{uuid}
Cancels an unpaid invoice, preventing further payment attempts. Optionally cancel specific products within the invoice. Canceled invoices cannot be uncanceled but can be recreated as new invoices.
Path Parameters
uuid
string*
UUID of the unpaid invoice to cancel
Body Parameters
products
array of object
Specific products to cancel (entire invoice if omitted)
Responses
200
Invoice cancelled successfully
Invoice cancelled successfully
status
integer
invoice
Invoice
400
Bad request. Possible `error_code` values:
Bad request. Possible error_code values:
| Code | Description |
|---|---|
1002 | ResourceNotFound |
10117 | InvalidInvoice |
10369 | InvoiceAlreadyCancelled |
10370 | InvoiceCannotBeCancelled |
status
integer
error
string
Human-readable error message
error_code
integer
Machine-readable error code
401
Missing or invalid API key
Missing or invalid API key
status
integer
error
string