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
Request
This endpoint expects an object.
name
Rule name
conditions
List of conditions
logic
Condition logic: AND or OR
enabled
Whether the rule is active
action
Rule outcome on match. ‘allow’ approves the transaction (overrides any block rule); ‘block’ rejects it.
transaction_scope
Which transactions the rule applies to: ‘cit’ (interactive/checkout, the default), ‘mit’ (off-session renewals/dunning), or ‘all’.
reason
Optional reason shown to the customer when a ‘block’ rule matches. The block-reason input was removed from the rule builder per design, so this is no longer required; blocked transactions fall back to the account-level custom message.
Response
Successful Response
id
Unique rule identifier
name
Rule name
logic
Condition logic: AND or OR
enabled
Whether the rule is active
action
Rule action: block or allow
transaction_scope
Which transactions the rule applies to: ‘cit’, ‘mit’, or ‘all’.
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