[POST] .../v1/purchaseoperation/copyoperationsfromdocwholesale
Copies operations from partner shipment document in partner receipt document. Use this method to copy item operations from a shipment-to-partner document into a receipt-from-partner document when the purchase workflow is based on an existing shipment. The request requires doc_from_id and doc_to_id, leaves the source document unchanged and the response returns an empty object result when the copy operation completes successfully. The caller must have purchase-operation add permission for the target receipt; missing body, invalid document ids, denied access, incompatible source or target document state or persistent storage failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| doc_from_id | Int64 | Required | Source document ID to copy operations from. |
| doc_to_id | Int64 | Required | Destination document ID to copy operations into. |
Request Example
{
"doc_from_id": 1,
"doc_to_id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Object | Result object. |
Response Example
{
"ok": true,
"result": null
}