Promotions
Object
PromotionCriteriaInput
This input is quite complicated, we would suggest using our user interface first to see how promotions are setup and refer to https://support.onshopfront.com/hc/en-us/articles/360000140212-Advanced-Promotions for additional assistance.
| Fields | Type | Description | Validation |
|---|---|---|---|
|
buyAmount |
Float! |
The amount of |
Minimum: 0 Maximum: 1,000,000 |
|
buyAmountMax |
Float |
The maximum amount of |
Minimum: 0 Maximum: 10,000 |
|
buyAmountType |
How the buy amount is calculated for this criteria |
||
|
discountAmount |
Float! |
The discount amount to apply to the items (affected by |
Minimum: -1,000,000 Maximum: 1,000,000 |
|
discountEverydayPromotions |
Boolean |
Whether prices higher than the base price (typically 1) should be discounted |
|
|
excludeCountQuantity |
Boolean |
Whether the excluded items should count towards the |
|
|
excludePricePoints |
Boolean |
Whether exact price points should be excluded (only mixed price points allowed) |
|
|
items |
The items within the criteria |
||
|
minQuantity |
Float |
The minimum continuous sell quantity to apply to the criteria |
Minimum: 1 Maximum: 1,000,000 |
|
mixedOnly |
Boolean |
Whether only mixed items can activate this criteria |
|
|
optional |
Boolean |
Whether this criteria is optional |
|
|
quantityType |
Whether this criteria applies to the exact buy amount or more than the buy amount |
||
|
type |
The type of price modification this criteria will apply |
Object
PromotionCriteriaItemInput
| Fields | Type | Description | Validation |
|---|---|---|---|
|
id |
The ID of the item in the criteria |
||
|
type |
The type of item this is |
||
|
exclude |
Boolean |
Whether this item is excluded |
|
|
rebate |
Float |
The rebate to apply to this item (only when |
Minimum: 0 Maximum: 10,000 |
Object
PromotionScheduleInput
| 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 |