Restricted Countries w/ User-Defined Parameters

POST https://api.verosint.com/v1/rules/evaluate

Some businesses are restricted from serving clients within a set of countries or regions. This rule set allows you to prevent users from a provided list of countries from accessing your systems, using their IP location or Phone Number.

This example demonstrates the use of parameters with rules.

Request Body

{"rules"=>[{"query"=>"ip.location.country in parameters.country", "outcomes"=>["DENY"], "reason"=>"IP address is located in {{ip.location.country}}."}, {"query"=>"phone.location.country in parameters.country", "outcomes"=>["DENY"], "reason"=>"Phone number originated in {{phone.location.country}}."}], "default"=>{"outcomes"=>["ALLOW"]}, "identifiers"=>{"ip"=>"{{ip}}", "phone"=>"{{phone}}"}, "parameters"=>{"country"=>["KP", "RU"]}}