AlmondTill/G3N API

PromotionEffect

object type

The canned effect — ONE flat render of the contracts discriminated union (the CollectionPredicate render pattern): kind selects the arm; each arm's fields are present on it and absent elsewhere. Percentages ride integer ppm (10% = 100000); amounts are integer minor units in the org default currency; effects only reduce — never uplift.

Fields

FieldTypeNotes
kindPromotionEffectType PromotionEffectType!One of the values of [PromotionEffectType](/types/PromotionEffectType/).
percentPpmIntpercent_off: the ppm ((0, 1000000]).)
amountMinorIntamount_off: the absolute reduction (minor units).
targetPromotionEffectTargetpercent_off/amount_off: where the figure lands.
unitPriceMinorIntfixed_price: the target unit price — each matched line reduces so its running subtotal = unit × qty; already-below = no-op (line-only by construction).
buyQtyIntbuy_x_get_y: the buy quantity (X).
getQtyIntbuy_x_get_y: the get quantity (Y) per reward group.
getScopePromotionBogoScopeOne of the values of [PromotionBogoScope](/types/PromotionBogoScope/).
getProductScopePromotionProductScopebuy_x_get_y getScope=different: the get-item scope (required iff different).
benefitPercentPpmIntbuy_x_get_y: absent = free (100%); bundle_combo: the percent benefit (XOR benefitAmountMinor).
benefitAmountMinorIntbundle_combo: the amount benefit per combo (× the multiplier k; largest-remainder across participants; XOR benefitPercentPpm).
componentsPromotionBundleComponent [PromotionBundleComponent!]bundle_combo: the components (2..8 — a single-component qty deal is buy_x_get_y/minQty).
giftVariantIdIDfree_gift: the gifted Variant.
qtyIntfree_gift (deferred): the gift quantity.