Для AI-агентов: markdown этой страницы — /docs/mcp-tool-prepare-order-composition-change.mdиндекс документации — /llms.txt
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