Get basket promotions
get_cart_promotionsEvaluate a prospective basket for a destination country: whether it can be fulfilled, which promotions apply (including free-delivery style offers and free gifts) and the adjusted basket value. Same check the checkout runs.
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": {
"country_code": "<country_code>",
"items": "<items>"
},
"name": "get_cart_promotions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Basket lines as product ids with quantities. | |
| locale | No | Storefront locale such as en-GB (default), en-US, de, fr-FR, es-ES, it-IT, nl-NL, pl. Controls product names, slugs and prices. | |
| has_tax_id | No | Whether the buyer has a VAT/tax id (business purchase). | |
| country_code | Yes | Destination country (ISO alpha-2). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| message | Yes | ||
| free_gifts | Yes | ||
| promotions | Yes | ||
| can_fulfill | Yes | ||
| basket_value | Yes | ||
| adjusted_value | Yes | Basket value after promotions. |