CopyOperationsFromDocOrderToPartner

[POST] .../v1/purchaseoperation/copyoperationsfromdocordertopartner

Copies operations from partner order document in partner receipt document. Use this method to copy item operations from an order-to-partner document into a receipt-from-partner document when purchase lines are prepared from an existing order. The request requires doc_from_id and doc_to_id, leaves the source order 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
}