Deze referentie is alleen in het Engels. Naar het Nederlandse REST API-overzicht

Diese Referenz gibt es nur auf Englisch. Zur deutschen REST-API-Übersicht

Cette référence existe uniquement en anglais. Aller à la présentation de l'API REST en français

Esta referencia solo está en inglés. Ir a la introducción de la API REST en español

SalesInvoice

SalesInvoice

A sales invoice header: what a customer is billed, when it is due, and how far it has got through the accounting sync.

View as Markdown
Summary view
SalesInvoiceList, 28 fields. What a list returns by default.
Detail view
SalesInvoice, 30 fields. The default for a single read and for every write.

The money on it is the sum of its rows, which are reached through sales-invoices/{sales_invoice}/rows; the API never writes rows inline. Invoices that predate the current invoicing flow are marked is_legacy and are read-only.

Used by

GETRead a sales invoice/sales-invoices/{sales_invoice}SalesInvoice
PATCHUpdate a sales invoice/sales-invoices/{sales_invoice}SalesInvoice
POSTRestore a deleted sales invoice/sales-invoices/{sales_invoice}/actions/restoreSalesInvoice

Fields

Detail only
Only in the detail view.
Only with include
Only when you ask for it with include.
Server-assigned
Set by plnnrly, never by a request.
idinteger

Unique identifier.

customer_idinteger

Customer this invoice is billed to.

customerRef or CustomerSummary

The customer this invoice is billed to. Expanding it with ?include=customer additionally requires the customers::read permission and a token scope covering the customers prefix.

project_idinteger or null

Project this invoice was raised for, when it was raised from one.

customer_subscription_idinteger or null

Customer subscription this invoice was generated from, when it was generated from a renewal.

invoice_numberstring≤ 255Server-assigned

Invoice number, allocated by the server from the organisation's yearly sequence: B-26-00001 for an invoice raised in this flow, L-1234 for one converted from a legacy invoice. It also works in the path: GET sales-invoices/B-26-00001 works. This is the field ?q= searches.

referencestring or null≤ 255

The customer's own reference, typically a purchase-order number, reproduced on the invoice.

descriptionstring or null≤ 255

One-line description of what was invoiced.

invoice_datedate (YYYY-MM-DD)

Invoice date, a zone-free calendar date. Newest first is the default sort.

due_datedate (YYYY-MM-DD) or null

Date payment is due, a zone-free calendar date. Null when no term was applied.

Variants

SalesInvoiceList 28 fields

What a collection returns, and what ?view=summary returns on a single record.

Leaves out: sync_error, internal_notes