Capped Threshold Coupon
bpj_capped_threshold_couponCheck the merchandise threshold before applying the percentage coupon and cap the discount at the allowed amount.
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": {
"subtotal": "<subtotal>",
"threshold": "<threshold>",
"discount": "<discount>",
"cap": "<cap>"
},
"name": "bpj_capped_threshold_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | Yes | ||
| discount | Yes | ||
| subtotal | Yes | ||
| threshold | Yes |