Core trade

Получить складское исполнение продажи

Changed on

Возвращает складские статусы и количества только доступного заказа. Применяются та же область бизнеса и юрлиц и тот же круг записей, что у карточки заказа. Общее чтение склада не требуется. Чтение не создаёт заданий, документов, виз или проводок.

get/api/v1/core/sales/{id}/warehouse-execution

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

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Response

Складские факты доступного заказа.

CoreOrderWarehouseExecution required

Складское исполнение одного доступного заказа. Ни цен, ни стоимости, ни свободных остатков, ни чужих резервов.

order_id, string uuid required

Исходный доступный заказ.

side, 'sale' | 'purchase' required

Продажа или закупка.

module_enabled, boolean required

Склад подключён к кабинету.

lines, CoreOrderWarehouseLine[] required

Проведённое исполнение по строкам.

documents, CoreOrderWarehouseDocument[] required

Документы только этого заказа.

task, CoreOrderWarehouseTask

Текущее поручение складу.

picking, CoreOrderWarehousePicking

Текущая сборка, ещё не проведённая отгрузка.

allowed_actions, CoreOrderWarehouseActions required

Разрешённые действия; права на склад не расширяются.

handover, 'auto' | 'manager'

Как заказ попадает на склад: сам или после передачи менеджером (ERP-098).

remainder, CoreOrderWarehouseRemainder

Остаток продажи после проведённой отгрузки без сборки в работе (ERP-2859); поля нет — остатка нет или его уже собирают.

Changes

    • info

      added the optional property picking/allOf[#/components/schemas/CoreOrderWarehousePicking]/handover_pending to the response with the status

    • info

      added the optional property allowed_actions/allOf[#/components/schemas/CoreOrderWarehouseActions]/can_align_picking to the response with the status

    • info

      added the optional property allowed_actions/allOf[#/components/schemas/CoreOrderWarehouseActions]/can_decide_remainder to the response with the status

    2 more changes in this revision