Add a product to the web visitor cart
web_add_to_cartAdd a product to the Alza visitor cart by numeric commodity ID to start web checkout without an account. Use the returned basket ID to read the cart and place the order.
Instructions
Add a product to the anonymous (visitor-keyed) Alza web cart via the live m.alza.cz basket/v1 API, using the numeric commodity_id (e.g. 7229946) from search_products/get_product. Use for the web checkout flow (row W5) instead of the account cart — this basket is keyed to the visitor (Balancer-Guid), not to an Alza login. The response carries the basket id; pass it to web_cart to read the cart, and the place/payment ids flow into web_place_order. Side effect: creates or extends the visitor basket. No account token required. Example: web_add_to_cart({commodity_id: 7229946, count: 1}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many units to add. Default 1, max 99. | |
| commodity_id | Yes | Numeric Alza commodity id (e.g. 7229946; the numeric id from `get_product`/`search_products`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| err | No | ||
| msg | No | ||
| data | No |