AlmondTill/G3N API

PromotionEffectInput

input type

The fields of PromotionEffectInput.

Fields

FieldTypeRequiredNotes
kindPromotionEffectType PromotionEffectType!yesWhat the promotion does — percent_off, amount_off, fixed_price, buy_x_get_y or bundle_combo; only that kind figures ride with it (free_gift and free_shipping are not yet available).
percentPpmIntnoFor percent_off: the percent taken off, in parts per million — 100000 is 10 percent; above 0, up to 1000000.
amountMinorIntnoFor amount_off: the amount taken off, in the minor units of the organization currency.
targetPromotionEffectTargetnoFor percent_off and amount_off: whether the reduction applies to each matched line or to the order as a whole.
unitPriceMinorIntnoFor fixed_price: the price every matched unit sells at, in minor units.
buyQtyIntnoFor buy_x_get_y: how many units a shopper buys to qualify — 1 to 1000.
getQtyIntnoFor buy_x_get_y: how many units the shopper gets — 1 to 1000.
getScopePromotionBogoScopenoFor buy_x_get_y: whether the units the shopper gets are the same items bought, or items from the separate get product scope.
getProductScopePromotionProductScopeInputnoFor buy_x_get_y with a different get scope: the product lines the shopper may get.
benefitPercentPpmIntnoFor buy_x_get_y or bundle_combo: the percent off the units the shopper gets, in parts per million — 500000 is 50 percent. Omitted on buy_x_get_y, they are free.
benefitAmountMinorIntnoFor bundle_combo: the amount off each bundle, in minor units — this or the benefit percent, never both.
componentsPromotionBundleComponentInput [PromotionBundleComponentInput!]noFor bundle_combo: what makes up one bundle — 2 to 8 slots, each a set of products or categories and how many units fill it.
giftVariantIdIDnoFor free_gift: the id of the item variant given away. Not yet available.
qtyIntnoFor free_gift: how many units are given — 1 to 1000. Not yet available.