Fraud rules
How fraud rules work
PaymentKit evaluates your fraud rules after card tokenization, before a payment is authorized. Each rule contains one or more conditions; if a rule matches, the card is blocked and the customer sees a decline message.
Rules are evaluated in the order they are listed. The first matching rule wins and blocks the card — subsequent rules are not evaluated.
Fraud settings vs. fraud rules
There are two related but distinct concepts:
Fraud rules are only evaluated when enabled is true in your account’s fraud settings.
Manage fraud settings
Get fraud settings
Response:
Update fraud settings
Setting custom_message replaces the per-rule reason for all rules. Leave it null to show each rule’s individual reason to the customer.
Reset fraud settings
Resets all fraud settings to defaults (enabled: false, no custom message):
This does not delete your fraud rules — it only resets the account-level settings. Your rules remain and can be re-enabled.
Manage fraud rules
Create a rule
Response:
Rule fields
Conditions
Each condition has three fields:
Field reference
Operator compatibility
List rules
Supports pagination, filtering, and sorting:
Get a rule
Update a rule
All fields are optional — only include the fields you want to change:
Delete a rule
Returns 204 No Content on success.
Example: multi-condition rule
Block high-value transactions from specific countries, using AND logic (both conditions must match):
Block any card from a set of specific BINs using OR logic (either condition triggers the rule):