Stock documents

Частично изменить черновик складского документа

Инвентаризация и служебное снятие резерва этой ручкой не правятся: у инвентаризации свои шаги пересчёта, снятие резерва необратимо. basis_id: null снимает основание.

patch/api/v1/stock/documents/{id}

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/stock/documents/{id}
  • 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

Request body

datestring date
basis_idstring uuid
commentstring

Response

Обновлённый документ

idstring uuid required
type_idstring uuid required
type_keystring required
type_namestring required
numberstring required
datestring date required
status'draft' | 'posted' | 'cancelled' required
basis_typestring uuid required
basis_idstring uuid required
basis_numberstring required
entity_refsobject required
payloadobject required
commentstring required
is_marked_deletedboolean required
created_byinteger nullable required
created_by_namestring required
created_atstring date-time required
updated_atstring date-time required
posted_atstring required
cancelled_atstring required
customobject

Значения своих полей кабинета (графы вида core.document.<ключ вида>). Отдаёт карточка документа; списки поле не несут

Changes

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