Get CRM Status Entity Types
Scope:
crmWho can execute the method: any user
The method crm.status.entity.types returns a list of all supported types of directories, ENTITY_ID objects.
Method Parameters
No parameters.
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.status.entity.types
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/crm.status.entity.types
try
{
const response = await $b24.callMethod(
'crm.status.entity.types',
{}
);
const result = response.getData().result;
console.dir(result);
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'crm.status.entity.types',
[]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error());
echo 'Error: ' . $result->error();
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error calling crm.status.entity.types: ' . $e->getMessage();
}
BX24.callMethod(
"crm.status.entity.types",
{},
function(result) {
if(result.error())
console.error(result.error());
else
console.dir(result.data());
}
);
require_once('crest.php');
$result = CRest::call(
'crm.status.entity.types',
[]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP status: 200
{
"result": [
{
"ID": "STATUS",
"NAME": "Lead Stages",
"SEMANTIC_INFO": {
"START_FIELD": "NEW",
"FINAL_SUCCESS_FIELD": "CONVERTED",
"FINAL_UNSUCCESS_FIELD": "JUNK",
"FINAL_SORT": 0
},
"ENTITY_TYPE_ID": 1
},
{
"ID": "SOURCE",
"NAME": "Sources"
},
{
"ID": "CONTACT_TYPE",
"NAME": "Contact Type"
},
{
"ID": "COMPANY_TYPE",
"NAME": "Company Type"
},
{
"ID": "EMPLOYEES",
"NAME": "Number of Employees"
},
{
"ID": "INDUSTRY",
"NAME": "Industry"
},
{
"ID": "DEAL_TYPE",
"NAME": "Deal Type"
},
{
"ID": "SMART_INVOICE_STAGE_5",
"NAME": "Invoice Stages",
"SEMANTIC_INFO": [],
"PREFIX": "DT31_5",
"FIELD_ATTRIBUTE_SCOPE": "category_5",
"ENTITY_TYPE_ID": 31,
"IS_ENABLED": true,
"CATEGORY_ID": 5
},
{
"ID": "DEAL_STAGE_1",
"NAME": "Newest Deal Stages",
"PARENT_ID": "DEAL_STAGE",
"SEMANTIC_INFO": {
"START_FIELD": "C1:NEW",
"FINAL_SUCCESS_FIELD": "C1:WON",
"FINAL_UNSUCCESS_FIELD": "C1:LOSE",
"FINAL_SORT": 0
},
"PREFIX": "C1",
"FIELD_ATTRIBUTE_SCOPE": "category_1",
"ENTITY_TYPE_ID": 2,
"CATEGORY_ID": "1"
},
{
"ID": "DEAL_STAGE",
"NAME": "General Deal Stages",
"SEMANTIC_INFO": {
"START_FIELD": "NEW",
"FINAL_SUCCESS_FIELD": "WON",
"FINAL_UNSUCCESS_FIELD": "LOSE",
"FINAL_SORT": 0
},
"FIELD_ATTRIBUTE_SCOPE": "",
"ENTITY_TYPE_ID": 2,
"CATEGORY_ID": 0
},
{
"ID": "QUOTE_STATUS",
"NAME": "Estimate Stages",
"SEMANTIC_INFO": {
"START_FIELD": "DRAFT",
"FINAL_SUCCESS_FIELD": "APPROVED",
"FINAL_UNSUCCESS_FIELD": "DECLINED",
"FINAL_SORT": 0
},
"ENTITY_TYPE_ID": 7
},
{
"ID": "HONORIFIC",
"NAME": "Honorifics"
},
{
"ID": "CALL_LIST",
"NAME": "Call Statuses"
},
{
"ID": "SMART_DOCUMENT_STAGE_13",
"NAME": "Document Stages",
"SEMANTIC_INFO": [],
"PREFIX": "DT36_13",
"FIELD_ATTRIBUTE_SCOPE": "category_13",
"ENTITY_TYPE_ID": 36,
"IS_ENABLED": true,
"CATEGORY_ID": 13
},
{
"ID": "DYNAMIC_177_STAGE_7",
"NAME": "Equipment Purchase (General)",
"SEMANTIC_INFO": [],
"PREFIX": "DT177_7",
"FIELD_ATTRIBUTE_SCOPE": "category_7",
"ENTITY_TYPE_ID": 177,
"IS_ENABLED": true,
"CATEGORY_ID": 7,
"CATEGORY_NAME": "General",
"CATEGORY_SORT": 500,
"IS_DEFAULT_CATEGORY": true
},
{
"ID": "DYNAMIC_177_STAGE_9",
"NAME": "Equipment Purchase (Second Funnel)",
"SEMANTIC_INFO": [],
"PREFIX": "DT177_9",
"FIELD_ATTRIBUTE_SCOPE": "category_9",
"ENTITY_TYPE_ID": 177,
"IS_ENABLED": true,
"CATEGORY_ID": 9,
"CATEGORY_NAME": "Second Funnel",
"CATEGORY_SORT": 500,
"IS_DEFAULT_CATEGORY": false
}
],
"time": {
"start": 1752142616.128453,
"finish": 1752142616.215683,
"duration": 0.08722996711730957,
"processing": 0.018637895584106445,
"date_start": "2025-07-10T13:16:56+02:00",
"date_finish": "2025-07-10T13:16:56+02:00",
"operating_reset_at": 1752143216,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Array of objects describing the types of directories (detailed field description) |
|
time |
Information about the request execution time |
Fields of the result object
|
Name |
Description |
|
ID |
Object identifier, use the value in the |
|
NAME |
Name |
|
ENTITY_TYPE_ID |
CRM object type to which the status belongs |
|
SEMANTIC_INFO |
Information about the semantics of status stages |
|
PREFIX |
Prefix for the stage code in the funnel |
|
FIELD_ATTRIBUTE_SCOPE |
Field application area, funnel |
|
IS_ENABLED |
Activity |
|
CATEGORY_ID |
Funnel identifier |
|
PARENT_ID |
ID of the parent element |
|
CATEGORY_NAME |
Funnel name |
|
CATEGORY_SORT |
Funnel sorting |
|
IS_DEFAULT_CATEGORY |
Default funnel |
Error Handling
The method does not return errors.
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not allowed to be called using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The methods must be called using the HTTPS protocol |
|
|
|
The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans |
|
|
|
The user whose access token or webhook was used to call the method lacks permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the account administrator has allowed access to this application only for specific users |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the option "Temporary closure of the public part of the site". Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Get Description of CRM Status Fields
- Get a List of Directory Items by Filter crm.status.list
- Create CRM Status Element crm.status.add
- Update CRM Status Element `crm.status.update`
- Delete CRM Status Element `crm.status.delete`