Order Promotion Code Samples
$X off when you purchase two of X product or one of X product (OR operator)
Request
Response
Example request
1 { 2 "name": "$50 off when you buy two tiered wire baskets or a small purple towel", 3 "redemption_type": "AUTOMATIC", 4 "rules": [ 5 { 6 "condition": { 7 "or": [ 8 { 9 "cart": { 10 "items": { 11 "products": [ 12 118 13 ] 14 }, 15 "minimum_quantity": 2 16 } 17 }, 18 { 19 "cart": { 20 "items": { 21 "variants": [ 22 134 23 ] 24 }, 25 "minimum_quantity": 1 26 } 27 } 28 ] 29 }, 30 "action": { 31 "cart_value": { 32 "discount": { 33 "fixed_amount": "50" 34 } 35 } 36 }, 37 "apply_once": true 38 } 39 ] 40 }
Spend XandgetX off order
Request
Response
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
Request
Response
Example request
1 { 2 "name": "Order at least $X and get X item free", 3 "redemption_type": "AUTOMATIC", 4 "rules": [ 5 { 6 "action": { 7 "gift_item": { 8 "product_id": 130, 9 "quantity": 1 10 } 11 }, 12 "apply_once": true, 13 "stop": false, 14 "currency_code": "AUD", 15 "condition": { 16 "cart": { 17 "minimum_spend": "200" 18 } 19 } 20 } 21 ], 22 "notifications": [ 23 { 24 "type": "UPSELL", 25 "content": "<div> </div>", 26 "locations": [ 27 "CART_PAGE" 28 ] 29 }, 30 { 31 "type": "ELIGIBLE", 32 "content": "<div> </div>", 33 "locations": [ 34 "CART_PAGE" 35 ] 36 }, 37 { 38 "type": "APPLIED", 39 "content": "<div> </div>", 40 "locations": [ 41 "CART_PAGE" 42 ] 43 } 44 ], 45 "stop": false, 46 "status": "ENABLED" 47 }
Take X% off items storewide except for X category (NOT operator)
Request
Response
Example request
1 { 2 "name": "15% off store except sale", 3 "redemption_type": "AUTOMATIC", 4 "rules": [ 5 { 6 "action": { 7 "cart_items": { 8 "discount": { 9 "percentage_amount": "15" 10 }, 11 "items": { 12 "not": { 13 "categories": [ 14 24 15 ] 16 } 17 } 18 } 19 }, 20 "apply_once": true, 21 "stop": true 22 } 23 ], 24 "notifications": [ 25 { 26 "type": "UPSELL", 27 "content": "15% off store except sale", 28 "locations": [ 29 "HOME_PAGE", 30 "PRODUCT_PAGE", 31 "CART_PAGE" 32 ] 33 }, 34 { 35 "type": "ELIGIBLE", 36 "content": "15% off store except sale", 37 "locations": [ 38 "CART_PAGE" 39 ] 40 }, 41 { 42 "type": "APPLIED", 43 "content": "15% off store except sale", 44 "locations": [ 45 "CART_PAGE" 46 ] 47 } 48 ] 49 }