Universal CRM Methods: Overview of Methods and Events
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.
The methods crm.item.* manage CRM objects: leads, deals, contacts, companies, invoices, estimates, and SPA elements.
A unified interface simplifies working with different objects. Instead of separate commands for each object, use universal methods with the type identifier entityTypeId.
Quick navigation: all methods and events
Getting Started
-
Determine the CRM object type
entityTypeId. The complete table is available in the CRM object types reference, and the smart process identifier can be found using the crm.type.list method. The main values for system types are:Object Type
entityTypeIdLead
1
Deal
2
Contact
3
Company
4
Invoice (new, smart)
31
Invoice (old, deprecated)
5
Estimate
7
Requisite
8
Order
14
Smart Process
from 128
-
Retrieve the list of available fields for this type using the crm.item.fields method.
-
Create a new item using the crm.item.add method or get a list of existing items using the crm.item.list method.
-
Obtain data for a specific item using the crm.item.get method.
-
Modify an item using the crm.item.update method or delete it using the crm.item.delete method.
Relationships of Universal Methods with Other Objects
CRM Object Type. The type is set by the entityTypeId parameter. It defines the structure of fields and the logic of the method.
CRM Object. A specific record is identified by the pair entityTypeId and id. This combination is used in the main methods crm.item.*.
Requisites. Link company and contact requisites using the crm.requisite.link.* methods.
Parent Relationships. Items are linked to each other through the parentId and parentEntityTypeId fields:
fieldsreturns information about parent fieldsgetprovides values of parent fieldslistfilters, sorts, and adds parent field values to the selectionaddandupdatesupport changing the values of these fields
Field Naming Conventions
In the database, fields are stored in UPPER_CASE format, while in REST, names are used in camelCase.
Example: ASSIGNED_BY_ID becomes assignedById.
For custom fields, the conversion is more complex because the original names often contain numbers and underscores.
Standard case: UF_CRM_10_5186744711 becomes ufCrm10_5186744711. Underscores between numeric blocks are preserved, while others are removed.
A problem arises when letters and numbers are mixed. For example, UF_CRM_10_DIGIT10 converts to ufCrm10Digit10. In reverse conversion, it is impossible to determine whether the original field was UF_CRM_10_DIGIT10 or UF_CRM_10_DIGIT_10.
Starting from version CRM 21.1800.0, the system checks for such conflicts before conversion. If the name becomes ambiguous, it is returned in its original UPPER_CASE form.
|
UPPER_CASE |
camelCase |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Starting from version CRM 25.0.0, the crm.item.* methods support the useOriginalUfNames parameter, which controls the format of custom field names in requests and responses:
Y— original names of custom fields, e.g.,UF_CRM_2_1639669411830N— names of custom fields incamelCase, e.g.,ufCrm2_1639669411830
By default, N is used.
Use Cases
- Configure object structure and fields: CRM Object Fields, Custom Fields, Custom Field Settings
- Work with smart processes and stages: Smart Processes, CRM Funnels
- Manage the composition of a deal or invoice: Product Items, Payments and Deliveries, Deliveries, Invoices
- Configure the detail form and interface: Managing Item Detail Forms, Widgets
- Bulk upload and link data: Import, Linking CRM with Online Store Orders
Overview of Methods and Events
Scope:
crmWho can perform methods: depending on the method
|
Method |
Description |
|
Creates a CRM item |
|
|
Modifies fields of a CRM item |
|
|
Returns data of a CRM item by identifier |
|
|
Returns a list of CRM items |
|
|
Deletes a CRM item |
|
|
Returns the description of fields of a CRM item |
|
Event |
Triggered |
|
After adding a smart process item |
|
|
After updating a smart process item |
|
|
After deleting a smart process item |