Add to cart
add_to_cartAdds products to a Picnic shopping cart by product ID, returning successful additions, failed items, unavailable products with replacements, and the updated cart total. Does not place an order.
Instructions
Add one or more products to the user's Picnic shopping cart. Get the product ids from search_products first; put all products the user asked for in one call (at most 20). Returns each added product with the quantity now in the cart, the products that failed, and the cart total. A product that can't be delivered in the selected delivery window has unavailable and replacements: tell the user and offer them. To change how many of a product are in the cart ("make it 4"), use set_cart_quantity instead. This does not place an order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The products to add, e.g. [{"productId": "s1004201", "quantity": 2}]. |