Preview next auto-generated numbers

GET /api/v1/businesses/auto-numbering/preview

See what the next bill and invoice numbers would be without incrementing.

Operation ID: preview_auto_numbering_api_v1_businesses_auto_numbering_preview_get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

200 Successful Response

next_bill_number string

Preview of next bill number (e.g., 'BILL-0001'). None if auto-numbering disabled.

next_invoice_number string

Preview of next invoice number (e.g., 'INV-0001'). None if auto-numbering disabled.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object