id:{ | |
rule_name: | |
rule_id: | |
rule_description: | |
active: | |
start_time: | |
end_time: | |
customer:'logged_in|guest|all' | |
uses_per_customer: | |
uses_per_coupon: | |
new_user_only: | |
priority: | |
type: /percent_price_discount, fixed_amount_discount, fixed_amount_whole_cart_discount,buy_x_get_y_fixed_price,buy_x_get_y_fixed_percent,buy_x_get_y_fixed_discount,most_expensive,cheapest,add_gift | |
conditions: { | |
"and": { | |
cart: { | |
grand_total: { | |
"gte": 1000, | |
}, | |
total_items_qty: { | |
"gte":5 /between, gte,lte,eq | |
}, | |
shipping_method: { | |
"eq": | |
}, | |
payment_mode: { | |
"eq": | |
}, | |
product_sub_selection:{ | |
"and":{ | |
total_quantity": { | |
"gte": x | |
}, | |
"total_amount": { | |
"gte":x | |
} | |
} | |
conditions: { | |
SKU: { | |
must_have: [], | |
must_not_have: [], | |
} | |
category: { | |
must_have: [], | |
must_not_have: [], | |
} | |
} | |
} | |
} | |
} | |
}, | |
actions: { | |
max_cashback: | |
max_discount: | |
fixed_cash_back: | |
percent_cash_back: | |
min_cashback: | |
discount: | |
step: | |
max_number_of_discount_items: | |
product_sub_selection:{ | |
"and":{ | |
total_quantity": { | |
"gte": x | |
}, | |
"total_amount": { | |
"gte":x | |
} | |
} | |
conditions: { | |
SKU: { | |
must_have: [], | |
must_not_have: [], | |
} | |
category: { | |
must_have: [], | |
must_not_have: [], | |
} | |
} | |
} | |
} | |
} | |
code: { | |
id: | |
code: | |
times_used: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment