Get Company Field Descriptions crm.company.fields

Scope: crm

Who can execute the method: any user

Method Development Stopped

The method crm.company.fields continues to function, but there is a more relevant alternative crm.item.fields.

The method crm.company.fields returns descriptions of company fields, including custom fields.

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.company.fields
        
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.company.fields
        
try
        {
        	const response = await $b24.callMethod(
        		'crm.company.fields',
        		{}
        	);
        	
        	const result = response.getData().result;
        	if(result.error())
        	{
        		console.error(result.error());
        	}
        	else
        	{
        		console.dir(result);
        	}
        }
        catch(error)
        {
        	console.error('Error:', error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'crm.company.fields',
                    []
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            if ($result->error()) {
                error_log($result->error());
            } else {
                echo 'Success: ' . print_r($result->data(), true);
            }
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error fetching company fields: ' . $e->getMessage();
        }
        
BX24.callMethod(
            "crm.company.fields",
            {},
            function(result)
            {
                if(result.error())
                    console.error(result.error());
                else
                    console.dir(result.data());
            }
        );
        
require_once('crest.php');
        
        $result = CRest::call(
            'crm.company.fields',
            []
        );
        
        echo '<PRE>';
        print_r($result);
        echo '</PRE>';
        

Response Handling

HTTP Status: 200

{
            "result": {
                "ID": {
                    "type": "integer",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "ID"
                },
                "TITLE": {
                    "type": "string",
                    "isRequired": true,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Company Name"
                },
                "COMPANY_TYPE": {
                    "type": "crm_status",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "statusType": "COMPANY_TYPE",
                    "title": "Company Type"
                },
                "LOGO": {
                    "type": "file",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Logo"
                },
                "ADDRESS": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Physical Address"
                },
                "ADDRESS_2": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Address (line 2)"
                },
                "ADDRESS_CITY": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "City"
                },
                "ADDRESS_POSTAL_CODE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Postal Code"
                },
                "ADDRESS_REGION": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Region"
                },
                "ADDRESS_PROVINCE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Province"
                },
                "ADDRESS_COUNTRY": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Country"
                },
                "ADDRESS_COUNTRY_CODE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Country Code"
                },
                "ADDRESS_LOC_ADDR_ID": {
                    "type": "integer",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Location Address ID"
                },
                "ADDRESS_LEGAL": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address"
                },
                "REG_ADDRESS": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address"
                },
                "REG_ADDRESS_2": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address (line 2)"
                },
                "REG_ADDRESS_CITY": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address City"
                },
                "REG_ADDRESS_POSTAL_CODE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Postal Code"
                },
                "REG_ADDRESS_REGION": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Region"
                },
                "REG_ADDRESS_PROVINCE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Province"
                },
                "REG_ADDRESS_COUNTRY": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Country"
                },
                "REG_ADDRESS_COUNTRY_CODE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Country Code"
                },
                "REG_ADDRESS_LOC_ADDR_ID": {
                    "type": "integer",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Legal Address Location ID"
                },
                "BANKING_DETAILS": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Banking Details"
                },
                "INDUSTRY": {
                    "type": "crm_status",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "statusType": "INDUSTRY",
                    "title": "Industry"
                },
                "EMPLOYEES": {
                    "type": "crm_status",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "statusType": "EMPLOYEES",
                    "title": "Number of Employees"
                },
                "CURRENCY_ID": {
                    "type": "crm_currency",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Currency"
                },
                "REVENUE": {
                    "type": "double",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Annual Revenue"
                },
                "OPENED": {
                    "type": "char",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Available to Everyone"
                },
                "COMMENTS": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Comment"
                },
                "HAS_PHONE": {
                    "type": "char",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Phone Set"
                },
                "HAS_EMAIL": {
                    "type": "char",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "E-mail Set"
                },
                "HAS_IMOL": {
                    "type": "char",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Open Line Set"
                },
                "IS_MY_COMPANY": {
                    "type": "char",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "My Company"
                },
                "ASSIGNED_BY_ID": {
                    "type": "user",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Responsible"
                },
                "CREATED_BY_ID": {
                    "type": "user",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Created By"
                },
                "MODIFY_BY_ID": {
                    "type": "user",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Modified By"
                },
                "DATE_CREATE": {
                    "type": "datetime",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Creation Date"
                },
                "DATE_MODIFY": {
                    "type": "datetime",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Modification Date"
                },
                "CONTACT_ID": {
                    "type": "crm_contact",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "Contact"
                },
                "LEAD_ID": {
                    "type": "crm_lead",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Lead",
                    "settings": {
                        "parentEntityTypeId": 1
                    }
                },
                "ORIGINATOR_ID": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "External Source"
                },
                "ORIGIN_ID": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Element ID in External Source"
                },
                "ORIGIN_VERSION": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Original Version"
                },
                "UTM_SOURCE": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Advertising System"
                },
                "UTM_MEDIUM": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Traffic Type"
                },
                "UTM_CAMPAIGN": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Campaign Designation"
                },
                "UTM_CONTENT": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Campaign Content"
                },
                "UTM_TERM": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Campaign Search Condition"
                },
                "PARENT_ID_156": {
                    "type": "crm_entity",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Purchase",
                    "settings": {
                        "parentEntityTypeId": 156
                    }
                },
                "LAST_ACTIVITY_TIME": {
                    "type": "datetime",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Last Activity"
                },
                "LAST_ACTIVITY_BY": {
                    "type": "user",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Last Activity Author in Timeline"
                },
                "LAST_COMMUNICATION_TIME": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": true,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": false,
                    "title": "Last Communication Date"
                },
                "PHONE": {
                    "type": "crm_multifield",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "Phone"
                },
                "EMAIL": {
                    "type": "crm_multifield",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "E-mail"
                },
                "WEB": {
                    "type": "crm_multifield",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "Website"
                },
                "IM": {
                    "type": "crm_multifield",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "Messenger"
                },
                "LINK": {
                    "type": "crm_multifield",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": false,
                    "title": "LINK"
                },
                "UF_CRM_1687188367": {
                    "type": "crm",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "UF_CRM_1687188367",
                    "listLabel": "Subsidiary",
                    "formLabel": "Subsidiary",
                    "filterLabel": "Subsidiary",
                    "settings": {
                        "COMPANY": "Y",
                        "LEAD": null
                    }
                },
                "UF_CRM_64A29A1CD5CC2": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "UF_CRM_64A29A1CD5CC2",
                    "listLabel": "New Field",
                    "formLabel": "New Field",
                    "filterLabel": "New Field",
                    "settings": {
                        "SIZE": 20,
                        "ROWS": 1,
                        "REGEXP": "",
                        "MIN_LENGTH": 0,
                        "MAX_LENGTH": 0,
                        "DEFAULT_VALUE": ""
                    }
                }
            },
            "time": {
                "start": 1769494687,
                "finish": 1769494687.641697,
                "duration": 0.6416969299316406,
                "processing": 0,
                "date_start": "2026-01-27T09:18:07+01:00",
                "date_finish": "2026-01-27T09:18:07+01:00",
                "operating_reset_at": 1769495287,
                "operating": 0
            }
        }
        

