Preview an invoice
Authentication
Headers
This endpoint is in the invoices=v1 beta. Send this header to use it.
Query parameters
The ord_ order whose next invoice to preview.
Response
The type of object. Always invoicePreview.
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.
The ord_ order the invoice bills; null on manual ones.
true when finalized, not paid, something is still owed and dueAt has passed.
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.
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.