put https://api.paymongo.com/v1/fraud/rules/
Use secret API key to update a Rule
resource.
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:
{
"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
}
See attribute details on List all rules.