Calculate and reserve multiple coupons
quote_multiple_couponsValidate and calculate 2–10 coupon codes for a cart, either stacking them in supplied order or applying the per-product discount selection; all codes must be eligible and applied.
Instructions
Validate and calculate 2–10 known coupon codes. code_order stacks sequentially in supplied order; highest_discount_per_product applies only the best coupon to each product. Every supplied code must be eligible and applied.
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_codes": "<coupon_codes>",
"selection": "<selection>",
"context": "<context>"
},
"name": "quote_multiple_coupons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | ||
| context | Yes | ||
| selection | Yes | ||
| coupon_codes | Yes |