POST
Generate invoice

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Invoice lifecycle or line-item fields used to update invoice totals and status.

Request payload for generate invoice.

room_id
string<uuid>
required

UUID identifier for room.

period
string
required

Billing period in YYYY-MM format.

Required string length: 7
Pattern: ^\d{4}-\d{2}$
issue
boolean | null

When true, generate and issue the invoice in one operation. When false or omitted, the invoice remains DRAFT and issue_date must be omitted.

issue_date
string<date> | null

Optional operational issue date used only when issue is true. If omitted while issuing, the date defaults from billing_settings.billing_day for the billing period.

due_date
string<date> | null

Optional payment due date for a newly generated invoice. It may be earlier than the lease start date for advance payments, reservations, or deposits. This is not the invoice issue date, legal tax invoice date, or revenue-recognition date.

Response

Generated or existing invoice (idempotent on room and period)

data
object
required

Endpoint-specific response payload. See the referenced schema for the resource fields.

request_id
string
required

Request correlation identifier returned from X-Request-Id or generated by the API.

meta
object

Optional response metadata such as pagination limits, counts, or export context.