Unlock

[POST] .../v1/docinout/unlock

Unlocks cash in/out document for editing. Use this method to unlock one or more cash in/out documents after an editing, posting, cancellation or deletion workflow finishes. The request requires the cash in/out document unlock permission and the stock receipt/expense tariff option; the body must contain a non-empty ids array with positive document IDs. The response reports how many document lock rows changed and callers can verify the lock state with DocInOut/Get for the current request user. Business errors such as missing body, missing ids, invalid IDs, denied access, disabled tariff option, lock ownership conflicts, database failures or persistent unlock errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
ids Array of Int64 Required Required non-empty array of positive stock receipt/write-off document IDs.

Request Example

{
  "ids": [
    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
  }
}