Clients
Створити клієнта/ліда
Метод створює клієнта/ліда. <br/>Якщо такий вже існує, то йому буде оновлено дані. <br/>Пошук відбувається за номером телефону та email.
post/clients
Query parameters
office_hash_idstring
UID філії (офісу) куди прикріпити сутність (за замовчування головний офіс)
Request body
Example request
{
"email": "pib@example.com",
"company": "Назва чи ПІБ",
"lead": true,
"source_id": 5,
"status_id": 1,
"phones": [
"+380000000001"
],
"tag_names": [
"VIP"
],
"contacts_attributes": [
{
"fullname": "Прізвище Імʼя По батькові",
"phones": [
"+380000000002"
],
"custom_fields": [
{
"name": "Посада",
"value": "Директор"
}
]
}
]
}Response
Успішно створено
Example response
{
"id": 1204,
"updated_at": "2017-12-12Z00:00:00T",
"created_at": "2017-12-12Z00:00:00T"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.