Apply Discount To Basket
apply-discount-to-basketApply a discount code to a basket. Returns the updated basket with the discount reflected in the totals.
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": {
"basket_token": "<basket_token>",
"code": "<code>"
},
"name": "apply-discount-to-basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The discount code to apply. | |
| basket_token | Yes | The basket token from create-basket. |