CRM customers

Завести клиента в справочнике контрагентов ERP

Changed on

Повторный перенос ничего не дублирует - ссылка на созданную карточку остаётся в core_contact_id.

post/api/v1/crm/customers/{id}/promote

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Клиент со ссылкой на карточку справочника

CRMCustomer required
id, string uuid required
kind, 'person' | 'company' | 'sole_prop' required
name, string required
legal_name, string required
inn, string required

ИНН без пробелов; пустая строка - не указан

kpp, string required

КПП в верхнем регистре; бывает только при ИНН из 10 цифр

phone, string required

Основной телефон — значение основного канала phone

email, string required

Основная почта — значение основного канала email

messengers, object nullable required

Ник или номер клиента по мессенджерам

channels, CRMCustomerChannel[] required

Все телефоны, почты и мессенджеры клиента

tags, string[] nullable required
source, string required
owner_id, integer
owner_name, string
note, string required
core_contact_id, string uuid
promoted_at, string date-time

Момент переноса в справочник контрагентов ERP

archived_at, string date-time
merged_into_customer_id, string uuid

Карточка слита с этой и лежит в архиве

open_deals, integer required
custom, object nullable

Дополнительные поля кабинета: состав задаёт «Настройки → Поля»

created_at, string date-time required
updated_at, string date-time required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision