CRM analytics

Переписать планы месяца

Changed on

Планы правят таблицей, поэтому сохранение переписывает месяц целиком. План с нулём убирается: ноль как цель и отсутствие цели - разные вещи. Правит администратор CRM.

put/api/v1/crm/sales-plans

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

Headers

X-Tenant, string required

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

Request body

CRMSalesPlansInput required

Планы месяца целиком: сохранение переписывает месяц, план с нулём убирается совсем

period, string

YYYY-MM или YYYY-MM-DD; пусто - текущий месяц

items, object[] required

Response

Планы месяца после сохранения

CRMSalesPlan[] required
id, string uuid required
owner_id, integer
owner_name, string
period, string date required

Первое число месяца

amount, string required

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

currency, string 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

    3 more changes in this revision