sales_settings_numbering_set
[REQUIRES APPROVAL] Sets where a document type's numbers continue, for example after moving from another invoicing tool. doc_type: invoice, quote, credit_note, debit_note or receipt. next_number is the sequence number the next document gets (42 prints as INV-2026-042). Numbering only moves forward: a number at or below the last one used or skipped is refused with VALIDATION_ERROR naming that number, and nothing changes. prefix sets the credit_note, debit_note or receipt prefix; invoice and quote prefixes are invoice_prefix and quote_prefix on sales_settings_upsert. An agent call waits for the owner's approval. Read the current numbers with sales_settings_numbering_read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | credit_note, debit_note or receipt only: 1-10 letters or digits (plus . _ / -), printed before the year. | |
| doc_type | Yes | Which document type's numbering to change. | |
| next_number | No | The sequence number the next document of this type gets. Must be above the last number used or skipped. |