Skip to main content
POST
Send invoice

Authorizations

x-dolfin-api-key
string
header
required

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

x-dolfin-organisation-id
string<uuid>

Target organisation. Required when authenticating with an API key; omit for Bearer callers (resolved from the token).

Path Parameters

id
string<uuid>
required

Body

application/json
tone
null | enum<string>

Resolves the catalogue with this tone instead of the organisation's default for this send only. When null, the organisation's DefaultInvoiceMessageTone is used.

Available options:
Friendly,
Direct,
Formal
subject
null | string

Overrides the catalogue-resolved email Subject. When null, catalogue resolves.

previewText
null | string

Overrides the catalogue-resolved inbox preview text (the line that previews next to the subject in most clients). When null, catalogue resolves.

greetingLine
null | string

Overrides the catalogue-resolved greeting line (e.g. "Hi Acme,"). When null, catalogue resolves.

openingBodyMarkdown
null | string

Overrides the catalogue-resolved opening body. Markdown; rendered to HTML at send time. When null, catalogue resolves.

reminders
null | enum<string>[]

Override the organisation's DefaultReminderOffsets for this send. null (or field omitted): use the organisation's default list. []: schedule no reminders for this send. Populated: schedule exactly these offsets, overriding the organisation default. Each offset is resolved relative to the invoice's DueDate; offsets that would resolve to a past time are skipped silently.

Available options:
OneWeekBefore,
TwoDaysBefore,
OnDueDate,
TwoDaysAfter,
OneWeekAfter
cc
null | string[]

Override the invoice's CC recipients for this send. null (or omitted): use the invoice's CC, or the organisation default when the invoice has none. Populated (or []): use exactly these, and persist them on the invoice so its reminders CC the same recipients. Each must be a valid email.

replyTo
null | string

Override the Reply-To address for this send's email only (reminders keep the organisation default). When null, the organisation's DefaultReplyToEmail is used, falling back to its contact email. Must be a valid email.

Response

OK

currency
string
required

ISO 4217 currency code (e.g. GBP, USD, EUR)

id
string<uuid>
organisationId
string<uuid>
customerId
string<uuid>
documentNumber
null | string
issueDate
string<date-time>
dueDate
null | string<date-time>
status
enum<string>
Available options:
Draft,
Sent,
Paid,
Void,
PartiallyPaid,
Credited
subTotal
taxAmount
totalAmount
amountPaid

Total payments received against this invoice.

amountCredited

Total of issued credit notes applied to this invoice.

outstanding

Remaining balance: TotalAmount - payments received - issued credit notes.

recurringScheduleId
null | string<uuid>

Set when this invoice was generated from a recurring schedule; null for hand-made invoices.

recurringOccurrenceNumber
memo
null | string

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.

ccEmails
null | string[]

Per-invoice CC recipients. Null means the organisation's default CC list is used; an empty list means no CC.

paymentTermsDays

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.

createdAt
string<date-time>
createdBy
null | string<uuid>
updatedAt
string<date-time>
updatedBy
null | string<uuid>
paymentUrl
null | string
customer
null | object
lineItems
object[]