[POST] .../v1/docreturnstopartner/lock
Locks partner return document for editing. Use this method to lock one or more return-to-partner documents before editing the header or item operations. The request body must contain ids with at least one positive document id and the response returns row_affected for documents locked for the current request user. This method uses the document lock service and does not perform a separate controller permission check in the current implementation; missing body, empty ids, invalid ids, lock conflicts, database failures or persistent lock errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Return-to-partner document IDs. The array must contain at least one positive ID. |
Request Example
{
"ids": [
4401
]
}
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
}
}