Skip to main content
POST
Create recurring invoice schedule

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).

Body

application/json
customerId
string<uuid>
required
currency
string
required

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

lineItems
object[]
required
memo
null | string
paymentTermsDays

Payment terms in days (0-365) applied to every generated invoice — the due date is this many days after each occurrence's issue date. 0 means due on receipt. Omit to use the organisation's default payment terms.

startDate
string<date-time>

Date of the first invoice. Subsequent occurrences fall on this date plus N intervals (month-end clamped).

cadence
enum<string>
Available options:
Weekly,
Monthly,
Quarterly,
Annually
totalOccurrences

Total number of invoices to generate. Omit to run until paused or cancelled.

autoSend
boolean

True: each occurrence is generated and emailed in one step. False: occurrences land as Draft for review.

Response

Created

currency
string
required

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

id
string<uuid>
organisationId
string<uuid>
customerId
string<uuid>
memo
null | string
paymentTermsDays

Payment terms in days applied to every generated invoice. Null means each occurrence uses the organisation's default at generation time.

startDate
string<date-time>
cadence
enum<string>
Available options:
Weekly,
Monthly,
Quarterly,
Annually
totalOccurrences
occurrencesGenerated
nextRunAt
null | string<date-time>

When the next invoice will be generated. Null on Paused, Completed, and Cancelled schedules.

autoSend
boolean
status
enum<string>
Available options:
Active,
Paused,
Completed,
Cancelled
lastGeneratedAt
null | string<date-time>
createdAt
string<date-time>
createdBy
null | string<uuid>
updatedAt
string<date-time>
updatedBy
null | string<uuid>
customer
null | object
lineItems
object[]