The Invoices object
The Invoice object represents a sales or purchase invoice linked
to a contact. It contains header fields (dates, reference,
terms), computed totals (subtotal, vatAmount, total),
and an array of line items.
Computed fields (subtotal, vatAmount, total,
amountPaid) are read-only and maintained by the API as line
items change or payments are recorded. The status field is
managed via the status, payment, and email endpoints; on create
the only choice is the initial draft or sent.
List rows carry a compact shape including contactName and
contactEmail; single-invoice reads include the full
contact object and lines instead.
Attributes
idstringPrefixed string identifier. Always starts with
inv_ (e.g. inv_42).invoiceNumberstringSequential number assigned on creation (e.g.
INV-0042). Unique per organisation. Read-only.invoiceTypestringEither
sales (issued to a customer) or purchase (received from a supplier). Immutable after creation.contactIdstringPrefixed ID of the linked contact (e.g.
cont_3).statusstringCurrent lifecycle state, one of the seven stored values. Transitions follow the enforced table in the resource description;
partial/paid are payment-derived and credited is reserved.issueDatestringInvoice issue date, the tax point.
YYYY-MM-DD.dueDatestringPayment due date.
YYYY-MM-DD.subtotalstringSum of all line item net amounts, in pence. Computed by the API. Read-only.
vatAmountstringSum of all line item VAT amounts, in pence. Computed by the API. Read-only.
totalstringInvoice total including VAT, in pence (
subtotal + vatAmount). Computed by the API. Read-only.amountPaidstringCumulative total of all payments recorded against this invoice, in pence. Increases with each payment. Read-only.
sentAtstringISO 8601 timestamp of the FIRST issue of the invoice, stamped once and never restamped by re-sends or subsequent transitions.
null until first issued.createdBystringInteger id of the user who created the invoice, or null when it was created with an API key.
referencestringOptional external reference such as a purchase order number. Max 100 characters. Empty string when unset.
notesstringOptional freeform notes on the invoice. Max 2000 characters. Null when never set, empty string when set to empty.
termsstringOptional payment terms text shown on the invoice. Max 2000 characters. Empty string when unset.
metadatastringCustom string key-value pairs. Max 50 keys; keys prefixed
_sb_ are reserved.createdAtstringISO 8601 creation timestamp.
updatedAtstringISO 8601 last-updated timestamp.
contactstringOn single-invoice reads, the embedded contact object (name, email, phone, VAT number, address parts). List rows instead carry the compact
contactName and contactEmail.linesstringArray of line items in sort order. Each line carries
quantity (units), unitPrice (pence on read), vatRate (integer percent), computed vatAmount and lineTotal (pence), and the account mapping (accountId, accountCode, accountName).