Stock handling units

Изменить статус физической складской единицы

Выведенную из оборота единицу вернуть нельзя; вывод из оборота требует нулевого остатка.

patch/api/v1/stock/handling-units/{id}/status

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/stock/handling-units/{id}/status
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Path parameters

idstring uuid required

Headers

X-Tenantstring required

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

Request body

status'active' | 'blocked' | 'retired' required

Статус, который оператор назначает физической единице руками

Response

Единица с новым статусом

idstring uuid required
batch_idstring uuid required
business_idstring uuid
company_idstring uuid required
company_namestring required
product_idstring uuid required
product_skustring required
product_namestring required
base_unitstring required
source_document_idstring uuid required
source_document_numberstring required
source_document_status'draft' | 'posted' | 'cancelled' required
source_line_idstring uuid required
codestring required
initial_base_qtystring required
remaining_base_qtystring required

Считается из движений регистра stock

is_remnantboolean required

Остаток меньше порога обрезка у единицы товара: вычисляется по остатку, а не хранится

reserved_base_qtystring required

Считается из движений регистра stock_reserved

amountstring required
status'active' | 'blocked' | 'retired' required

Статус, который оператор назначает физической единице руками

state'pending' | 'sealed' | 'opened' | 'empty' | 'cancelled' | 'blocked' | 'retired' | 'location_conflict' required

Вычисленное состояние единицы; выводится из статуса, документа-основания и остатков регистра

warehouse_idstring uuid
warehouse_namestring required
customobject required
received_atstring date-time required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.