Price rules
How the Rules Engine integration with Commerce Layer Core API price lists resource works behind the scenes
Example
{
"rules": [
{
"name": "20% discount off promo products in EU and AU markets",
"conditions": [
{
"field": "price.sku.code",
"matcher": "start_with",
"value": "PROMO"
},
{
"field": "price.jwt_markets.name",
"matcher": "is_in",
"value": ["Europe", "Australia"]
}
],
"actions": [
{
"type": "percentage",
"selector": "price",
"value": "0.2"
}
]
}
]
}Last updated