Add to Cart
add_to_cartFull Description
Add one or more products to the shopping cart by their EAN. Accepts a list of {gtin, quantity} objects — works for a single item or a batch. Handles bulk additions in one request instead of calling the tool repeatedly. IMPORTANT: EANs MUST come from search_products or search_multiple_products results. NEVER fabricate or guess an EAN. IMPORTANT: ALWAYS ask the user for explicit confirmation before adding products to their cart. Never add to cart without user consent. After execution, a cart summary widget automatically displays ALL items in the cart with quantities, prices, total, and a link to the Carrefour cart. Do not display cart links in text — the widget handles it. A new cart is created automatically on the first call. Reuse the returned cart_id for subsequent calls. Prerequisites: search_products (to obtain EANs).
Parameters (2 required, 2 optional)
facility_service_idstringThe facility_service_id from the selected store.
productsarrayA list of products to add to the cart (max 50).
cart_idstringThe cart_id from a previous add_to_cart call. Omit on the first call to auto-create a new cart.
store_namestringThe name of the selected store (from set_store response).