Rules
POST
/rules
Request body
Object
rule
Object
conditions
Array
required
Object
variable1
Object
type
string
Enumeration:
ATTRIBUTE
CONSTANT
value
string
Example:
cart_weight
operation
string
Enumeration:
LESS
GREATER
EQUAL
NOT_EQUAL
GREATER_OR_EQUAL
LESS_OR_EQUAL
actions
Array
required
Object
operation
string
Delete will remove the matched input so no other operation will run
Enumeration:
SET
DELETE
set_variable
string
Only valid if operation is SET
set_value
Object
Only valid if operation is SET
type
string
Enumeration:
ATTRIBUTE
CONSTANT
value
string
retailer_moniker
string
required
rule_type
string
domain
string
required
PATCH
/rules
Request body
Object
rule
Object
conditions
Array
required
Object
variable1
Object
type
string
Enumeration:
ATTRIBUTE
CONSTANT
value
string
Example:
cart_weight
operation
string
Enumeration:
LESS
GREATER
EQUAL
NOT_EQUAL
GREATER_OR_EQUAL
LESS_OR_EQUAL
actions
Array
required
Object
operation
string
Delete will remove the matched input so no other operation will run
Enumeration:
SET
DELETE
set_variable
string
Only valid if operation is SET
set_value
Object
Only valid if operation is SET
type
string
Enumeration:
ATTRIBUTE
CONSTANT
value
string
retailer_moniker
string
required
rule_type
string
domain
string
required
id
string
Rule identifier