Cancel invoice
Cancels a one-off invoice. Only one-off invoices can be modified through the public API.
Response
Schema representing an invoice. Monetary amounts are integers in cents.
The number of the invoice within its contract, in the order that Aira created the contract's invoices: 1 for the first, 2 for the next, and so on. Every invoice gets its own number, including each invoice of a split across payment accounts and the replacement of a reopened invoice, and a number never changes and is never reused. Null for invoices without a contract.
x >= 1How the originating contract distributes charges across payment accounts: single bills a single payment account; percent_split divides the total between payment accounts by configured percentages; subsidiary_usage_split divides it according to each subsidiary's usage.
single, percent_split, subsidiary_usage_split The date of the invoice. On a contract invoice it is the date of its billing act: the first day of the first billing cycle that the contract invoices for an activation invoice, and the last day of the billing cycle for a closing invoice. Its line items state the periods that it bills. On a one-off or imported invoice it is the date given when the invoice was created.
Free-form memo attached to the invoice. On contract invoices, it reads "Período a " with the period of the line item that bills most often, such as the month when a monthly fee is billed with an annual fee. When two line items bill equally often, it uses the earlier period. Null when absent.
Current status of the invoice lifecycle: open (accumulating charges, editable), in_review (flagged for manual review before issuing), issued (finalized and issued to the customer), synced (registered in the external ERP/payment provider), pending (a payment was initiated and awaits settlement), paid, overdue (unpaid past the due date), canceled, or failed (an issue/sync attempt failed and needs attention).
open, in_review, issued, synced, pending, paid, overdue, canceled, failed