apply_promo_code_to_cart
Apply a promotional or discount code to a Carrefour Drive cart. Provide the code, facility service ID, and sub-basket type to validate and apply the discount, receiving confirmation or an error.
Instructions
Applies a promotional/discount code to the authenticated user's cart on Carrefour France. Associates the promo code with a specific facility/store service and sub-basket type (e.g. drive click-and-collect). Returns a success confirmation or an error if the code is invalid or cannot be applied. (requires an authenticated Carrefour session)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"facilityServiceId": "<facilityServiceId>",
"subBasketType": "<subBasketType>"
},
"name": "apply_promo_code_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The promotional/discount code to apply to the cart (e.g. 'ETE10'). | |
| subBasketType | Yes | The sub-basket type for the cart (e.g. 'drive_clcv' for drive click-and-collect). | |
| facilityServiceId | Yes | The facility/store service ID to associate the promo code with (e.g. '0678-150-7052'). |