Set invoice series/numbering
set_invoice_seriesSet the invoice numbering series (serie / numeración / prefijo / formato / número inicial). number_format is a template: {PREFIJO} (required), {AAAA} or {AA} (year, OPTIONAL), {NNNN} (number, count of N = zero padding). WITHOUT a year token the counter runs continuously across years (Zoho style, e.g. '{PREFIJO}-{NNNN}' -> F-0158). Use start_number to continue numbering from a previous program ('quiero seguir en el número 15'). Changing prefix or format opens a NEW series (the old one stays closed and correlative). The start number is only accepted while that series cycle has no finalized invoice: Veri*factu forbids gaps. Prefixes R and S are reserved. Returns the updated format and the next invoice number preview. This sets invoice numbering only; quote numbering is separate, see set_quote_series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_number | No | the NEXT invoice gets this number | |
| number_format | No | template, e.g. '{PREFIJO}-{AAAA}-{NNNN}' (yearly reset) or '{PREFIJO}-{NNNN}' (continuous, no year) | |
| invoice_prefix | No | 1-10 alphanumeric chars, starts with a letter (e.g. F, FA, FRA) |