add_item_to_cart_by_ean
Add a product to a Carrefour Drive cart using its EAN, basket service ID, and sub-basket type. Returns updated cart totals and summary for the authenticated user.
Instructions
Adds a product to the authenticated user's cart on Carrefour France using the product EAN, a basket service ID, and a sub-basket type (e.g. drive click-and-collect). Also accepts a tracking context to indicate the page type and page 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 to the cart. | |
| pageId | No | The page ID for tracking purposes (e.g. 'moncompte', a product or category ID). | |
| pageType | No | The page type for tracking purposes (e.g. 'moncompte', 'search', 'pdp'). | |
| subBasketType | Yes | The sub-basket type, such as 'drive_clcv' for drive click-and-collect. | |
| basketServiceId | Yes | The basket service ID identifying the store/drive service to use (e.g. '0678-150-7052'). |