CRM analytics
Переписать планы месяца
Changed onПланы правят таблицей, поэтому сохранение переписывает месяц целиком. План с нулём убирается: ноль как цель и отсутствие цели - разные вещи. Правит администратор CRM.
put/api/v1/crm/sales-plans
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
CRMSales Plans Input required
Планы месяца целиком: сохранение переписывает месяц, план с нулём убирается совсем
period, string
YYYY-MM или YYYY-MM-DD; пусто - текущий месяц
items, object[] required
Response
Планы месяца после сохранения
CRMSales Plan[] 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
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
3 more changes in this revision
- info