Create Fraud Rule

View as Markdown
Create a new fraud prevention rule.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

account_idstringRequired

Request

This endpoint expects an object.
namestringRequired<=255 characters
Rule name
conditionslist of objectsRequired
List of conditions
logicenumOptionalDefaults to AND

Condition logic: AND or OR

enabledbooleanOptionalDefaults to true
Whether the rule is active
actionenumOptionalDefaults to block

Rule outcome on match. ‘allow’ approves the transaction (overrides any block rule); ‘block’ rejects it.

transaction_scopeenumOptionalDefaults to cit

Which transactions the rule applies to: ‘cit’ (interactive/checkout, the default), ‘mit’ (off-session renewals/dunning), or ‘all’.

reasonstringOptional<=500 charactersDefaults to

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
idstring
Unique rule identifier
namestring
Rule name
logicenum

Condition logic: AND or OR

enabledboolean
Whether the rule is active
actionenum

Rule action: block or allow

transaction_scopeenum

Which transactions the rule applies to: ‘cit’, ‘mit’, or ‘all’.

reasonstring
Block reason
conditionslist of objects
List of conditions
created_atdatetime
When the rule was created
updated_atdatetime
When the rule was last updated

Errors

422
Unprocessable Entity Error