Create an invoice
Creates a manual invoice as a draft, for a charge outside any order. Order invoices come from their order and can’t be created.
Authentication
Headers
This endpoint is in the invoices=v1 beta. Send this header to use it.
Request
Lowercase ISO 4217 currency code, e.g. usd. Must be enabled on your account.
The customer to bill: its cus_ ID, your externalId, or one of its aliases.
con_ contacts of the customer who receive it. Defaults to the customer’s billing contacts.
When payment is due, overriding paymentTerms. Must be on or after now.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Defaults to net30.
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.