Invoice items

Create, retrieve, update, delete, and list line items on draft invoices.

View as Markdown

An invoice item is a single line item added to a draft invoice. You can attach items to an existing draft or create them without an invoice to be auto-collected on the customer's next invoice.

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 item objectAsk

idstring

Unique identifier for the invoice item, e.g. ii_7Yz1c4Nq.

invoiceobjectExpandable

The invoice this item belongs to, if assigned. Expand to retrieve the full object.

customerobjectExpandable

The customer this item is billed to. Expand to retrieve the full object.

amountinteger

Total amount for this line item, in the smallest currency unit (e.g. cents).

currencystring

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

descriptionstring

Human-readable description of the item, shown on the invoice.

quantityinteger

Number of units. Defaults to 1.

unit_amountinteger

Per-unit amount in the smallest currency unit. amount equals unit_amount * quantity.

createdinteger

Unix timestamp of when the item was created.

Create an invoice itemAsk

Adds a line item to a draft invoice. Omit invoice to create a pending item that will be included on the customer's next automatically generated invoice.

Retrieve an invoice itemAsk

Update an invoice itemAsk

Updates the description or amount on a draft invoice item. Only items on draft invoices may be modified.

Delete an invoice itemAsk

Removes an item from a draft invoice. Deleted items cannot be recovered.

List invoice itemsAsk

Returns invoice items, optionally filtered by customer or invoice.

invoiceitem.created, invoiceitem.updated, and invoiceitem.deleted. See Events.

Was this page helpful?