Core trade

Получить шаблоны продаж или закупок

Changed on

Шаблоны продаж или закупок с повторением (ERP-1578): тело продажи или закупки, повторение, действия при создании, ближайшее срабатывание и дата последнего созданной продажи или закупки. Архивные — только с archived=true или state=archived.

get/api/v1/core/trade/templates

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
    • or HTTP bearer

Query parameters

side, 'sale' | 'purchase'
state, 'active' | 'paused' | 'archived'
contact_id, string uuid
contract_id, string uuid
department_id, string uuid
archived, boolean
limit, integer
offset, integer

Headers

X-Tenant, string required

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

Response

Шаблоны продаж или закупок

CoreOrderTemplateList required
results, CoreOrderTemplate[] required
total, integer required

Changes

    • info

      added the optional property results/items/actions/closing_delivery/with_xml to the response with the status

    • info

      added the optional property results/items/actions/closing_delivery_alt/allOf[#/components/schemas/CoreOrderTemplateDelivery]/with_xml to the response with the status

    • info

      added the optional property results/items/actions/closings/items/delivery/with_xml to the response with the status

    5 more changes in this revision