Stock purchasing

Получить карточку задания склада

Changed on

Карточка строки «Заданий» любого вида (ERP-2859): поля строки списка, реквизиты, строки, документы и история. Строка карточки: need — сколько нужно, on_hand — на складе-отправителе, held_by_others — в резерве у других, available — свободно, reserved — в резерве этого задания, line_status — reserved, available, short или done. История — created, reserved, started, posted, cancelled. Только чтение.

get/api/v1/stock/warehouse-tasks/{kind}/{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

kind, 'task' | 'order' | 'purchase' | 'transfer' | 'transfer_task' required
id, string uuid required

Headers

X-Tenant, string required

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

Response

Карточка задания

StockWarehouseTaskCard required

Карточка задания склада (ERP-2859): строка списка, реквизиты, строки, документы и история

object
company_id, string uuid
marketplace_store, StockWarehouseTaskRef
contact, StockWarehouseTaskRef
writeoff_reason_id, string uuid
comment, string
state, 'draft' | 'active' | 'cancelled'
lines, StockWarehouseTaskCardLine[] required
documents, StockWarehouseTaskDocument[] required
history, StockWarehouseTaskHistoryEvent[] required
journal, CoreActionJournalEntry[]

Changes

    • info

      added the optional property allOf[#/components/schemas/StockWarehouseTaskRow]/wms/missing to the response with the status

    • info

      added the optional property allOf[#/components/schemas/StockWarehouseTaskRow]/wms/missing_lines to the response with the status

    • warning

      added the new picked_elsewhere enum value to the allOf[#/components/schemas/StockWarehouseTaskRow]/next_action response property for the response status

    1 more change in this revision