Stock documents

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

Changed on

«Удалить черновик» (ERP-2170): черновик получает пометку на удаление движка документов и выпадает из журналов склада; номер и запись остаются. Удаляется только черновик — проведённый или отменённый документ отвечает 409 document_not_draft (сначала распровести). Заказ поставщику, инвентаризация и системное снятие резерва этой ручкой не удаляются — 400. Черновик сборки, чьё согласование недобора ждёт решения, не удаляется — 409 stock.picking.approval_pending (ERP-3048).

delete/api/v1/stock/documents/{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

Черновик удалён

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision