[POST] .../v1/setpriceoperation/copyoperationsfromdocpurchase
Copies operations from partner receipt document in document setting prices Use this workflow method to populate a price setting document from a receipt-from-partner document after the target DocSetPrice has been created. The request body must contain doc_from_id for the purchase document and doc_to_id for the target price setting document; copied rows use purchase operation cost, allocated additional expenses, VAT behavior, currency conversion and target price type markup to calculate base and new values. The target document must exist, remain editable and be locked by the current user; the source purchase document must exist and contain non-deleted positive-quantity purchase operations. The current request user must have price setting operation add permission; missing body, invalid document ids, denied access, missing source or target document, currency or pricing lookup failures, lock conflicts and 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": 5001,
"doc_to_id": 6101
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Object | Result object. |
Response Example
{
"ok": true,
"result": null
}