CRM inbox

Создать сделку из диалога

Changed on

Создаёт сделку на основе указанного диалога.

post/api/v1/crm/inbox/conversations/{id}/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

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Request body

CRMInboxDealInput required
title, string required
pipeline_id, string uuid required
stage_id, string uuid required
amount, string

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

currency, string

Response

Связь диалога с созданной сделкой

CRMInboxConversationLink required
id, string uuid required
conversation_id, string uuid required
entity_type, 'lead' | 'deal' | 'customer' required
entity_id, string uuid required
created_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