Numbering Rules: Overview of Methods
A numbering rule defines the number template and counter settings for CRM documents. For example, a numbering rule with the template INV-{NUMBER} assigns document numbers in the format INV-1, INV-2.
The numbering rule is a preliminary step: it is created once and linked to the document template via numeratorId. Multiple templates can use a single numbering rule, sharing one counter.
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Quick navigation: all methods
User documentation: Create and configure auto numbering template in CRM
Getting Started
- Create a numbering rule using the method crm.documentgenerator.numerator.add.
- If you are using an already created numbering rule, retrieve the list of numbering rules and their identifiers using the method crm.documentgenerator.numerator.list.
- If you know the
idof the numbering rule and want to check its settings, use the method crm.documentgenerator.numerator.get. - Pass the
numeratorIdto the document template:- if creating a new template, use the method crm.documentgenerator.template.add.
- if modifying an existing template, use the method crm.documentgenerator.template.update.
- If you need to change the settings of the numbering rule, use the method crm.documentgenerator.numerator.update.
- Delete an unnecessary numbering rule using the method crm.documentgenerator.numerator.delete.
Important Considerations
The methods crm.documentgenerator.numerator.update and crm.documentgenerator.numerator.delete only work with numbering rules created using the method crm.documentgenerator.numerator.add.
Relationship with Other Objects
Document Templates. The numbering rule is linked to the template via the numeratorId parameter in the methods crm.documentgenerator.template.add and crm.documentgenerator.template.update.
Documents. The document number is generated by the method crm.documentgenerator.document.add when creating a document from a template. If the numbering rule does not return the next number during generation, the method will return an error.
Overview of Methods
Scope:
crmWho can execute the method: a user with the "modify" permission for document generator templates
|
Method |
Description |
|
Adds a new numbering rule |
|
|
Updates an existing numbering rule |
|
|
Returns information about the numbering rule by identifier |
|
|
Returns a list of numbering rules |
|
|
Deletes a numbering rule |