AlmondTill/G3N API

CouponEffectInput

input type

The fields of CouponEffectInput.

Fields

FieldTypeRequiredNotes
kindPromotionEffectType PromotionEffectType!yesWhat the coupon does — percent_off or amount_off; the other effect kinds are refused on a coupon.
percentPpmIntnoFor percent_off: the percent taken off each matched line, in parts per million — 100000 is 10 percent; above 0, up to 1000000.
amountMinorIntnoFor amount_off: one amount taken off the order and spread across the matched lines, in the minor units of the organization currency.
minSubtotalMinorIntnoThe smallest matched subtotal an order must reach before the coupon applies, in minor units. Optional.
productScopePromotionProductScopeInputnoThe product lines the coupon applies to. Omitted, every product line.