Shipping Promotion Code Samples

Buy two of X and buy two of Y and get free shipping to all zones start/end times (AND operator)

Example request
1{
2 "name": "Buy two of X, buy two of Y and get free shipping to all zones",
3 "redemption_type": "AUTOMATIC",
4 "rules": [
5 {
6 "action": {
7 "shipping": {
8 "free_shipping": true,
9 "zone_ids": "*"
10 }
11 },
12 "apply_once": true,
13 "stop": false,
14 "currency_code": "AUD",
15 "condition": {
16 "and": [
17 {
18 "cart": {
19 "items": {
20 "products": [
21 118
22 ]
23 },
24 "minimum_quantity": 2
25 }
26 },
27 {
28 "cart": {
29 "items": {
30 "variants": [
31 134
32 ]
33 },
34 "minimum_quantity": 2
35 }
36 }
37 ]
38 }
39 }
40 ],
41 "notifications": [],
42 "stop": false,
43 "status": "ENABLED",
44 "start_date": "2019-02-06T05:00:00+00:00",
45 "end_date": "2019-02-09T04:59:59+00:00"
46}

Order at least X units of product Y and get free shipping to specific shipping zones

Example request
{
"name": "Order at least X units of product Y and get free shipping to specific shipping zones",
"redemption_type": "AUTOMATIC",
"rules": [
{
"action": {
"shipping": {
"free_shipping": true,
"zone_ids": [
2,
3
]
}
},
"apply_once": true,
"stop": false,
"condition": {
"cart": {
"items": {
"products": [
129
]
},
"minimum_quantity": 1
}
}
}
],
"notifications": [
{
"type": "UPSELL",
"content": "Get free shipping for purchasing Twine Stand with Cutter. Limited to first 50 customers!\r\n<div>&nbsp;</div>",
"locations": [
"HOME_PAGE",
"PRODUCT_PAGE",
"CART_PAGE",
"CHECKOUT_PAGE"
]
},
{
"type": "ELIGIBLE",
"content": "You are eligible for free shipping.\r\n<div>&nbsp;</div>",
"locations": [
"CART_PAGE"
]
},
{
"type": "APPLIED",
"content": "Congratulations you get free shipping!\r\n<div>&nbsp;</div>",
"locations": [
"CART_PAGE"
]
}
],
"stop": false,
"max_uses": 50,
"start_date": "2019-02-01T05:00:00+00:00",
"end_date": "2019-02-05T04:59:59+00:00",
"status": "ENABLED"
}

Order at least 2X of product and get free shipping

Example request
1{
2 "name": "Order at least 2X of product and get free shipping",
3 "redemption_type": "AUTOMATIC",
4 "rules": [
5 {
6 "action": {
7 "shipping": {
8 "free_shipping": true,
9 "zone_ids": "*"
10 }
11 },
12 "apply_once": true,
13 "stop": false,
14 "condition": {
15 "cart": {
16 "items": {
17 "products": [
18 129
19 ]
20 },
21 "minimum_quantity": 2
22 }
23 }
24 }
25 ],
26 "notifications": [
27 {
28 "type": "UPSELL",
29 "content": "<div>&nbsp;</div>",
30 "locations": [
31 "CART_PAGE"
32 ]
33 },
34 {
35 "type": "ELIGIBLE",
36 "content": "<div>&nbsp;</div>",
37 "locations": [
38 "CART_PAGE"
39 ]
40 },
41 {
42 "type": "APPLIED",
43 "content": "<div>&nbsp;</div>",
44 "locations": [
45 "CART_PAGE"
46 ]
47 }
48 ],
49 "stop": false,
50 "status": "ENABLED",
51 "start_date": "2019-02-06T05:00:00+00:00",
52 "end_date": "2019-02-09T04:59:59+00:00"
53}