Unlock

[POST] .../v1/docinvoice/unlock

Unlocks invoice documents. Use this method after finishing edits, posting, sending, status updates or external-data updates so other users can work with the invoice documents. The request body must contain an ids array with at least one positive invoice ID and the response returns UpdateResult with row_affected for documents unlocked from the current request user. Unlock only changes document lock state and does not alter invoice amounts, status, posting or deletion flags. The current request user must have invoice unlock permission; missing body, missing or invalid ids, denied access, tariff restriction, lock ownership conflicts, database or persistence failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
ids Array of Int64 Required Invoice IDs. The array must contain at least one positive ID.

Request Example

{
  "ids": [
    9101
  ]
}

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
  }
}