- Create a transaction rule
- View existing transaction rules
- Override existing transaction rules
- Update a transaction rule
Requirements
Create a transaction rule
When you have defined your business logic and requirements, turn your requirements into a transaction rule.-
Make a POST /transactionRules request, specifying the following parameters:
Let’s take the following requirement for example:
- Set a hard-block limit for a daily maximum outgoing transfer amount of EUR 500K.
-
Note the response, which contains the new transactionRule resource, identified by its unique
id. If your users tries to transfer more than EUR 500K over a day, those transfers will be blocked. Response
View transaction rules
To view the transaction rules you have created, use the following API requests:Override an existing transaction rule
When you have multiple transaction rules, Adyen applies these rules based on the existing rule hierarchy. To override this hierarchy for a specific resource or entity, you can create a new rule for that entity that overrides an existing rule with a higher hierarchical ranking. To create a transaction rule that overrides an existing rule for a specific entity:-
Make a POST /transactionRules request. In addition to other parameters required to create a rule, specify the following:
In the previous example, we created a transaction rule that sets a maximum daily limit of EUR 500K for all balance accounts. Now, let’s override this rule to allow a higher limit of EUR 800K for just one balance account. Override a transaction rule
-
Note the response, which contains the new transactionRule resource, identified by its unique
id. Response
Skip a transaction rule
You can override a rule by skipping it entirely for specific entities. This means that the rule no longer applies to that entity. To skip a transaction rule for an entity:-
Make a POST /transactionRules request. In addition to other parameters required to create a rule, specify the following:
In the previous example, we created a transaction rule that sets a maximum daily limit of EUR 500K for all balance accounts. Now, let’s skip this rule for just one balance account, so that it has no maximum daily transfer limit. Skip a transaction rule
-
Note the response, which contains the new transactionRule resource, identified by its unique
id. Response
Update a transaction rule
To update a transaction rule:-
Make a PATCH /transactionRules/{id} request, specifying the
idin the path. In the request body, specify the parameters and rule restrictions you want to update. You can activate or deactivate a transaction rule by updating the value forstatus:In the previous example, we created a transaction rule that sets a maximum daily outgoing transfer limit of EUR 500,000 for all balance accounts in your balance platform. Now, let’s update the transaction rule to increase the daily limit to EUR 800,000. Update a transaction rule -
The response returns the updated transaction rule.
Response
