Update auto-numbering settings

PUT/api/v1/businesses/auto-numbering

Configure automatic bill and invoice number generation.

Operation ID: update_auto_numbering_settings_api_v1_businesses_auto_numbering_put·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.

Request body

auto_number_billsboolean

Enable/disable automatic bill numbering

auto_number_invoicesboolean

Enable/disable automatic invoice numbering

bill_number_prefixstring

Prefix for auto-generated bill numbers (e.g., 'BILL-', '2024-'). Max 20 chars.

invoice_number_prefixstring

Prefix for auto-generated invoice numbers (e.g., 'INV-', '2024-'). Max 20 chars.

next_bill_numberinteger

Set next bill number (minimum 1). Useful when migrating from another system.

next_invoice_numberinteger

Set next invoice number (minimum 1). Useful when migrating from another system.

journal_entry_number_prefixstring

Prefix for auto-generated journal entry numbers (e.g., 'JE-'). Max 20 chars.

next_journal_entry_numberinteger

Set next journal entry number (minimum 1). Useful when migrating.

Responses

200Successful Response

successboolean
messagestring
codestring
dataAutoNumberingSettingsResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject