API

Add contractor

POST/api/crm/v2/contractors.addv2
operationId: contractors.add

Adds a contractor. The set of details fields depends on contractor_type_id — see contractors.fields.

Authorization

api-token + language + role

Query parameters

chain_idintegerrequired

Example: 1

Request body application/json

Dynamic fields by contractor_type_id. Take the fields from the fields request and map them to the selected contractor_type_id.

object
contractor_type_idintegerrequired

Example: 1

branch_idintegerrequired

Example: 1

taxation_idintegerrequired

Example: 1

cao_emailstringrequired

Example: example@example.com

cao_phone_format_idinteger (PhoneFormatId) required

Country code: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Example: 1

cao_phone_numberstringrequired

Example: 999-999-99-99

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject