Add Products to Cart
AddProductsToCartFull Description
<usecase> Use this to add/update multiple products to a user's shopping cart. This can also be the first cart operation to create the cart. </usecase>
<instructions> When needing to add products to a user's shopping cart, provide the list of products with their respective quantities.
Product quantities need to be final - if a product is already in the cart, adding it again will update the quantity to the new value, not increment it.
CRITICAL: You MUST provide the user's anonymous_id and provide it in ALL subsequent cart operations (GetCart, EmptyCart, RemoveProductsFromCart) to maintain the same cart session. Using a different ID or omitting it will create a new empty cart.
CRITICAL: DO NOT list, enumerate, describe, summarize, or mention ANY individual cart items in your response. The UI widget automatically displays all cart details to the user. Your response should ONLY acknowledge the products were added and reference the displayed widget. </instructions>
Parameters (6 required)
anonymous_idstringREQUIRED. If you have an existing anonymous_id, provide it to maintain the same session. If not, create a new anonymous_id using the GenerateAnonymousID tool prior to calling this tool.
metro_idintegerThe metro ID of the store at which to add the products
productsarrayList of products to add to the cart
store_idintegerThe store ID of the store at which to add the products
store_location_idintegerThe store location ID of the store at which to add the products
zip_codestringThe user's most recent provided zip code