Open

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

Reopens a closed inventory count document. 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 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. 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, storage errors 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
  }
}