API Reference · Invoices
Create an invoice
Creates a draft invoice that has not yet been sent.
/v1/invoicesInvoices start in DRAFT. You can continue editing line items, notes, and terms until you call the send endpoint. Call `/send` to deliver the invoice and transition it to OPEN.
Body parameters
customerstringRequiredId of the customer to bill.
currencystringRequiredLowercase 3-letter ISO 4217 code.
line_itemsarrayRequiredAt least one line item. Each has `description`, `quantity`, `unit_price_cents`.
tax_rate_bpsintegerTax rate in basis points. Default 0.
payment_termsstringdefault: due_on_receiptOne of `due_on_receipt`, `net_7`, `net_15`, `net_30`, `net_60`, `net_90`.
due_datestringISO date. Required when `payment_terms` is a net term.
notesstringFree-form note shown to the customer.
installment_enabledbooleanSplit the invoice into installments. See the installment guide.
installment_countintegerNumber of installments when enabled. Between 2 and 12.
metadataobjectUp to 20 key/value pairs.
Errors
parameter_missing`customer` or `line_items` not supplied.
resource_missingReferenced customer does not exist.
invalid_request_errorA line item total is negative or `installment_count` out of range.