CRM deals

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

Changed on

Возвращает сделки указанной воронки CRM.

get/api/v1/crm/pipelines/{id}/deals

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • 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

Query parameters

q, string

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

owner, integer

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

stage, string uuid

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

customer, string uuid

Клиент CRM

archived, boolean

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

sort, string

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

limit, integer

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

offset, integer

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

Headers

X-Tenant, string required

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

Response

Сделки воронки

CRMDeal[] required
id, string uuid required
pipeline_id, string uuid required
stage_id, string uuid required
title, string required
amount, string required

Сумма десятичной строкой: «19990.50». Разрядность берёт валюта (MONEY-ROUNDING.md)

currency, string required

Код валюты из справочника ERP

amount_manual, boolean

Сумма набрана руками, а не сложена из состава сделки; сохранение состава снимает признак

prices_include_vat, boolean

Цены строк состава включают НДС

source, string required

Канал обращения; manual для ручного заведения

probability, integer required
expected_close_at, string date-time
owner_id, integer
crm_customer_id, string uuid
next_action, string required
next_action_at, string date-time
archived_at, string date-time
closed_at, string date-time
loss_reason_id, string uuid
description, string
first_message, string
utm_source, string
utm_medium, string
utm_campaign, string
utm_term, string
utm_content, string
landing_page, string
referrer, string
custom, object nullable

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

source_deal_id, string uuid

Сделка, с которой снята эта копия роботом «Сделка в другую воронку»

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

Changes

    • breaking

      added subschema #1 to the items/work_details/service_kind response property oneOf list for the response status

    • breaking

      the items/work_details/service_kind response's property type changed from string to no type for status

    • info

      added the optional property items/work_details/project_section to the response with the status

    2 more changes in this revision