Grant roles to users based on your own API.
Empty rules tab
@Tradoor
role to every person who generates at least 500 USD in volume on it.
You can create an API endpoint at /api/user-volume
that takes the request received from Flipsuite and returns the
total volume (in USD) generated by the user supplied in the request, based on the wallets linked to their account.
Here are the rule settings you would likely set when creating a custom gating rule for this case:
Custom Gating Rule form
POST
request which contains both role and user details
each time user roles are refreshed (automatically or due to user manually verifying their eligibility for the roles).
Your endpoint should return either a numeric value (for attributes like points, score or exp in your app) or a
boolean value denoting whether the role should be granted or not, if you prefer to check the conditions on your
own.
Rules tab