Open

[POST] .../v1/docinventory/open

Opens an inventory document Use this workflow method to reopen a closed inventory document when its inventory data must be corrected. The stock inventory tariff option must be enabled, id is required and this controller method does not perform a separate RBAC permission check; the document must exist, satisfy the document lock contract, be currently closed, have an open_date earlier than the current server time and have no active period-closing conflict. The method clears close_date and closed state; it does not remove receipt or write-off documents that may have been created by a previous DocInventory/Close call. Business errors such as missing body, invalid id, disabled tariff option, document not found, lock failure, already open state, invalid date sequence, period-closing conflict, no affected row, database failures or webhook failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Inventory document ID.

Request Example

{
  "id": 1
}

Response Parameters

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

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}