[POST] .../v1/docpurchase/lock
Locks partner receipt document for editing. Use this method to lock one or more receipt-from-partner documents before editing them in an interactive workflow. It accepts an ids array, writes document lock state through the persistent lock logic and returns row_affected for the affected documents. The controller validates that ids is present, non-empty and contains only positive identifiers; this action currently does not perform a controller-level permission check and lock or storage business errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Record IDs. |
Request Example
{
"ids": [
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
}
}