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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| units | Yes | ||
| context | No | ||
| priority | No | total_discount | |
| max_coupons_per_unit | No |