Perform

[POST] .../v1/docinout/perform

Posts a warehouse goods receipt or write-off document. Post a manual warehouse goods receipt/write-off document after its item rows have been prepared with InOutOperation methods. The request requires the warehouse goods receipt/write-off document perform permission and id is required; the document must satisfy the lock contract, must not be automatic, posted, deleted or marked for deletion and its date must not fall into a closed period. For outcome documents the method checks current stock balances for each row before posting, then marks the document as performed and sends the posted webhook. Errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, closed period, automatic-document state, already posted state, deletion mark, deleted state, deleted item rows, insufficient stock quantity, no affected row, storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Required stock receipt/write-off document ID.

Request Example

{
  "id": 42
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1
  }
}