Create Fraud Rule
Create a new fraud prevention rule.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Headers
Idempotency-Key
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.
Request
This endpoint expects an object.
name
Rule name
conditions
List of conditions
logic
Condition logic: AND or OR
Allowed values:
enabled
Whether the rule is active
action
Rule outcome applied when the rule matches. ‘allow’ approves the transaction (overriding any block rule); ‘block’ rejects it with a visible decline.
Allowed values:
transaction_scope
Which transactions the rule applies to: ‘cit’ (interactive/checkout, the default), ‘mit’ (off-session renewals/dunning), or ‘all’.
Allowed values:
reason
Optional reason shown to the customer when this ‘block’ rule matches. When empty, the customer sees the account-level custom message; else, for a brand, card type or country rule, a message naming what was blocked; else a generic message.
Response
Successful Response
id
Unique rule identifier
name
Rule name
logic
Condition logic: AND or OR
Allowed values:
enabled
Whether the rule is active
action
Rule outcome applied when the rule matches.
Allowed values:
transaction_scope
Which transactions the rule applies to: ‘cit’, ‘mit’, or ‘all’.
Allowed values:
reason
Block reason
conditions
List of conditions
created_at
When the rule was created
updated_at
When the rule was last updated
Errors
422
Unprocessable Entity Error