MoveOperations
[POST] .../v1/returnstopartneroperation/moveoperations
Moves item lines between supplier return documents. Move selected item lines from one DocReturnsToPartner document to another return-to-partner document. The request body must contain doc_from_id, doc_to_id and a non-empty ids array; source and destination documents must be different and are locked together through the document lock mechanism. Both documents must be editable, the operation ids must belong to the source return-to-partner document and the caller must have return-to-partner operation move permission; missing fields, identical source and destination ids, denied access, posted documents, lock conflicts, operations from another document or move errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| doc_from_id | Int64 | Required | Source document ID. |
| doc_to_id | Int64 | Required | Destination document ID. |
| ids | Array of Int64 | Required | Operation IDs to move from the source document to the destination document. |
Request Example
{
"ids": [
8401
],
"doc_from_id": 4501,
"doc_to_id": 4502
}
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,
"ids": [
8401
]
}
}