Core trade

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

Changed on

Шаблон с ближайшими срабатываниями (upcoming: даты продажи или закупки, счёта и закрывающего), датой последней созданной продажи или закупки и причиной отказа последнего срабатывания словами.

get/api/v1/core/trade/templates/{id}

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

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Response

Шаблон

CoreOrderTemplate required
id, string uuid required
side, 'sale' | 'purchase' required
state, 'active' | 'paused' | 'archived' required
order, CoreOrderInput required

Продажа или закупка из запроса: поля одни для формы, загрузки и фасадов модулей.

schedule, CoreOrderTemplateSchedule required
actions, CoreOrderTemplateActions required
resumed_from, string date
version, integer required
created_by, integer
updated_by, integer
created_at, string date-time
updated_at, string date-time
contact_name, string
contract_number, string
contract_single_invoice, boolean

У договора шаблона включено «Выставлять регулярные услуги одним счётом» (ERP-2861)

contract_date, string
department_name, string
company_name, string

Юрлицо шаблона

amount, string required

Сумма строк шаблона — подсказка списка.

upcoming, CoreOrderTemplateRun[]
plan, CoreOrderTemplateRun[]

Plan for the whole template term (single template only).

last_run, string date
last_error, string
last_error_text, string

Причина отказа последнего срабатывания словами.

Changes

    • info

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

    • info

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

    • info

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

    5 more changes in this revision