Returned Data

Name
type

Description

ID
integer

Company Identifier

TITLE
string

Company Name

COMPANY_TYPE
crm_status

Company Type. Values can be obtained using the method crm.status.list with a filter by ENTITY_ID=COMPANY_TYPE

LOGO
file

Logo

ADDRESS
string

Physical Address. Deprecated, used for compatibility. For working with the address, use requisites.

Deprecated address fields:

  • ADDRESS_2 — address (line 2)
  • ADDRESS_CITY — city
  • ADDRESS_POSTAL_CODE — postal code
  • ADDRESS_REGION — region
  • ADDRESS_PROVINCE — province
  • ADDRESS_COUNTRY — country
  • ADDRESS_COUNTRY_CODE — country code
  • ADDRESS_LOC_ADDR_ID — location address ID
  • ADDRESS_LEGAL — legal address
  • REG_ADDRESS — legal address
  • REG_ADDRESS_2 — legal address (line 2)
  • REG_ADDRESS_CITY — legal address city
  • REG_ADDRESS_POSTAL_CODE — legal address postal code
  • REG_ADDRESS_REGION — legal address region
  • REG_ADDRESS_PROVINCE — legal address province
  • REG_ADDRESS_COUNTRY — legal address country
  • REG_ADDRESS_COUNTRY_CODE — legal address country code
  • REG_ADDRESS_LOC_ADDR_ID — legal address location ID

BANKING_DETAILS
string

Banking Details

INDUSTRY
crm_status

Industry. Values can be obtained using the method crm.status.list with a filter by ENTITY_ID=INDUSTRY

EMPLOYEES
crm_status

Number of Employees. Values can be obtained using the method crm.status.list with a filter by ENTITY_ID=EMPLOYEES

