Create invoice
Create a new invoice with line items for the organisation.
Authentication. An API key (x-dolfin-api-key) together with the x-dolfin-organisation-id header identifying the organisation, or a JWT Bearer token that carries the organisation in its claims.
Authorizations
An API key issued to your client. It carries the client's scope; org-scoped calls also require the x-dolfin-organisation-id header. Keys are created and revoked by a client administrator.
Headers
Target organisation. Required when authenticating with an API key; omit for Bearer callers (resolved from the token).
Body
ISO 4217 currency code (e.g. GBP, USD, EUR)
Custom payment link for this invoice, shown as the pay QR/CTA. Only allowed when the client has integrated (Dolfin) payments turned off; must be an absolute https URL. When omitted, the client's default payment link (if any) is used.
CC recipients for the invoice email and its reminders. Omit to use the organisation's default CC list; pass an empty list for no CC. Each must be a valid email.
Payment terms in days (0-365) — the number of days from issue to due date. 0 means due on receipt. Omit to use the organisation's default payment terms, which is snapshotted onto the invoice at creation.
Response
Created
ISO 4217 currency code (e.g. GBP, USD, EUR)
Draft, Sent, Paid, Void, PartiallyPaid, Credited Total payments received against this invoice.
Total of issued credit notes applied to this invoice.
Remaining balance: TotalAmount - payments received - issued credit notes.
Set when this invoice was generated from a recurring schedule; null for hand-made invoices.
Custom bring-your-own payment link set on this invoice, if any. Only settable when the client has integrated payments off. Null when the client default (or, under integrated payments, the Dolfin-generated link) applies instead.
Per-invoice CC recipients. Null means the organisation's default CC list is used; an empty list means no CC.
Payment terms in days (0-365) snapshotted onto this invoice; the due date is this many days after the issue date. Snapshotted from the organisation default at creation unless overridden. 0 means due on receipt.