Authorizations
Path Parameters
rule id
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
Body
New rule data
The name for rule
"limit price for new users"
The status of the rule (active or inactive)
inactive, active "active"
The type of event should be processed with (transaction/payment) and when ("pre" - before AML/Anti-fraud checks, "post" - after). For example, "payment_pre" rule will be used for payments only and before AML/Anti-fraud checks
transaction_pre, transaction_post, payment_pre, payment_post "payment_pre"
Rules are executed in order of sorting by the "rank" field
20
The expression that should be checked by rule. Is the expression is true, than "causes" field will be added to the result and "action" will be performed (if given)
"event.user_ds_registration == 0 && event.checkout_price > 1000"
The set of short strings that you'll see in result if the expression is true
["TST", "HI_PR"]The action should be performed if the expression is true. "Reject" stops all other rules and checks
reject "reject"
Response
Rule updated