200Successful Response
Schema: SuccessEnvelope_AutoNumberingSettingsResponse_
successbooleanmessagestringcodestringdataAutoNumberingSettingsResponse
/api/v1/businesses/auto-numberingConfigure automatic bill and invoice number generation.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: AutoNumberingSettingsUpdateRequest
auto_number_billsbooleanEnable/disable automatic bill numbering
auto_number_invoicesbooleanEnable/disable automatic invoice numbering
bill_number_prefixstringPrefix for auto-generated bill numbers (e.g., 'BILL-', '2024-'). Max 20 chars.
invoice_number_prefixstringPrefix for auto-generated invoice numbers (e.g., 'INV-', '2024-'). Max 20 chars.
next_bill_numberintegerSet next bill number (minimum 1). Useful when migrating from another system.
next_invoice_numberintegerSet next invoice number (minimum 1). Useful when migrating from another system.
journal_entry_number_prefixstringPrefix for auto-generated journal entry numbers (e.g., 'JE-'). Max 20 chars.
next_journal_entry_numberintegerSet next journal entry number (minimum 1). Useful when migrating.
Schema: SuccessEnvelope_AutoNumberingSettingsResponse_
successbooleanmessagestringcodestringdataAutoNumberingSettingsResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.