Invoices

Create, finalize, pay, void, and list invoices for customers.

View as Markdown

An invoice collects line items and billing details for a customer, moving through a lifecycle from draft to open to paid (or voided). VINR can advance invoices automatically or give you full manual control over each transition.

Illustrative content. Hand-authored to demonstrate the Standard/Advanced pattern; the production page will be generated from the VINR OpenAPI spec (roadmap item #1). Field names are representative.

The invoice objectAsk

idstring

Unique identifier for the invoice, e.g. inv_4Xk9b3Mw.

customerobjectExpandable

The customer this invoice belongs to. Expand to retrieve the full object.

statusenum

One of draft, open, paid, void, or uncollectible.

amount_dueinteger

Total amount due, in the smallest currency unit (e.g. cents).

amount_paidinteger

Amount already collected, in the smallest currency unit.

currencystring

Three-letter ISO currency code, e.g. EUR.

due_dateinteger

Unix timestamp of when payment is due, if set.

linesarray

Array of line items included in the invoice. Each item has id, description, amount, and quantity.

createdinteger

Unix timestamp of when the invoice was created.

Create an invoiceAsk

Creates a draft invoice for a customer. Set auto_advance: true to let VINR automatically finalize and attempt payment when the invoice is ready.

Retrieve an invoiceAsk

Update an invoiceAsk

Updates a draft invoice. Only description and footer may be modified after finalization.

Finalize an invoiceAsk

Moves a draft invoice to open, making it ready for payment. Once finalized, line items are locked.

Pay an invoiceAsk

Charges the customer's default payment method and transitions the invoice to paid.

Void an invoiceAsk

Cancels an open invoice. A voided invoice cannot be re-opened or paid.

List invoicesAsk

Returns invoices for your account, optionally filtered by customer or status.

invoice.created, invoice.finalized, invoice.payment_succeeded, invoice.payment_failed, and invoice.voided. See Events.

Was this page helpful?