Select coupons per unit
select_coupons_for_unitsAutomatically selects public coupons for 1–20 partitioned cart units, letting Cupom Center choose by coverage or total discount; use for coupon selection, not known-code validation.
Instructions
Automatically select public coupons for 1–20 marketplace/store units. Use only when a cart is partitioned into units and the integration wants Cupom Center to choose by coverage or total discount. This is not for validating a known code.
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": {
"mode": "<mode>",
"units": "<units>"
},
"name": "select_coupons_for_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| units | Yes | ||
| context | No | ||
| priority | No | total_discount | |
| max_coupons_per_unit | No |