select_cart_items
Choose which cart items compose your order, then verify the selection before checkout. Use modes to pick specific items, add, remove, or select all/none.
Instructions
[GATED by writes_enabled] Choose which cart items make up the order. This is the step that composes a checkout: get_checkout() reports nothing orderable until something is ticked, and it orders exactly what is ticked — so "buy these two" is mode="only" with those two skus, whatever else the cart holds. Returns the cart as it is afterwards, so the ticks can be checked before ordering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "only" ticks exactly these and unticks everything else — the usual way to compose an order; "add"/"remove" adjust the current ticks; "all"/"none" ignore skus. | only |
| skus | No | Cart item ids (the `id` field of get_cart().items). Required for "only", "add", "remove". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | The items actually read. | |
| groups | No | ||
| item_count | No | How many were read. | |
| total_items | No | How many Ozon says the cart holds; a difference means the read came up short. |