Promotions
Object
PromotionCriteriaItem
| Fields | Type | Description |
|---|---|---|
|
item |
The criteria item |
|
|
exclude |
Boolean |
Whether the item is excluded from the criteria |
|
rebate |
Float |
The rebate of the item in the criteria |
Object
PromotionCriteria
| Fields | Type | Description |
|---|---|---|
|
buyAmount |
Float! |
The amount of the buy amount type required to active the criteria |
|
buyAmountMax |
Float |
The max amount the before the criteria is no longer activated (only used if |
|
buyAmountType |
The type for the quantity units to calculate the promotion |
|
|
discountAmount |
Float |
The amount for the promotion discount |
|
discountEverydayPromotions |
Boolean |
Whether the promotion discounts the everyday price of the promotion, otherwise the promotion will discount the single price for the products |
|
excludeCountQuantity |
Boolean |
Whether the excluded items count towards the |
|
excludePricePoints |
Boolean |
When using |
|
items |
The list of items in the criteria |
|
|
minQuantity |
Float |
The minimum continuous sell quantity. When the |
|
mixedOnly |
Boolean |
Only count mixed products towards this criteris |
|
optional |
Boolean |
Whether the criteria is required for the promotion to be applied |
|
quantityType |
Whether the quantity amount is |
|
|
type |
The type of discount that the criteria applies |
Object
PromotionSchedule
| Fields | Type | Description |
|---|---|---|
|
anchor |
The anchor date for resolving the schedule |
|
|
period |
How often the schedule repeats from the anchor timestamp |
|
|
offset |
How long after the resolved period before the promotion becomes active |
|
|
duration |
How long the promotion should be active for |
Object
Promotion
Express promotions require the criteria to be set up differently. All the express promotion's
criteriamust have only one item on it and cannot be excluded. Thecriteriaalso can only havetypeset to eitherSELL_TOTAL,DISCOUNT_PERCENTAGEorDISCOUNT_TOTAL_AMOUNT. Whentypeis set toSELL_TOTALthe item in the criteria can only be product or family.
Implements
List of interfaces this object implements
| Fields | Type | Description |
|---|---|---|
|
id |
The ID for the promotion |
|
|
mdbId |
Int |
The master database ID for the promotion |
|
mdbSyncing |
Boolean! |
Whether the promotion is currently syncing with the master database |
|
clientId |
String |
The ID provided by the creator of the promotion, this is only available through the API |
|
name |
String! |
The name of the promotion |
|
start |
The start date of the promotion, when the field is |
|
|
end |
The end date of the promotion, when the field is |
|
|
promotionCategory |
The category for the promotion |
|
|
customerGroups |
The customer groups that the promotion is available to |
|
|
outlets |
The outlets that the promotion runs on |
|
|
express |
Boolean |
Whether the promotion is an express promotion |
|
mixCriteria |
Boolean |
Whether the criteria should mix together as if they were a single criteria |
|
criteria |
The criteria for the promotion |
|
|
schedule |
The schedule for how often this promotion reoccurs |
|
|
active |
Boolean |
Whether the promotion is active |
|
saleMaxApplicationCount |
Int |
The maximum number of times this promotion can be applied to a single sale, if null then it's unlimited |
|
activatedBy |
String |
The rules to activate this promotion, currently this can only be specified internally by Shopfront |
|
revisions |
The recent revisions for the promotion |
PromotionRevisionConnection
Object — ConnectionType of Revision
Sortable Fields
Fields from Revision that can be used to sort the connection items
- timestamp