CURRENCY_ID
crm_currency

Currency

REVENUE
double

Annual Revenue

OPENED
char

Is the company available to everyone. Possible values: Y or N

COMMENTS
string

Comment

HAS_PHONE
char

Phone Set

HAS_EMAIL
char

E-mail Set

HAS_IMOL
char

Open Line Set

IS_MY_COMPANY
char

My Company Indicator. Possible values: Y or N

ASSIGNED_BY_ID
user

Responsible

CREATED_BY_ID
user

Created By

MODIFY_BY_ID
user

Modified By

DATE_CREATE
datetime

Creation Date

DATE_MODIFY
datetime

Modification Date

CONTACT_ID
crm_contact

Contact. Multiple

LEAD_ID
crm_lead

Lead ID associated with the company

ORIGINATOR_ID
string

Data Source Identifier. Used only for linking to an external source

ORIGIN_ID
string

Element ID in the data source. Used only for linking to an external source

ORIGIN_VERSION
string

Original Version. Used to protect data from accidental overwriting by an external system

UTM_SOURCE
string

Advertising System. Google Ads, Facebook Ads, etc.

UTM_MEDIUM
string

Traffic Type. Possible values:

  • CPC — ads
  • CPM — banners

UTM_CAMPAIGN
string

Campaign Designation

UTM_CONTENT
string

Campaign Content. For example, for contextual ads

UTM_TERM
string

Campaign Search Condition. For example, keywords for contextual advertising

PARENT_ID_...

Relationship Fields.

If there are SPAs related to companies in the account, there is a field for each such SPA that stores the relationship between that SPA and the company. The field itself stores the identifier of the element of that SPA

LAST_ACTIVITY_TIME
datetime

Last Activity

LAST_ACTIVITY_BY
user

Author of the last activity in the timeline

LAST_COMMUNICATION_TIME
string

Last Communication Date

PHONE
crm_multifield

Phone. Multiple

EMAIL
crm_multifield

E-mail. Multiple

WEB
crm_multifield

Website. Multiple

IM
crm_multifield

Messenger. Multiple

LINK
crm_multifield

LINK. Multiple

UF_...

Custom Fields. For example, UF_CRM_25534736.

Depending on the account settings, companies may have a set of custom fields of specific types.

You can add a custom field to a company using the method crm.company.userfield.add

time
time

Information about the execution time of the request

Error Handling

HTTP Status: 400

{
            "error": "",
            "error_description": "Access denied."
        }
        

Name
type

Description

error
string

String error code. It may consist of digits, Latin letters, and underscores

error_description
error_description

Textual description of the error. The description is not intended to be shown to the end user in its raw form

Possible Error Codes

Code

Description

Value

-

Access denied

The user does not have permission for "Read" companies

Statuses and System Error Codes

HTTP Status: 20x, 40x, 50x

The errors described below may occur when calling any method.

Status

Code
Error Message

Description

500

INTERNAL_SERVER_ERROR
Internal server error

An internal server error has occurred, please contact the server administrator or Bitrix24 technical support

500

ERROR_UNEXPECTED_ANSWER
Server returned an unexpected response

An internal server error has occurred, please contact the server administrator or Bitrix24 technical support

503

QUERY_LIMIT_EXCEEDED
Too many requests

The request intensity limit has been exceeded

405

ERROR_BATCH_METHOD_NOT_ALLOWED
Method is not allowed for batch usage

The current method is not allowed to be called using batch

400

ERROR_BATCH_LENGTH_EXCEEDED
Max batch length exceeded

The maximum length of parameters passed to the batch method has been exceeded

401

NO_AUTH_FOUND
Wrong authorization data

Invalid access token or webhook code

400

INVALID_REQUEST
Https required

The methods must be called using the HTTPS protocol

503

OVERLOAD_LIMIT
REST API is blocked due to overload

The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support

403

ACCESS_DENIED
REST API is available only on commercial plans

The REST API is available only on commercial plans

403

INVALID_CREDENTIALS
Invalid request credentials

The user whose access token or webhook was used to call the method lacks permissions

404

ERROR_MANIFEST_IS_NOT_AVAILABLE
Manifest is not available

The manifest is not available

403

insufficient_scope
The request requires higher privileges than provided by the webhook token

The request requires higher privileges than those provided by the webhook token

401

expired_token
The access token provided has expired

The provided access token has expired

403

user_access_error
The user does not have access to the application

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

500

PORTAL_DELETED
Portal was deleted

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