Order Promotion Code Samples
$X off when you purchase two of X product or one of X product (OR operator)
Example request
{
"name": "$50 off when you buy two tiered wire baskets or a small purple towel",
"redemption_type": "AUTOMATIC",
"rules": [
{
"condition": {
"or": [
{
"cart": {
"items": {
"products": [
118
]
},
"minimum_quantity": 2
}
},
{
"cart": {
"items": {
"variants": [
134
]
},
"minimum_quantity": 1
}
}
]
},
"action": {
"cart_value": {
"discount": {
"fixed_amount": "50"
}
}
},
"apply_once": true
}
]
}
Spend $X and get $X off order
Example request
{
"name": "Spend $X and get $X off order",
"redemption_type": "AUTOMATIC",
"rules": [
{
"action": {
"cart_value": {
"discount": {
"fixed_amount": "20"
}
}
},
"apply_once": true,
"stop": true,
"condition": {
"cart": {
"minimum_spend": "200"
}
}
}
],
"notifications": [
{
"type": "UPSELL",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
},
{
"type": "ELIGIBLE",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
},
{
"type": "APPLIED",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
}
],
"stop": false,
"currency_code": "USD",
"status": "ENABLED"
}
Order at least $X and get X item free
Example request
{
"name": "Order at least $X and get X item free",
"redemption_type": "AUTOMATIC",
"rules": [
{
"action": {
"gift_item": {
"product_id": 130,
"quantity": 1
}
},
"apply_once": true,
"stop": false,
"currency_code": "AUD",
"condition": {
"cart": {
"minimum_spend": "200"
}
}
}
],
"notifications": [
{
"type": "UPSELL",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
},
{
"type": "ELIGIBLE",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
},
{
"type": "APPLIED",
"content": "<div> </div>",
"locations": [
"CART_PAGE"
]
}
],
"stop": false,
"status": "ENABLED"
}
Take X% off items storewide except for X category (NOT operator)
Example request
{
"name": "15% off store except sale",
"redemption_type": "AUTOMATIC",
"rules": [
{
"action": {
"cart_items": {
"discount": {
"percentage_amount": "15"
},
"items": {
"not": {
"categories": [
24
]
}
}
}
},
"apply_once": true,
"stop": true
}
],
"notifications": [
{
"type": "UPSELL",
"content": "15% off store except sale",
"locations": [
"HOME_PAGE",
"PRODUCT_PAGE",
"CART_PAGE"
]
},
{
"type": "ELIGIBLE",
"content": "15% off store except sale",
"locations": [
"CART_PAGE"
]
},
{
"type": "APPLIED",
"content": "15% off store except sale",
"locations": [
"CART_PAGE"
]
}
]
}
Did you find what you were looking for?