Get a discount when paying by credit card
Rule breakdown, resource payload analysis, and outcomes explanation
{
"rules": [
{
"name": "Discount 3% if paid by credit card",
"conditions": [
{
"field": "order.payment_method.payment_source_type",
"matcher": "eq",
"value": "credit_cards"
}
],
"actions": [
{
"type": "percentage",
"selector": "order",
"value": 0.03
}
]
}
]
} Rules breakdown
Conditions
Actions
Resource payload analysis
Outcomes check
Conclusion
PreviousDiscount line items based on item's priceNextDiscount an order based on promo item and total number of items
Last updated