{"title":"Create and manage rules","category":"default","creationDate":1571779440,"content":"<p>After you determine your business' requirements for evaluating and declining suspicious payout requests, you can use the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/overview\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration API<\/a> to create and manage transaction rules that automatically evaluate every external payout. This page explains how to:<\/p>\n<ul>\n<li><a href=\"#create-a-transaction-rule\">Create a transaction rule<\/a><\/li>\n<li><a href=\"#view-transaction-rules\">View existing transaction rules<\/a><\/li>\n<li><a href=\"#override-an-existing-transaction-rule\">Override existing transaction rules<\/a><\/li>\n<li><a href=\"#update-a-transaction-rule\">Update a transaction rule<\/a>\n<\/li>\n<li><a href=\"#deactivate-or-activate-a-transaction-rule\">Deactivate or activate a transaction rule<\/a>\n<\/li>\n<\/ul>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Adyen Issuing<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/api-credentials\/roles\/\">API credential roles<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have access to the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/overview\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration API<\/a> with following role: <ul><li markdown=\"1\"><strong>Bank Manage TransactionRules role<\/strong><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/webhooks\">Webhooks<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Subscribe to the following webhook(s): <ul><li markdown=\"1\"><a href=\"\/pt\/payouts\/payout-service\/pay-out-to-bank-accounts\/payout-webhooks\/\">\n  <strong>Transfer webhooks<\/strong>\n<\/a><\/li><li markdown=\"1\"><a href=\"\/pt\/payouts\/payout-service\/transfer-transactions\/transaction-webhooks\/\">\n  <strong>Transaction webhooks<\/strong>\n<\/a><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin: <ul><li markdown=\"1\">Make sure you are familiar with <a href=\"\/pt\/issuing\/transaction-rules\">how transaction rules work<\/a><\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Create a transaction rule<\/h2>\n<p>When you have defined your business logic and requirements, turn your requirements into a transaction rule. You can do this by using your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> or by making an API request.<\/p>\n<p>The following tabs explain both procedures.<\/p>\n\n<div id=\"tabZgYd9\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Customer Area&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To create a transaction rule in your &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Go to &lt;strong&gt;Financial products&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Transaction rules&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Select &lt;strong&gt;+ Create new rule&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;a href=\\&quot;#add-details\\&quot;&gt;Add the required rule details&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;a href=\\&quot;#set-conditions\\&quot;&gt;Set the rule conditions&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;a href=\\&quot;#test-rule\\&quot;&gt;Review and test your rule&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;h3&gt;Add details&lt;\\\/h3&gt;\\n&lt;p&gt;Add the following rule details:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;strong&gt;Entity type:&lt;\\\/strong&gt; The type of &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules\\\/#entity\\&quot;&gt;entity to which you want to apply the rule&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Entity key:&lt;\\\/strong&gt; The ID of the selected entity.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Aggregation level:&lt;\\\/strong&gt; The &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules#accumulate-data\\&quot;&gt;level at which the data is accumulated&lt;\\\/a&gt; when selecting rule types that involve counting a number of transactions within a time interval.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Rule type:&lt;\\\/strong&gt; Specify when the &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules#outcome\\&quot;&gt;outcome of the rule&lt;\\\/a&gt; applies. In the Customer Area, you can use one of the following rule types:\\n&lt;ul&gt;\\n&lt;li&gt;&lt;strong&gt;Per transaction:&lt;\\\/strong&gt; The outcome applies to every transaction.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Fixed time interval:&lt;\\\/strong&gt; You specify a time interval. During the time interval, we aggregate any transaction data that you specify. The outcome applies when, cumulatively, all transactions that occur within the time interval surpass a specified limit. The aggregation is reset when a new interval begins.&lt;br&gt;For example: you can specify that a cardholder cannot spend more than EUR 200 in a day, which starts daily at 9 AM.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Moving time interval:&lt;\\\/strong&gt; You specify the duration of a time interval. When a cardholder attempts a payment, we aggregate all transaction data before this payment attempt, for the duration that you specified. The outcome applies when, cumulatively, the transactions surpass a specified limit.&lt;br&gt;For example: you can specify that a cardholder cannot spend more than EUR 200 in six hours. If the cardholder attempts a payment at 7 PM, we check that between 1 PM and 7 PM the cardholder hasn&#039;t spent more than EUR 200.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Maximum usage:&lt;\\\/strong&gt; We aggregate transaction data during the entire lifetime of a card. After the amount of transactions surpass a specified limit, the card is deactivated.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Description:&lt;\\\/strong&gt; Describe what the rule does so you identify it later.&lt;br&gt;For example: Allow only point-of-sale transactions.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;Reference:&lt;\\\/strong&gt; An internal identifier that helps you track the rule later.&lt;br&gt; For example: RULE_1234.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;h3&gt;Set conditions&lt;\\\/h3&gt;\\n&lt;p&gt;To set a condition, select:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;A parameter. For example: &lt;strong&gt;Total amount&lt;\\\/strong&gt;, &lt;strong&gt;Countries&lt;\\\/strong&gt;, &lt;strong&gt;Day of week&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;An operator. For example: &lt;strong&gt;equals&lt;\\\/strong&gt;, &lt;strong&gt;greater than&lt;\\\/strong&gt;, &lt;strong&gt;is in&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;A value. For example: &lt;strong&gt;100&lt;\\\/strong&gt;, &lt;strong&gt;Netherlands&lt;\\\/strong&gt;, &lt;strong&gt;Monday&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;p&gt;You can have up to five conditions per rule. If any of the specified conditions is met, Adyen applies the &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules#outcome\\&quot;&gt;rule outcome&lt;\\\/a&gt; to the transaction.&lt;\\\/p&gt;\\n&lt;h3&gt;Test rule&lt;\\\/h3&gt;\\n&lt;p&gt;In the &lt;strong&gt;Review&lt;\\\/strong&gt; page, you can select &lt;strong&gt;Test rule&lt;\\\/strong&gt;. This enables you test the rule with previous transactions in your platform.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;create-rule-ca&quot;,&quot;oldTabId&quot;:&quot;create-rule-ca_1&quot;,&quot;relation&quot;:&quot;create-rule-ca&quot;},{&quot;title&quot;:&quot;API&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make a POST &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/transactionRules&lt;\\\/a&gt; request, specifying the following parameters:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Parameter&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-aggregationLevel\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;aggregationLevel&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules#accumulate-data\\&quot;&gt;level at which the data is accumulated&lt;\\\/a&gt; when selecting rule types that involve counting a number of transactions within a time interval.&lt;br\\\/&gt;Default: &lt;strong&gt;paymentInstrument&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-description\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;description&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Your description for the rule. Maximum length: 300 characters. This description is displayed in the &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-entityKey\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;entityKey&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;An object that contains the ID and &lt;a href=\\&quot;\\\/pt\\\/issuing\\\/authorisation\\\/transaction-rules#entity\\&quot;&gt;type&lt;\\\/a&gt; of resource to which you want to apply the rule.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-interval\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;interval&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The time period or duration when you want to apply the rule.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-outcomeType\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;outcomeType&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The outcome that is applied if the transfer meets the conditions of the rule. Possible values:&lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;hardBlock&lt;\\\/strong&gt;: the transaction is declined.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;scoreBased&lt;\\\/strong&gt;: the transaction is assigned the &lt;code&gt;score&lt;\\\/code&gt; you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;enforceSCA&lt;\\\/strong&gt;: your user is prompted to verify their identity using Strong Customer Authentication (SCA). If they fail to do so, the transaction is declined.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-reference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;reference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Your reference for the rule. Maximum length: 150 characters. This description is displayed in the &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-requestType\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;requestType&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The type of transfer to which you want to apply the rule. Set this to &lt;strong&gt;authorization&lt;\\\/strong&gt;, &lt;strong&gt;authentication&lt;\\\/strong&gt;, or &lt;strong&gt;tokenization&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-type\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;type&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The type of rule that determines what data to analyze. Possible values:&lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;blockList&lt;\\\/strong&gt;: decline a transfer if it meets specific conditions.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;maxUsage&lt;\\\/strong&gt;: add the total amount from each transaction or count the number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;velocity&lt;\\\/strong&gt;: decline a transaction if a set amount of accumulated previous transactions have met the specified conditions. Adyen only considers previous transactions within a specified time interval and aggregation level.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;ruleRestrictions&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;An object that contains all the conditions for a rule. For example: &lt;code&gt;countries&lt;\\\/code&gt;, &lt;code&gt;mcc&lt;\\\/code&gt;, or &lt;code&gt;timeOfDay&lt;\\\/code&gt;.&lt;br\\\/&gt;For each condition, you must specify the &lt;code&gt;operation&lt;\\\/code&gt; and the &lt;code&gt;value&lt;\\\/code&gt; that we must check.&lt;br\\\/&gt;See how to &lt;a href=\\&quot;#allowed-combinations\\&quot;&gt;combine&lt;\\\/a&gt; rule restrictions with with specific types and intervals.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-startDate\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;startDate&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Specifies a date and time in the future when the rule must be evaluated. For example, &lt;strong&gt;2022-02-25T07:00:00+01:00&lt;\\\/strong&gt;. When you specify a start date, the rule is created with a &lt;code&gt;status&lt;\\\/code&gt; set to &lt;strong&gt;active&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-endDate\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;endDate&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Specifies a date and time in the future when the rule evaluation must stop. For example, &lt;strong&gt;2022-12-18T10:15:30+01:00&lt;\\\/strong&gt;. If not provided, the rule is evaluated until the &lt;code&gt;status&lt;\\\/code&gt; is set to &lt;strong&gt;inactive&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-status\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;status&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Set to &lt;strong&gt;active&lt;\\\/strong&gt; if you want to start evaluating the rule. When you set the status to active, we automatically set the &lt;code&gt;startDate&lt;\\\/code&gt; to the current time.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;For example, consider the following rule requirements:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;Only allow payments from the Netherlands.&lt;\\\/li&gt;\\n&lt;li&gt;Apply the rule to &lt;code&gt;paymentInstrumentId&lt;\\\/code&gt; &lt;strong&gt;PI00000000000000000000001&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Apply the rule starting from 2022-03-20 at 00:00 CET.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;Here is an example of how to create a transaction rule for the requirements above.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Create transaction rule&#039;\\&quot; :id=\\&quot;&#039;create-transaction-rule-request&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/balanceplatform-api-test.adyen.com\\\\\\\/bcl\\\\\\\/v2\\\\\\\/transactionRules \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-X POST \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;{hint:Human-readable rule description}Only allow NL transactions{\\\\\\\/hint}\\\\&amp;quot;,\\\\n    \\\\&amp;quot;entityKey\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;entityReference\\\\&amp;quot;: \\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;,\\\\n        \\\\&amp;quot;entityType\\\\&amp;quot;: \\\\&amp;quot;PaymentInstrument\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;interval\\\\&amp;quot;: {\\\\n      \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;perTransaction\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;reference\\\\&amp;quot;:\\\\&amp;quot;{hint:Your unique identifier for this resource}myRule12345{\\\\\\\/hint}\\\\&amp;quot;,\\\\n    \\\\&amp;quot;ruleRestrictions\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;countries\\\\&amp;quot; : {\\\\n            \\\\&amp;quot;operation\\\\&amp;quot;: \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n            \\\\&amp;quot;value\\\\&amp;quot;: [\\\\&amp;quot;NL\\\\&amp;quot;]\\\\n        }\\\\n    },\\\\n    \\\\&amp;quot;startDate\\\\&amp;quot;: \\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;,\\\\n    \\\\&amp;quot;type\\\\&amp;quot; : \\\\&amp;quot;blockList\\\\&amp;quot;\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v25.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.balancePlatform.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.service.balancePlatform.*;\\\\n\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nCountriesRestriction countriesRestriction = new CountriesRestriction()\\\\n  .operation(\\\\&amp;quot;noneMatch\\\\&amp;quot;)\\\\n  .value(Arrays.asList(\\\\&amp;quot;NL\\\\&amp;quot;));\\\\n\\\\nTransactionRuleEntityKey transactionRuleEntityKey = new TransactionRuleEntityKey()\\\\n  .entityReference(\\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;)\\\\n  .entityType(\\\\&amp;quot;PaymentInstrument\\\\&amp;quot;);\\\\n\\\\nTransactionRuleInterval transactionRuleInterval = new TransactionRuleInterval()\\\\n  .type(TransactionRuleInterval.TypeEnum.PERTRANSACTION);\\\\n\\\\nTransactionRuleRestrictions transactionRuleRestrictions = new TransactionRuleRestrictions()\\\\n  .countries(countriesRestriction);\\\\n\\\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo()\\\\n  .reference(\\\\&amp;quot;myRule12345\\\\&amp;quot;)\\\\n  .entityKey(transactionRuleEntityKey)\\\\n  .description(\\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;)\\\\n  .interval(transactionRuleInterval)\\\\n  .ruleRestrictions(transactionRuleRestrictions)\\\\n  .type(TransactionRuleInfo.TypeEnum.BLOCKLIST)\\\\n  .startDate(\\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nTransactionRulesApi service = new TransactionRulesApi(client);\\\\nTransactionRule response = service.createTransactionRule(transactionRuleInfo, null);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v17.4.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\TransactionRuleEntityKey;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\TransactionRuleInterval;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\TransactionRuleRestrictions;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\CountriesRestriction;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\TransactionRuleInfo;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\BalancePlatform\\\\\\\\TransactionRulesApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$countriesRestriction = new CountriesRestriction();\\\\n$countriesRestriction\\\\n  -&amp;gt;setOperation(\\\\&amp;quot;noneMatch\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(array(\\\\&amp;quot;NL\\\\&amp;quot;));\\\\n\\\\n$transactionRuleEntityKey = new TransactionRuleEntityKey();\\\\n$transactionRuleEntityKey\\\\n  -&amp;gt;setEntityReference(\\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;)\\\\n  -&amp;gt;setEntityType(\\\\&amp;quot;PaymentInstrument\\\\&amp;quot;);\\\\n\\\\n$transactionRuleInterval = new TransactionRuleInterval();\\\\n$transactionRuleInterval\\\\n  -&amp;gt;setType(\\\\&amp;quot;perTransaction\\\\&amp;quot;);\\\\n\\\\n$transactionRuleRestrictions = new TransactionRuleRestrictions();\\\\n$transactionRuleRestrictions\\\\n  -&amp;gt;setCountries($countriesRestriction);\\\\n\\\\n$transactionRuleInfo = new TransactionRuleInfo();\\\\n$transactionRuleInfo\\\\n  -&amp;gt;setReference(\\\\&amp;quot;myRule12345\\\\&amp;quot;)\\\\n  -&amp;gt;setEntityKey($transactionRuleEntityKey)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;)\\\\n  -&amp;gt;setInterval($transactionRuleInterval)\\\\n  -&amp;gt;setRuleRestrictions($transactionRuleRestrictions)\\\\n  -&amp;gt;setType(\\\\&amp;quot;blockList\\\\&amp;quot;)\\\\n  -&amp;gt;setStartDate(\\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\n$service = new TransactionRulesApi($client);\\\\n$response = $service-&amp;gt;createTransactionRule($transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v14.4.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.BalancePlatform;\\\\nusing Adyen.Service.BalancePlatform;\\\\n\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nCountriesRestriction countriesRestriction = new CountriesRestriction\\\\n{\\\\n  Operation = \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n  Value = { \\\\&amp;quot;NL\\\\&amp;quot; }\\\\n};\\\\n\\\\nTransactionRuleEntityKey transactionRuleEntityKey = new TransactionRuleEntityKey\\\\n{\\\\n  EntityReference = \\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;,\\\\n  EntityType = \\\\&amp;quot;PaymentInstrument\\\\&amp;quot;\\\\n};\\\\n\\\\nTransactionRuleInterval transactionRuleInterval = new TransactionRuleInterval\\\\n{\\\\n  Type = TransactionRuleInterval.TypeEnum.PerTransaction\\\\n};\\\\n\\\\nTransactionRuleRestrictions transactionRuleRestrictions = new TransactionRuleRestrictions\\\\n{\\\\n  Countries = countriesRestriction\\\\n};\\\\n\\\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo\\\\n{\\\\n  Reference = \\\\&amp;quot;myRule12345\\\\&amp;quot;,\\\\n  EntityKey = transactionRuleEntityKey,\\\\n  Description = \\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;,\\\\n  Interval = transactionRuleInterval,\\\\n  RuleRestrictions = transactionRuleRestrictions,\\\\n  Type = TransactionRuleInfo.TypeEnum.BlockList,\\\\n  StartDate = \\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nvar service = new TransactionRulesService(client);\\\\nvar response = service.CreateTransactionRule(transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v16.2.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, BalancePlatformAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst transactionRuleInfo = {\\\\n  description: \\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;,\\\\n  entityKey: {\\\\n    entityReference: \\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;,\\\\n    entityType: \\\\&amp;quot;PaymentInstrument\\\\&amp;quot;\\\\n  },\\\\n  interval: {\\\\n    type: \\\\&amp;quot;perTransaction\\\\&amp;quot;\\\\n  },\\\\n  reference: \\\\&amp;quot;myRule12345\\\\&amp;quot;,\\\\n  ruleRestrictions: {\\\\n    countries: {\\\\n      operation: \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n      value: [ \\\\&amp;quot;NL\\\\&amp;quot; ]\\\\n    }\\\\n  },\\\\n  startDate: new Date(\\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;),\\\\n  type: \\\\&amp;quot;blockList\\\\&amp;quot;\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\\\nconst response = balancePlatformAPI.TransactionRulesApi.createTransactionRule(transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v9.3.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/balancePlatform\\\\&amp;quot;\\\\n)\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\ncountriesRestriction := balancePlatform.CountriesRestriction{\\\\n  Operation: \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n  Value: []string{\\\\n    \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  },\\\\n}\\\\n\\\\ntransactionRuleEntityKey := balancePlatform.TransactionRuleEntityKey{\\\\n  EntityReference: common.PtrString(\\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;),\\\\n  EntityType: common.PtrString(\\\\&amp;quot;PaymentInstrument\\\\&amp;quot;),\\\\n}\\\\n\\\\ntransactionRuleInterval := balancePlatform.TransactionRuleInterval{\\\\n  Type: \\\\&amp;quot;perTransaction\\\\&amp;quot;,\\\\n}\\\\n\\\\ntransactionRuleRestrictions := balancePlatform.TransactionRuleRestrictions{\\\\n  Countries: &amp;amp;countriesRestriction,\\\\n}\\\\n\\\\ntransactionRuleInfo := balancePlatform.TransactionRuleInfo{\\\\n  Reference: \\\\&amp;quot;myRule12345\\\\&amp;quot;,\\\\n  EntityKey: transactionRuleEntityKey,\\\\n  Description: \\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;,\\\\n  Interval: transactionRuleInterval,\\\\n  RuleRestrictions: transactionRuleRestrictions,\\\\n  Type: \\\\&amp;quot;blockList\\\\&amp;quot;,\\\\n  StartDate: common.PtrString(\\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nservice := client.BalancePlatform()\\\\nreq := service.TransactionRulesApi.CreateTransactionRuleInput().TransactionRuleInfo(transactionRuleInfo)\\\\nres, httpRes, err := service.TransactionRulesApi.CreateTransactionRule(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.2.0\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;,\\\\n  \\\\&amp;quot;entityKey\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;entityReference\\\\&amp;quot;: \\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;,\\\\n    \\\\&amp;quot;entityType\\\\&amp;quot;: \\\\&amp;quot;PaymentInstrument\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;interval\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;perTransaction\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;myRule12345\\\\&amp;quot;,\\\\n  \\\\&amp;quot;ruleRestrictions\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;countries\\\\&amp;quot;: {\\\\n      \\\\&amp;quot;operation\\\\&amp;quot;: \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;: [ \\\\&amp;quot;NL\\\\&amp;quot; ]\\\\n    }\\\\n  },\\\\n  \\\\&amp;quot;startDate\\\\&amp;quot;: \\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;,\\\\n  \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;blockList\\\\&amp;quot;\\\\n}\\\\n\\\\n# Make the API call\\\\nresult = adyen.balancePlatform.transaction_rules_api.create_transaction_rule(request=json_request)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.3.0\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :description =&amp;gt; &#039;Only allow NL transactions&#039;,\\\\n  :entityKey =&amp;gt; {\\\\n    :entityReference =&amp;gt; &#039;PI00000000000000000000001&#039;,\\\\n    :entityType =&amp;gt; &#039;PaymentInstrument&#039;\\\\n  },\\\\n  :interval =&amp;gt; {\\\\n    :type =&amp;gt; &#039;perTransaction&#039;\\\\n  },\\\\n  :reference =&amp;gt; &#039;myRule12345&#039;,\\\\n  :ruleRestrictions =&amp;gt; {\\\\n    :countries =&amp;gt; {\\\\n      :operation =&amp;gt; &#039;noneMatch&#039;,\\\\n      :value =&amp;gt; [ &#039;NL&#039; ]\\\\n    }\\\\n  },\\\\n  :startDate =&amp;gt; &#039;2022-03-20T00:00:00+01:00&#039;,\\\\n  :type =&amp;gt; &#039;blockList&#039;\\\\n}\\\\n\\\\n# Make the API call\\\\nresult = adyen.balancePlatform.transaction_rules_api.create_transaction_rule(request_body)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v16.2.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, BalancePlatformAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst countriesRestriction: Types.balancePlatform.CountriesRestriction = {\\\\n  operation: \\\\&amp;quot;noneMatch\\\\&amp;quot;,\\\\n  value: [\\\\&amp;quot;NL\\\\&amp;quot;]\\\\n};\\\\n\\\\nconst transactionRuleEntityKey: Types.balancePlatform.TransactionRuleEntityKey = {\\\\n  entityReference: \\\\&amp;quot;PI00000000000000000000001\\\\&amp;quot;,\\\\n  entityType: \\\\&amp;quot;PaymentInstrument\\\\&amp;quot;\\\\n};\\\\n\\\\nconst transactionRuleInterval: Types.balancePlatform.TransactionRuleInterval = {\\\\n  type: Types.balancePlatform.TransactionRuleInterval.TypeEnum.PerTransaction\\\\n};\\\\n\\\\nconst transactionRuleRestrictions: Types.balancePlatform.TransactionRuleRestrictions = {\\\\n  countries: countriesRestriction\\\\n};\\\\n\\\\nconst transactionRuleInfo: Types.balancePlatform.TransactionRuleInfo = {\\\\n  reference: \\\\&amp;quot;myRule12345\\\\&amp;quot;,\\\\n  entityKey: transactionRuleEntityKey,\\\\n  description: \\\\&amp;quot;Only allow NL transactions\\\\&amp;quot;,\\\\n  interval: transactionRuleInterval,\\\\n  ruleRestrictions: transactionRuleRestrictions,\\\\n  type: Types.balancePlatform.TransactionRuleInfo.TypeEnum.BlockList,\\\\n  startDate: \\\\&amp;quot;2022-03-20T00:00:00+01:00\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\\\nconst response = balancePlatformAPI.TransactionRulesApi.createTransactionRule(transactionRuleInfo);&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Note the response, which contains the new &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;transactionRule&lt;\\\/strong&gt;&lt;\\\/span&gt; resource, identified by its unique &lt;code&gt;id&lt;\\\/code&gt;. The transaction rule is applied on the specified &lt;code&gt;startDate&lt;\\\/code&gt; for all payments made with payment instrument &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;PI00000000000000000000001&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/p&gt;\\n&lt;div class=\\&quot;notices green\\&quot;&gt;\\n&lt;p&gt;If the location where the transaction is processed does not match any of the values in &lt;code&gt;ruleRestrictions.countries.value&lt;\\\/code&gt; (in this case, NL), then the transaction is blocked.&lt;\\\/p&gt;\\n&lt;\\\/div&gt;\\n&lt;p&gt;The following code sample shows the response data you receive after creating a transaction rule.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Response&#039;\\&quot; :id=\\&quot;&#039;create-transaction-rule-response&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n \\\\\\&quot;description\\\\\\&quot;: \\\\\\&quot;Only allow NL transactions\\\\\\&quot;,\\\\n \\\\\\&quot;entityKey\\\\\\&quot;: {\\\\n     \\\\\\&quot;entityReference\\\\\\&quot;: \\\\\\&quot;PI00000000000000000000001\\\\\\&quot;,\\\\n     \\\\\\&quot;entityType\\\\\\&quot;: \\\\\\&quot;PaymentInstrument\\\\\\&quot;\\\\n },\\\\n \\\\\\&quot;interval\\\\\\&quot;: {\\\\n     \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;perTransaction\\\\\\&quot;\\\\n },\\\\n \\\\\\&quot;outcomeType\\\\\\&quot;: \\\\\\&quot;hardBlock\\\\\\&quot;,\\\\n \\\\\\&quot;reference\\\\\\&quot;: \\\\\\&quot;myRule12345\\\\\\&quot;,\\\\n \\\\\\&quot;ruleRestrictions\\\\\\&quot;: {\\\\n     \\\\\\&quot;countries\\\\\\&quot;: {\\\\n         \\\\\\&quot;operation\\\\\\&quot;: \\\\\\&quot;noneMatch\\\\\\&quot;,\\\\n         \\\\\\&quot;value\\\\\\&quot;: [\\\\n             \\\\\\&quot;NL\\\\\\&quot;\\\\n         ]\\\\n     }\\\\n },\\\\n \\\\\\&quot;startDate\\\\\\&quot;: \\\\\\&quot;2022-03-20T00:00:00+01:00\\\\\\&quot;,\\\\n \\\\\\&quot;status\\\\\\&quot;: \\\\\\&quot;active\\\\\\&quot;,\\\\n \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;blockList\\\\\\&quot;,\\\\n \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;TR00000000000000000000001\\\\\\&quot;\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;h3&gt;Allowed combinations&lt;\\\/h3&gt;\\n&lt;p&gt;When creating a transaction rule, you must use a valid combination of rule restrictions, rule types, operations, and intervals. The following table shows a list of valid combinations.&lt;\\\/p&gt;\\n&lt;p&gt;To learn about the specific rule restriction, select the link to see the objects on API Explorer.&lt;\\\/p&gt;\\n&lt;div class=\\&quot;sticky-table-container\\&quot;&gt;\\n    \\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Rule restrictions&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Rule type&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Operation&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Interval type&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-activeNetworkTokens\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;activeNetworkTokens&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-brandVariants\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;brandVariants&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, maxUsage, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-countries\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;countries&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-differentCurrencies\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;differentCurrencies&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-entryModes\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;entryModes&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-internationalTransaction\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;internationalTransaction&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-matchingTransactions\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;matchingTransactions&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;maxUsage, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;daily, weekly, monthly, lifetime, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-mccs\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;mccs&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-merchants\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;merchants&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules__reqParam_ruleRestrictions-processingTypes\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;processingTypes&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;anyMatch, noneMatch&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-timeOfDay\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;timeOfDay&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;blockList, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/post\\\/transactionRules#request-ruleRestrictions-totalAmount\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;totalAmount&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;maxUsage, velocity&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;perTransaction, daily, weekly, monthly, lifetime, rolling, sliding&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n\\n&lt;\\\/div&gt;\\n\\n&quot;,&quot;altTitle&quot;:&quot;create-rule-api&quot;,&quot;oldTabId&quot;:&quot;create-rule-api_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>View transaction rules<\/h2>\n<p>You can see the transaction rules that you created on the <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> or by making API requests.<\/p>\n\n<div id=\"tabCLVzo\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Customer Area&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To view the transaction rules:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Log in to your &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Go to &lt;strong&gt;Financial products&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Transaction rules&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Select a specific rule ID to view the transaction rule details.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;p&gt;To view which transaction rules apply to a payment instrument:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Go to &lt;strong&gt;Financial products&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Payment instruments&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Select a specific payment instrument ID.&lt;\\\/li&gt;\\n&lt;li&gt;Go to the &lt;strong&gt;Related transaction rules&lt;\\\/strong&gt; section.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;ui&quot;,&quot;oldTabId&quot;:&quot;view-through-ui_1&quot;,&quot;relation&quot;:&quot;ui&quot;},{&quot;title&quot;:&quot;API request&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To view the transaction rules you have created, use the following API requests:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Purpose&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Endpoint&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Path parameter&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get the details of a specific rule&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/get\\\/transactionRules\\\/{transactionRuleId}\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/transactionRules\\\/{id}&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the transaction rule in the path.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get a list of all transaction rules configured on a balance account&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET&amp;nbsp; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/2\\\/get\\\/balanceAccounts\\\/(id)\\\/transactionRules\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/balanceAccounts\\\/{id}\\\/transactionRules&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the balance account in the path.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get a list of all transaction rules configured for an account holder&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET&amp;nbsp; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/2\\\/get\\\/accountHolders\\\/(id)\\\/transactionRules\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/accountHolders\\\/{id}\\\/transactionRules&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the account holder in the path.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get a list of all transaction rules configured on your balance platform&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET&amp;nbsp; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/2\\\/get\\\/balancePlatforms\\\/(id)\\\/transactionRules\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/balancePlatforms\\\/{id}\\\/transactionRules&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the balance platform in the path.&lt;\\\/td&gt;\\n&lt;td&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get a list of all transaction rules configured for a payment instrument&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/get\\\/paymentInstruments\\\/{id}\\\/transactionRules\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/paymentInstruments\\\/{id}\\\/transactionRules&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the payment instrument in the path.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Get a list of all transaction rules configured for a group of payment instruments&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;GET &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/get\\\/paymentInstrumentGroups\\\/{id}\\\/transactionRules\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/paymentInstrumentGroups\\\/{id}\\\/transactionRules&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Specify the &lt;code&gt;id&lt;\\\/code&gt; of the payment instrument group in the path.&lt;\\\/td&gt;\\n&lt;td&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;api&quot;,&quot;oldTabId&quot;:&quot;view-through-api_2&quot;,&quot;relation&quot;:&quot;api&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Override an existing transaction rule<\/h2>\n<p>When you have multiple transaction rules, Adyen applies these rules based on the existing <a href=\"\/pt\/issuing\/transaction-rules#hierarchy-for-transaction-rules\">rule hierarchy<\/a>. 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.<\/p>\n<p>To create a transaction rule that overrides an existing rule for a specific entity:<\/p>\n<ol>\n<li>\n<p>Make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/transactionRules<\/a> request. In addition to other parameters required to <a href=\"#create-a-transaction-rule\">create a rule<\/a>, specify the following:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules#request-entityKey\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">entityKey<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">An object that contains the ID and <a href=\"\/pt\/issuing\/authorisation\/transaction-rules#entity\">type<\/a> of entity for which you want to override a rule.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules#request-ruleRestrictions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ruleRestrictions<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The new rule restrictions you want to apply to the entity.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>overridesRule<\/code><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The ID of the transaction rule you want to override for the entity.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For example, you created a transaction rule to limit the number of transactions to a maximum of 50 transactions per month for all cards in your balance platform. Now, let's override this rule to allow a higher limit of 100 transactions per month for just one card.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Override a transaction rule'\" :id=\"'override-transaction-rule-request-issuing'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/bcl\\\/v2\\\/transactionRules \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;description\\&quot;: \\&quot;{hint:Human-readable rule description}Allow higher monthly transaction limit of 100 transactions for BA00000000000000000000001{\\\/hint}\\&quot;,\\n    \\&quot;entityKey\\&quot;: {\\n        \\&quot;entityReference\\&quot;: \\&quot;PI00000000000000000000001\\&quot;,\\n        \\&quot;entityType\\&quot;: \\&quot;paymentInstrument\\&quot;\\n    },\\n    \\&quot;interval\\&quot;: {\\n        \\&quot;type\\&quot;: \\&quot;monthly\\&quot;\\n    },\\n    \\&quot;outcomeType\\&quot;: \\&quot;hardBlock\\&quot;,\\n    \\&quot;reference\\&quot;: \\&quot;{hint:Your unique identifier for this resource}YOUR_REFERENCE{\\\/hint}\\&quot;,\\n    \\&quot;requestType\\&quot;: \\&quot;authorization\\&quot;,\\n    \\&quot;ruleRestrictions\\&quot;: {\\n        \\&quot;matchingTransactions\\&quot;: {\\n            \\&quot;operation\\&quot;: \\&quot;greaterThan\\&quot;,\\n            \\&quot;value\\&quot;: 100\\n        }\\n    },\\n    \\&quot;status\\&quot;: \\&quot;active\\&quot;,\\n    \\&quot;type\\&quot;: \\&quot;velocity\\&quot;,\\n    \\&quot;overridesRule\\&quot;: \\&quot;TR00000000000000000000001\\&quot;\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Note the response, which contains the new <span translate=\"no\"><strong>transactionRule<\/strong><\/span> resource, identified by its unique <code>id<\/code>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Response'\" :id=\"'override-transaction-rule-response'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n \\\"description\\\": \\\"Allow higher monthly transaction limit of 100 transactions for PI00000000000000000000001\\\",\\n \\\"entityKey\\\": {\\n     \\\"entityReference\\\": \\\"PI00000000000000000000001\\\",\\n     \\\"entityType\\\": \\\"paymentInstrument\\\"\\n },\\n \\\"interval\\\": {\\n     \\\"type\\\": \\\"monthly\\\"\\n },\\n \\\"outcomeType\\\": \\\"hardBlock\\\",\\n \\\"reference\\\": \\\"YOUR_REFERENCE\\\",\\n \\\"requestType\\\": \\\"authorization\\\",\\n \\\"ruleRestrictions\\\": {\\n     \\\"matchingTransactions\\\": {\\n         \\\"operation\\\": \\\"greaterThan\\\",\\n         \\\"value\\\": 100\\n     }\\n },\\n \\\"startDate\\\": \\\"2023-09-20T00:00:00+01:00\\\",\\n \\\"status\\\": \\\"active\\\",\\n \\\"type\\\": \\\"velocity\\\",\\n \\\"overridesRule\\\": \\\"TR00000000000000000000001\\\",\\n \\\"id\\\": \\\"TR00000000000000000000002\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h3>Skip a transaction rule<\/h3>\n<p>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:<\/p>\n<ol>\n<li>\n<p>Make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/transactionRules<\/a> request. In addition to other parameters required to <a href=\"#create-a-transaction-rule\">create a rule<\/a>, specify the following:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules#request-entityKey\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">entityKey<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">An object that contains the ID and type of entity for which you want to skip a rule.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules#request-ruleRestrictions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ruleRestrictions<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">Leave this empty.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/transactionRules#request-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The rule type. Set this to <strong>bypass<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>overridesRule<\/code><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The ID of the transaction rule you want to skip for the entity.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For example, you created a transaction rule to limit the number of transactions to a maximum of 50 transactions per month for all cards in your balance platform. Now, let's skip this rule for just one card, so that it has no maximum monthly transaction limit.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Skip a transaction rule'\" :id=\"'skip-transaction-rule-request-payouts'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/bcl\\\/v2\\\/transactionRules \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;description\\&quot;: \\&quot;{hint:Human-readable rule description}Skip payout limit for BA00000000000000000000001{\\\/hint}\\&quot;,\\n    \\&quot;entityKey\\&quot;: {\\n        \\&quot;entityReference\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n        \\&quot;entityType\\&quot;: \\&quot;balanceAccount\\&quot;\\n    },\\n    \\&quot;reference\\&quot;: \\&quot;{hint:Your unique identifier for this resource}YOUR_REFERENCE{\\\/hint}\\&quot;,\\n    \\&quot;requestType\\&quot;: \\&quot;bankTransfer\\&quot;,\\n    \\&quot;ruleRestrictions\\&quot;: {},\\n    \\&quot;status\\&quot;: \\&quot;active\\&quot;,\\n    \\&quot;type\\&quot;: \\&quot;bypass\\&quot;,\\n    \\&quot;overridesRule\\&quot;: \\&quot;TR00000000000000000000001\\&quot;\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Note the response, which contains the new <span translate=\"no\"><strong>transactionRule<\/strong><\/span> resource, identified by its unique <code>id<\/code>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Response'\" :id=\"'skip-transaction-rule-response'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n \\\"description\\\": \\\"Skip payout limit of 50 transactions for PI00000000000000000000001\\\",\\n \\\"entityKey\\\": {\\n     \\\"entityReference\\\": \\\"PI00000000000000000000001\\\",\\n     \\\"entityType\\\": \\\"paymentInstrument\\\"\\n },\\n \\\"reference\\\": \\\"YOUR_REFERENCE\\\",\\n \\\"requestType\\\": \\\"authorization\\\",\\n \\\"ruleRestrictions\\\": {},\\n \\\"status\\\": \\\"active\\\",\\n \\\"type\\\": \\\"bypass\\\",\\n \\\"overridesRule\\\": \\\"TR00000000000000000000001\\\",\\n \\\"id\\\": \\\"TR00000000000000000000002\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2>Update a transaction rule<\/h2>\n<p>To update a transaction rule:<\/p>\n<ol>\n<li>\n<p>Make a PATCH <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/balanceplatform\/latest\/patch\/transactionRules\/{transactionRuleId}\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/transactionRules\/{id}<\/a> request, specifying the <code>id<\/code> in the path.<\/p>\n<p>For example, to add the US to the <a href=\"\/pt\/issuing\/authorisation\/transaction-rules\/create-and-manage#create-transaction-rule-response\">previous transaction rule<\/a>, send the request below:<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Update a transaction rule'\" :id=\"'update-transaction-rule-request'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/bcl\\\/v2\\\/transactionRules\\\/TR3227C223222B5FCB756DV9H \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X PATCH \\\\\\n-d '{\\n    \\&quot;ruleRestrictions\\&quot;: {\\n        \\&quot;countries\\&quot;: {\\n            \\&quot;operation\\&quot;: \\&quot;noneMatch\\&quot;,\\n            \\&quot;value\\&quot;: [\\n                \\&quot;NL\\&quot;, \\&quot;US\\&quot;\\n            ]\\n        }\\n    }\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.balancePlatform.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.balancePlatform.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nCountriesRestriction countriesRestriction = new CountriesRestriction()\\n  .operation(\\&quot;noneMatch\\&quot;)\\n  .value(Arrays.asList(\\&quot;NL\\&quot;, \\&quot;US\\&quot;));\\n\\nTransactionRuleRestrictions transactionRuleRestrictions = new TransactionRuleRestrictions()\\n  .countries(countriesRestriction);\\n\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo()\\n  .ruleRestrictions(transactionRuleRestrictions);\\n\\n\\\/\\\/ Make the API call\\nTransactionRulesApi service = new TransactionRulesApi(client);\\nTransactionRule response = service.updateTransactionRule(\\&quot;transactionRuleId\\&quot;, transactionRuleInfo, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\BalancePlatform\\\\CountriesRestriction;\\nuse Adyen\\\\Model\\\\BalancePlatform\\\\TransactionRuleRestrictions;\\nuse Adyen\\\\Model\\\\BalancePlatform\\\\TransactionRuleInfo;\\nuse Adyen\\\\Service\\\\BalancePlatform\\\\TransactionRulesApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$countriesRestriction = new CountriesRestriction();\\n$countriesRestriction\\n  -&gt;setOperation(\\&quot;noneMatch\\&quot;)\\n  -&gt;setValue(array(\\&quot;NL\\&quot;, \\&quot;US\\&quot;));\\n\\n$transactionRuleRestrictions = new TransactionRuleRestrictions();\\n$transactionRuleRestrictions\\n  -&gt;setCountries($countriesRestriction);\\n\\n$transactionRuleInfo = new TransactionRuleInfo();\\n$transactionRuleInfo\\n  -&gt;setRuleRestrictions($transactionRuleRestrictions);\\n\\n\\\/\\\/ Make the API call\\n$service = new TransactionRulesApi($client);\\n$response = $service-&gt;updateTransactionRule('transactionRuleId', $transactionRuleInfo);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.4.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.BalancePlatform;\\nusing Adyen.Service.BalancePlatform;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nCountriesRestriction countriesRestriction = new CountriesRestriction\\n{\\n  Operation = \\&quot;noneMatch\\&quot;,\\n  Value = { \\&quot;NL\\&quot;, \\&quot;US\\&quot; }\\n};\\n\\nTransactionRuleRestrictions transactionRuleRestrictions = new TransactionRuleRestrictions\\n{\\n  Countries = countriesRestriction\\n};\\n\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo\\n{\\n  RuleRestrictions = transactionRuleRestrictions\\n};\\n\\n\\\/\\\/ Make the API call\\nvar service = new TransactionRulesService(client);\\nvar response = service.UpdateTransactionRule(\\&quot;transactionRuleId\\&quot;, transactionRuleInfo);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, BalancePlatformAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst transactionRuleInfo = {\\n  ruleRestrictions: {\\n    countries: {\\n      operation: \\&quot;noneMatch\\&quot;,\\n      value: [ \\&quot;NL\\&quot;, \\&quot;US\\&quot; ]\\n    }\\n  }\\n}\\n\\n\\\/\\\/ Make the API call\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\nconst response = balancePlatformAPI.TransactionRulesApi.updateTransactionRule(\\&quot;transactionRuleId\\&quot;, transactionRuleInfo);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.3.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/balancePlatform\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\ncountriesRestriction := balancePlatform.CountriesRestriction{\\n  Operation: \\&quot;noneMatch\\&quot;,\\n  Value: []string{\\n    \\&quot;NL\\&quot;, \\&quot;US\\&quot;,\\n  },\\n}\\n\\ntransactionRuleRestrictions := balancePlatform.TransactionRuleRestrictions{\\n  Countries: &amp;countriesRestriction,\\n}\\n\\ntransactionRuleInfo := balancePlatform.TransactionRuleInfo{\\n  RuleRestrictions: transactionRuleRestrictions,\\n}\\n\\n\\\/\\\/ Make the API call\\nservice := client.BalancePlatform()\\nreq := service.TransactionRulesApi.UpdateTransactionRuleInput(\\&quot;transactionRuleId\\&quot;).TransactionRuleInfo(transactionRuleInfo)\\nres, httpRes, err := service.TransactionRulesApi.UpdateTransactionRule(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;ruleRestrictions\\&quot;: {\\n    \\&quot;countries\\&quot;: {\\n      \\&quot;operation\\&quot;: \\&quot;noneMatch\\&quot;,\\n      \\&quot;value\\&quot;: [ \\&quot;NL\\&quot;, \\&quot;US\\&quot; ]\\n    }\\n  }\\n}\\n\\n# Make the API call\\nresult = adyen.balancePlatform.transaction_rules_api.update_transaction_rule(request=json_request, transactionRuleId=\\&quot;transactionRuleId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.3.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :ruleRestrictions =&gt; {\\n    :countries =&gt; {\\n      :operation =&gt; 'noneMatch',\\n      :value =&gt; [ 'NL', 'US' ]\\n    }\\n  }\\n}\\n\\n# Make the API call\\nresult = adyen.balancePlatform.transaction_rules_api.update_transaction_rule(request_body, 'transactionRuleId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, BalancePlatformAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst countriesRestriction: Types.balancePlatform.CountriesRestriction = {\\n  operation: \\&quot;noneMatch\\&quot;,\\n  value: [\\&quot;NL\\&quot;, \\&quot;US\\&quot;]\\n};\\n\\nconst transactionRuleRestrictions: Types.balancePlatform.TransactionRuleRestrictions = {\\n  countries: countriesRestriction\\n};\\n\\nconst transactionRuleInfo: Types.balancePlatform.TransactionRuleInfo = {\\n  ruleRestrictions: transactionRuleRestrictions\\n};\\n\\n\\\/\\\/ Make the API call\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\nconst response = balancePlatformAPI.TransactionRulesApi.updateTransactionRule(\\&quot;transactionRuleId\\&quot;, transactionRuleInfo);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>The response returns the updated transaction rule, along with <span translate=\"no\"><strong>NL<\/strong><\/span> and <span translate=\"no\"><strong>US<\/strong><\/span> in the list of countries.  If the location where the transaction is processed does not match either the NL or US, then the transaction is blocked.<\/p>\n<\/li>\n<\/ol>\n<h2>Activate or deactivate a transaction rule<\/h2>\n<p>You can activate or deactivate transaction rules using the <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> or by making API requests.<\/p>\n\n<div id=\"tab7hJjH\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Customer Area&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To deactivate a transaction rule:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Log in to your &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Go to &lt;strong&gt;Transaction rules&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Select the specific rule ID.&lt;\\\/li&gt;\\n&lt;li&gt;Select the &lt;strong&gt;Deactivate&lt;\\\/strong&gt; button.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;ui&quot;,&quot;oldTabId&quot;:&quot;deactivate-through-ui_1&quot;,&quot;relation&quot;:&quot;ui&quot;},{&quot;title&quot;:&quot;API request&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;You can deactivate or activate transaction rules for transfers by making API requests.&lt;\\\/p&gt;\\n&lt;h3&gt;To deactivate a transaction rule&lt;\\\/h3&gt;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make a PATCH &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/patch\\\/transactionRules\\\/{transactionRuleId}\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/transactionRules\\\/{id}&lt;\\\/a&gt; request and set the &lt;code&gt;status&lt;\\\/code&gt; to &lt;strong&gt;inactive&lt;\\\/strong&gt;.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Deactivate a transaction rule&#039;\\&quot; :id=\\&quot;&#039;deactivate-transaction-rule-request&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/balanceplatform-api-test.adyen.com\\\\\\\/bcl\\\\\\\/v2\\\\\\\/transactionRules\\\\\\\/TR3227C223222B5FCB756DV9H \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-X PATCH \\\\\\\\\\\\n-d &#039;{\\\\n   \\\\&amp;quot;status\\\\&amp;quot; : \\\\&amp;quot;inactive\\\\&amp;quot;\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v25.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.balancePlatform.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.service.balancePlatform.*;\\\\n\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo()\\\\n  .status(TransactionRuleInfo.StatusEnum.INACTIVE);\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nTransactionRulesApi service = new TransactionRulesApi(client);\\\\nTransactionRule response = service.updateTransactionRule(\\\\&amp;quot;transactionRuleId\\\\&amp;quot;, transactionRuleInfo, null);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v17.4.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\BalancePlatform\\\\\\\\TransactionRuleInfo;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\BalancePlatform\\\\\\\\TransactionRulesApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$transactionRuleInfo = new TransactionRuleInfo();\\\\n$transactionRuleInfo\\\\n  -&amp;gt;setStatus(\\\\&amp;quot;inactive\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\n$service = new TransactionRulesApi($client);\\\\n$response = $service-&amp;gt;updateTransactionRule(&#039;transactionRuleId&#039;, $transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v14.4.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.BalancePlatform;\\\\nusing Adyen.Service.BalancePlatform;\\\\n\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nTransactionRuleInfo transactionRuleInfo = new TransactionRuleInfo\\\\n{\\\\n  Status = TransactionRuleInfo.StatusEnum.Inactive\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nvar service = new TransactionRulesService(client);\\\\nvar response = service.UpdateTransactionRule(\\\\&amp;quot;transactionRuleId\\\\&amp;quot;, transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v16.2.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, BalancePlatformAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst transactionRuleInfo = {\\\\n  status: \\\\&amp;quot;inactive\\\\&amp;quot;\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\\\nconst response = balancePlatformAPI.TransactionRulesApi.updateTransactionRule(\\\\&amp;quot;transactionRuleId\\\\&amp;quot;, transactionRuleInfo);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v9.3.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/balancePlatform\\\\&amp;quot;\\\\n)\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\ntransactionRuleInfo := balancePlatform.TransactionRuleInfo{\\\\n  Status: common.PtrString(\\\\&amp;quot;inactive\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nservice := client.BalancePlatform()\\\\nreq := service.TransactionRulesApi.UpdateTransactionRuleInput(\\\\&amp;quot;transactionRuleId\\\\&amp;quot;).TransactionRuleInfo(transactionRuleInfo)\\\\nres, httpRes, err := service.TransactionRulesApi.UpdateTransactionRule(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.2.0\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;status\\\\&amp;quot;: \\\\&amp;quot;inactive\\\\&amp;quot;\\\\n}\\\\n\\\\n# Make the API call\\\\nresult = adyen.balancePlatform.transaction_rules_api.update_transaction_rule(request=json_request, transactionRuleId=\\\\&amp;quot;transactionRuleId\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.3.0\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :status =&amp;gt; &#039;inactive&#039;\\\\n}\\\\n\\\\n# Make the API call\\\\nresult = adyen.balancePlatform.transaction_rules_api.update_transaction_rule(request_body, &#039;transactionRuleId&#039;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v16.2.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, BalancePlatformAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst transactionRuleInfo: Types.balancePlatform.TransactionRuleInfo = {\\\\n  status: Types.balancePlatform.TransactionRuleInfo.StatusEnum.Inactive\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Make the API call\\\\nconst balancePlatformAPI = new BalancePlatformAPI(client);\\\\nconst response = balancePlatformAPI.TransactionRulesApi.updateTransactionRule(\\\\&amp;quot;transactionRuleId\\\\&amp;quot;, transactionRuleInfo);&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;The &lt;code&gt;status&lt;\\\/code&gt; of the rule changes to &lt;strong&gt;inactive&lt;\\\/strong&gt; and the rule is no longer applied.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;h3&gt;To activate an inactive transaction rule&lt;\\\/h3&gt;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make a PATCH &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/balanceplatform\\\/latest\\\/patch\\\/transactionRules\\\/{transactionRuleId}\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/transactionRules\\\/{id}&lt;\\\/a&gt; request and set the &lt;code&gt;status&lt;\\\/code&gt; to &lt;strong&gt;active&lt;\\\/strong&gt;.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Activate a transaction rule&#039;\\&quot; :id=\\&quot;&#039;activate-transaction-rule-request&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/balanceplatform-api-test.adyen.com\\\\\\\/bcl\\\\\\\/v2\\\\\\\/transactionRules\\\\\\\/TR3227C223222B5FCB756DV9H \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-X PATCH \\\\\\\\\\\\n-d &#039;{\\\\n   \\\\&amp;quot;status\\\\&amp;quot; : \\\\&amp;quot;active\\\\&amp;quot;\\\\n}&#039;&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;The &lt;code&gt;status&lt;\\\/code&gt; of the rule changes to &lt;strong&gt;active&lt;\\\/strong&gt; and the rule is applied.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;api&quot;,&quot;oldTabId&quot;:&quot;deactivate-through-api_2&quot;,&quot;relation&quot;:&quot;api&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>See also<\/h2>\n<ul>\n<li><a href=\"\/pt\/issuing\/transactions\">Track transactions<\/a><\/li>\n<li><a href=\"\/pt\/issuing\/authorisation\/relayed-authorisation\">Use relayed authorisation<\/a><\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation\/transaction-rules\/create-and-manage","articleFields":{"description":"Use transaction rules to automatically approve or decline a transaction.","feedback_component":true,"next_steps":[{"title":"Examples of transaction rules","description":"Find out how common use cases are defined as transaction rules.","url":"\/issuing\/authorisation\/transaction-rules\/examples","required":false}],"last_edit_on":"07-01-2025 15:06","parameters":{"directoryPath":"\/issuing","integrationType":"issuing"},"filters_component":false,"decision_tree":"[]","page_id":"9e3fb9d8-b752-4ea9-a510-22b4335b656b"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation\/transaction-rules\/create-and-manage","title":"Create and manage rules","content":"After you determine your business' requirements for evaluating and declining suspicious payout requests, you can use the  Configuration API to create and manage transaction rules that automatically evaluate every external payout. This page explains how to:\n\nCreate a transaction rule\nView existing transaction rules\nOverride existing transaction rules\nUpdate a transaction rule\n\nDeactivate or activate a transaction rule\n\n\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nAdyen Issuing\n\n\nAPI credential roles\nMake sure that you have access to the  Configuration API with following role: Bank Manage TransactionRules role\n\n\nWebhooks\nSubscribe to the following webhook(s): \n  Transfer webhooks\n\n  Transaction webhooks\n\n\n\nSetup steps\nBefore you begin: Make sure you are familiar with how transaction rules work\n\n\n\nCreate a transaction rule\nWhen you have defined your business logic and requirements, turn your requirements into a transaction rule. You can do this by using your Customer Area or by making an API request.\nThe following tabs explain both procedures.\n\n\n    \n        \n        \n    \n\n\nView transaction rules\nYou can see the transaction rules that you created on the Customer Area or by making API requests.\n\n\n    \n        \n        \n    \n\n\nOverride an existing transaction rule\nWhen 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.\nTo create a transaction rule that overrides an existing rule for a specific entity:\n\n\nMake a POST  \/transactionRules request. In addition to other parameters required to create a rule, specify the following:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n entityKey\n\nAn object that contains the ID and type of entity for which you want to override a rule.\n\n\n ruleRestrictions\n\nThe new rule restrictions you want to apply to the entity.\n\n\noverridesRule\n\nThe ID of the transaction rule you want to override for the entity.\n\n\n\nFor example, you created a transaction rule to limit the number of transactions to a maximum of 50 transactions per month for all cards in your balance platform. Now, let's override this rule to allow a higher limit of 100 transactions per month for just one card.\n\n\n\n\n\nNote the response, which contains the new transactionRule resource, identified by its unique id.\n\n\n\n\n\nSkip a transaction rule\nYou 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:\n\n\nMake a POST  \/transactionRules request. In addition to other parameters required to create a rule, specify the following:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n entityKey\n\nAn object that contains the ID and type of entity for which you want to skip a rule.\n\n\n ruleRestrictions\n\nLeave this empty.\n\n\n type\n\nThe rule type. Set this to bypass.\n\n\noverridesRule\n\nThe ID of the transaction rule you want to skip for the entity.\n\n\n\nFor example, you created a transaction rule to limit the number of transactions to a maximum of 50 transactions per month for all cards in your balance platform. Now, let's skip this rule for just one card, so that it has no maximum monthly transaction limit.\n\n\n\n\n\nNote the response, which contains the new transactionRule resource, identified by its unique id.\n\n\n\n\n\nUpdate a transaction rule\nTo update a transaction rule:\n\n\nMake a PATCH \/transactionRules\/{id} request, specifying the id in the path.\nFor example, to add the US to the previous transaction rule, send the request below:\n\n\n\n\n\nThe response returns the updated transaction rule, along with NL and US in the list of countries.  If the location where the transaction is processed does not match either the NL or US, then the transaction is blocked.\n\n\nActivate or deactivate a transaction rule\nYou can activate or deactivate transaction rules using the Customer Area or by making API requests.\n\n\n    \n        \n        \n    \n\n\nSee also\n\nTrack transactions\nUse relayed authorisation\n","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Adyen Issuing","lvl2":"Payment authorisation","lvl3":"Use transaction rules","lvl4":"Create and manage rules"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/issuing","lvl2":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation","lvl3":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation\/transaction-rules","lvl4":"\/pt\/issuing\/authorisation\/transaction-rules\/create-and-manage"},"levels":5,"category":"Issuing","category_color":"green","tags":["Create","manage","rules"]},"articleFiles":{"create-transaction-rule-request.js":"<p alt=\"\">create-transaction-rule-request.js<\/p>","deactivate-transaction-rule-request.js":"<p alt=\"\">deactivate-transaction-rule-request.js<\/p>","update-transaction-rule-request.js":"<p alt=\"\">update-transaction-rule-request.js<\/p>"}}
