Set several trolley lines at once
set_cart_quantitiesSet multiple Woolworths trolley lines in a single call, using absolute quantities (0 removes an item). Each item reports success or failure, including any quantity adjustments applied by the site.
Instructions
Set many products' trolley lines in one call. Quantity is absolute, not a delta: the value you pass becomes the line's new quantity, and 0 removes the line. For pricingUnit, use the product's purchasingUnit field from search_products or get_product verbatim — it is 'Each' or 'Kg'. Only pass 'Kg' with a decimal quantity when the product's canBuyByWeight is true; sending 'Kg' for a counted item orders a kilogram of it. Each item is reported separately as written or failed with a reason; one failure never removes an item from the results, so check every entry. Written entries carry requestedQuantity and appliedQuantity: where adjusted is true the site substituted its own quantity and adjustment says how, so summarise what was actually added. Needs a signed-in session; run npm run login where the server runs, or call sign_in for the details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The lines to set. |