CRM deals

Получить карточки сделок кабинета

Changed on

Фильтр по дополнительным полям: параметры cf.<ключ поля>=<значение>, до 10 полей. Число и флажок сравниваются по типу поля, вариант справочника - по идентификатору записи, текст - по подстроке без учёта регистра; поле, которого нет, отбирает ноль записей.

get/api/v1/crm/deals

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

Query parameters

q, string

Поиск по названию и описанию

owner, integer

Ответственный сотрудник

pipeline, string uuid

Воронка

stage, string uuid

Стадия воронки

customer, string uuid

Клиент CRM

archived, boolean

Показать архивные записи вместо активных

sort, string

Порядок выдачи

limit, integer

Размер страницы

offset, integer

Смещение страницы

Headers

X-Tenant, string required

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

Response

Карточки сделок с именами клиента и ответственного

CRMDealCard[] required
CRMDealCard required

Changes

    • breaking

      added subschema #1 to the items/allOf[#/components/schemas/CRMDeal]/work_details/service_kind response property oneOf list for the response status

    • breaking

      the items/allOf[#/components/schemas/CRMDeal]/work_details/service_kind response's property type changed from string to no type for status

    • info

      added the optional property items/allOf[#/components/schemas/CRMDeal]/work_details/project_section to the response with the status

    2 more changes in this revision