# prepare\_order\_composition\_change

Source: <https://telegafirst.com/docs/mcp-tool-prepare-order-composition-change>
Locale: ru
releaseGitSha: 005a4dc9d76f69a0815df4e3f98b9050d4d46afb
sourceContentDigest: 639ad3b4393bc9eb7f4f1d2d0343ee54a5249bf81c7516f43ed3f6ac1e41c4d2
Version: 15

# prepare\_order\_composition\_change

Prepare one change to the composition of an open, unpaid order: remove\_line, set\_quantity, set\_line\_price (final unit price as a decimal string in the order currency), add\_line (a product by catalog\_id) or set\_variant (the line takes another variant of its product as selected\_options, keeping its quantity and note, priced fresh). Address lines by the line\_no the order read returns. Returns the frozen scenario — the order version it is based on, the change, the lines and totals before and after, and payment\_link\_reissue (an unpaid payment link is reissued for the new amount) — to show the human before calling execute\_order\_composition\_change. An unpaid order is changed without the buyer's confirmation, and its earlier payment requests are withdrawn and issued again. Refused for a closed order; a paid order is refused with ORDER\_ALREADY\_PAID — a change to what was bought is a refund and a new order. Changes nothing by itself.

## Права и условия

required\_scopes: ALL.

| Поле | Значение |
| - | - |
| description | "Prepare one change to the composition of an open, unpaid order: remove\_line, set\_quantity, set\_line\_price (final unit price as a decimal string in the order currency), add\_line (a product by catalog\_id) or set\_variant (the line takes another variant of its product as selected\_options, keeping its quantity and note, priced fresh). Address lines by the line\_no the order read returns. Returns the frozen scenario — the order version it is based on, the change, the lines and totals before and after, and payment\_link\_reissue (an unpaid payment link is reissued for the new amount) — to show the human before calling execute\_order\_composition\_change. An unpaid order is changed without the buyer's confirmation, and its earlier payment requests are withdrawn and issued again. Refused for a closed order; a paid order is refused with ORDER\_ALREADY\_PAID — a change to what was bought is a refund and a new order. Changes nothing by itself." |
| domain | "orders" |
| name | "prepare\_order\_composition\_change" |
| platform\_version | "1.0.34" |
| required\_scopes | \["orders:write"] |
| risk | "write" |
| scope | "orders:write" |
| title | "Prepare Order Composition Change" |

## Входные параметры

[prepare\_order\_composition\_change: inputSchema](https://telegafirst.com/docs/schema-0357254de6d4724a527e100f84756605a834ad7e77447d4356cb0204b7039684)

## Результат

[prepare\_order\_composition\_change: outputSchema](https://telegafirst.com/docs/schema-5465e83fb4a12396c26ba4b520e3d9b1709fe898a50997a480fcd78fb4ba942b)
