Void an invoice
POST/invoices/{id}/void
draft/open → voided (terminal): the invoice can never be paid.
Idempotent — voiding a voided invoice is a 200 no-op. A paid invoice
refuses with 409 (money already moved; that would be a refund).
Void transition rules are flagged for review (see contract doc).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Invoice ID
Responses
Section titled “Responses”The invoice, now voided
object
Currently supported currencies by Paygasus Pay
Example
USDUnix epoch milliseconds.
One display line on the invoice. Amounts are minor units, like every amount on the wire (design.md §5).
object
A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000Unix epoch milliseconds; set once paid.
Set once sent: the stable invoice payment URL the customer pays at.
A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000Server-computed: sum of line amounts + tax_amount.
Example
1000No such invoice
object
object
When present and true, the caller may retry the same request.
Invoice is paid and cannot be voided
object
object
When present and true, the caller may retry the same request.
