put https://api.paymongo.com/v1/fraud/rules/
Use secret API key to update a Rule
resource.
Beta testing phaseThis is not the final version of the product, and is still subject to change.
If you are interested in early access to this feature, please contact [email protected]!
Updates an existing custom fraud rule by its ID. You can modify the rule’s conditions, logical operator, enabled status, action, and priority order. This endpoint supports iterative tuning of your fraud strategy—adjust thresholds, swap logical operators, or change actions as your risk tolerance and business needs change. Use it to keep your rules current and effective against evolving fraud tactics.
Example Response:
{
"data": {
"id": "frl_abcdefg123456",
"type": "fraud.rule",
"livemode": true,
"enabled": true,
"name": "My 1st Rule",
"operator": "AND",
"rules": [
{
"rule_attribute": "risk_score_gte",
"rule_value": "700"
},
{
"rule_attribute": "card_country_id",
"rule_value": ["NG"]
}
],
"action": "block",
"rule_order": 1,
"created_at": "2025-07-21T10:01:23.456Z",
"updated_at": "2025-07-22T09:15:12.789Z"
}
}
See attribute details on List all rules.