AlmondTill/G3N API

CouponEffect

object type

The discount-flavor effect: kind ∈ {percent_off, amount_off} only. percent_off reduces each matched line by the ppm on its position-2 running subtotal; amount_off is ONE order-wide figure allocated largest-remainder across the matched lines. minSubtotalMinor gates on the Σ matched running subtotal (a miss = VALIDATION/COUPON_INELIGIBLE); productScope narrows the matched lines (absent = all product lines).

Fields

FieldTypeNotes
kindPromotionEffectType PromotionEffectType!One of the values of [PromotionEffectType](/types/PromotionEffectType/).
percentPpmInt
amountMinorInt
minSubtotalMinorInt
productScopePromotionProductScopeSee [PromotionProductScope](/types/PromotionProductScope/).