set_cart_quantity
Set the desired quantity for a product in your Ozon cart, from 0 (removes) up to 999. If the quantity doesn't change, the returned detail field indicates why.
Instructions
[GATED by writes_enabled] Set how many of a product are in the cart.
Adding, changing and removing are all this one call: quantity=0 removes.
Ozon reports nothing about the outcome, so the cart is read back: ok=false
with the reason in detail means the call was accepted and changed nothing
ā an out-of-stock product, or an apparel base SKU with no size chosen (use
the variant sku from product_details()).
Being in the cart is not being in the order: tick it with
select_cart_items() before checkout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | A product SKU ("3077454533"). For apparel use the variant SKU, not the base one. | |
| quantity | Yes | Desired quantity in the cart; 0 removes the item. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| detail | No |