[
{
"id": "g2584766-ca17-4666-90b6-866a115bacgd",
"name": "Get 2500 cents off item cost based on items price or order total amount",
"priority": 0,
"match": true,
"conditions_logic": "and",
"conditions": [
{
"field": "order.line_items.unit_amount_cents",
"matcher": "gt",
"value": 9900,
"group": "discountable-items",
"match": true,
"matches": [
{
"order": "oXkhYLlzgE",
"line_item": "dKdhYLlzgE",
"group": "discountable-items"
},
{
"order": "oXkhYLlzgE",
"line_item": "kKffYAkzdW",
"group": "discountable-items"
}
],
"scope": "any"
},
{
"field": "order.total_amount_cents",
"matcher": "gteq",
"value": 50000,
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40",
"match": true,
"matches": [
{
"order": "oXkhYLlzgE",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40"
}
],
"scope": "any"
}
],
"actions": [
{
"resources": [
{
"resource_type": "line_items",
"id": "dKdhYLlzgE",
"group": "discountable-items",
"quantity": 1,
"value": 2500,
"action_type": "fixed_amount"
},
{
"resource_type": "line_items",
"id": "kKffYAkzdW",
"group": "discountable-items",
"quantity": 2,
"value": 2500,
"action_type": "fixed_amount"
}
]
}
]
},
{
"id": "a1234567-ce16-3234-90k2-566a465bachy",
"name": "Get 15% off item cost plus free shipping for company customers",
"priority": 1,
"match": true,
"conditions_logic": "and",
"conditions": [
{
"field": "order.customer_email",
"matcher": "matches",
"value": ".*@mybrand.com",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40
"match": true,
"matches": [
{
"order": "oXkhYLlzgE",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40"
}
],
"scope": "any"
}
],
"actions": [
{
"resources": [
{
"resource_type": "line_items",
"id": "dKdhYLlzgE",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40",
"quantity": 1,
"value": 0.15,
"action_type": "percentage"
},
{
"resource_type": "line_items",
"id": "eKfhYFkztQ",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40",
"quantity": 2,
"value": 0.15,
"action_type": "percentage"
},
{
"resource_type": "line_items",
"id": "kKffYAkzdW",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40",
"quantity": 2,
"value": 0.15,
"action_type": "percentage"
}
]
},
{
"resources": [
{
"resource_type": "line_items",
"id": "adfSYwAzar",
"group": "1cd66bb2-56d9-44ac-805d-33d29d56fe40",
"quantity": 1,
"value": 1.0,
"action_type": "percentage"
}
]
}
]
}
]