Update an invoice
Changes metadata and billingContacts in any status; dueAt and purchaseOrderNumber on drafts; paymentTerms and lines on manual drafts. Order drafts’ lines change only through regenerate. {invoice} takes the invoice’s inv_ ID.
Authentication
Path parameters
The invoice’s inv_ ID.
Headers
This endpoint is in the invoices=v1 beta. Send this header to use it.
Request
Manual drafts only: the full new list. Order drafts are rebuilt with regenerate.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Drafts only. null clears it.
Response
The type of object. Always invoice.
Integers in minor units of the invoice’s currency.
The con_ contacts who receive the invoice.
Lowercase ISO 4217 currency code, e.g. usd.
The customer billed, as its cus_ ID. For order invoices, the order’s billTo.
When payment is due. On a draft it’s projected from paymentTerms; finalizing keeps the same gap from issuedAt.
When it was finalized: the legal issue date.
How many lines it has. Read them with invoices.lines.list.
true for an object on a live account, false on a test account.
When it was written off, or null.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
The legal number from the account’s sequence, assigned on finalize. null on drafts. Never reused.
The ord_ order the invoice bills; null on manual ones.
true when finalized, not paid, something is still owed and dueAt has passed.
When paymentStatus became paid, or null.
null on drafts and voided invoices; kept on uncollectible ones, which can still be paid.
From the order on order invoices; set on manual ones. null when a manual invoice was given only a dueAt.
A span of time; endsAt is exclusive.
The last time it was emailed, or null.
order when the billing run, an activation or an amendment built it from an order, manual when it was created with invoices.create.
draft until finalized, then finalized. uncollectible once written off, voided once voided; voided is final. Payment is paymentStatus, not this. Expect new values.
When it was voided, or null.