Invoices: Numbering update
invoice_numbering_updateChange how ONE numbering series numbers its next documents. series: invoice (Рахунки), credit_note (Кредит-ноти), quote (Пропозиції), proforma (Проформи), purchase (Вхідні), subscription (Підписки, SUB-). Either a preset — continuous «Наскрізна» (INV-171), yearly «Щороку з 1» (INV-2026-0001), monthly «Щомісяця з 01» (INV-2026-11-01) — or the person's own fields: format (tokens {PREFIX} {SUFFIX} {YYYY} {YY} {MM} {DD} {N} {N:k}; old {YEAR} {MONTH} {NUMBER} work too), reset_period, padding (digits of the counter), next_value, prefix. «зроби нумерацію щомісяця з 01» → series=invoice, preset=monthly. The confirmation shows the next number now and after the change with real dates; documents already issued keep their numbers. On an invoices server without restarts the call is refused with a plain sentence (say it as is, nothing changed). A company with several series of one kind (per legal entity) → ask which, pass series_id from invoice_numbering. Needs the right to edit the company. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"series": "<series>"
},
"name": "invoice_numbering_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| prefix | No | ||
| preset | No | ||
| series | Yes | ||
| padding | No | ||
| series_id | No | ||
| next_value | No | ||
| reset_period | No |