PromotionEffectInput
input type
The fields of PromotionEffectInput.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
kind | PromotionEffectType PromotionEffectType! | yes | What 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). |
percentPpm | Int | no | For percent_off: the percent taken off, in parts per million — 100000 is 10 percent; above 0, up to 1000000. |
amountMinor | Int | no | For amount_off: the amount taken off, in the minor units of the organization currency. |
target | PromotionEffectTarget | no | For percent_off and amount_off: whether the reduction applies to each matched line or to the order as a whole. |
unitPriceMinor | Int | no | For fixed_price: the price every matched unit sells at, in minor units. |
buyQty | Int | no | For buy_x_get_y: how many units a shopper buys to qualify — 1 to 1000. |
getQty | Int | no | For buy_x_get_y: how many units the shopper gets — 1 to 1000. |
getScope | PromotionBogoScope | no | For buy_x_get_y: whether the units the shopper gets are the same items bought, or items from the separate get product scope. |
getProductScope | PromotionProductScopeInput | no | For buy_x_get_y with a different get scope: the product lines the shopper may get. |
benefitPercentPpm | Int | no | For 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. |
benefitAmountMinor | Int | no | For bundle_combo: the amount off each bundle, in minor units — this or the benefit percent, never both. |
components | PromotionBundleComponentInput [PromotionBundleComponentInput!] | no | For bundle_combo: what makes up one bundle — 2 to 8 slots, each a set of products or categories and how many units fill it. |
giftVariantId | ID | no | For free_gift: the id of the item variant given away. Not yet available. |
qty | Int | no | For free_gift: how many units are given — 1 to 1000. Not yet available. |