Skip to main content
POST
Issue an invoice

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Path Parameters

invoice_id
string
required
Pattern: ^([a-zA-Z\d\-]+)$

Body

send_invoice
boolean
required

Whether to send the customer's usual invoice notifications, as on the billing date: a customer autopay can charge is not emailed the invoice. When false no notifications are sent.

due_date_basis
enum<string> | null

What the issued invoice's due date follows. Omit it to keep the invoice's own basis. ISSUE_DATE counts the payment terms from today, SERVICE_PERIOD from the billing date, and CUSTOM names the date outright and must be sent with due_at.

  • ISSUE_DATE - Issue date
  • SERVICE_PERIOD - Service period
  • CUSTOM - Custom
Available options:
ISSUE_DATE,
SERVICE_PERIOD,
CUSTOM
due_at
string<date> | null

The due date to issue under. Only valid with a CUSTOM due_date_basis, and cannot be earlier than today.

Response

Output serializer for an invoice issued now (SAL-8044).

invoice_id
string<uuid>
required

The unique identifier of the issued invoice

status
string
required

The invoice's status once issued, for example OUTSTANDING.