Calculate and reserve one coupon
quote_single_couponValidates a known coupon against the current cart, calculates authoritative totals, and creates a temporary quote reservation before redemption or final discount display.
Instructions
Validate a known coupon code against the current cart, calculate authoritative totals, and create a temporary quote reservation. Use before redeeming or displaying a final discount. Do not use for catalog discovery.
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": {
"coupon_code": "<coupon_code>",
"context": "<context>"
},
"name": "quote_single_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | ||
| context | Yes | ||
| coupon_code | Yes | Coupon code supplied or selected for the customer. |