add_item_to_cart
Add or update a product in your Carrefour cart by EAN and quantity, selecting the store/drive service and sub-basket type. Returns updated cart totals.
Instructions
Adds or updates a product item in the authenticated user's cart on Carrefour France. Allows specifying the product EAN, desired quantity, the basket service (store/drive), and the sub-basket type (e.g. drive click-and-collect). Also accepts a tracking context to indicate the page type and ID from which the action was triggered. Returns updated cart totals and summary. (requires an authenticated Carrefour session)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ean | Yes | The EAN (barcode) of the product to add or update in the cart. | |
| pageId | No | The page identifier used for tracking (e.g. 'moncompte', 'search', 'productdetail', 'basket'). | |
| counter | Yes | The desired quantity of the product to set in the cart. | |
| pageType | No | The type of page from which the add-to-cart action is triggered, used for tracking (e.g. 'moncompte', 'search', 'productdetail', 'basket'). | |
| subBasketType | Yes | The sub-basket type, e.g. 'drive_clcv' for drive click-and-collect. | |
| basketServiceId | Yes | The basket service ID identifying the store or drive service to use for the cart. |