{"title":"Use transaction rules","category":"default","creationDate":1571779440,"content":"<p>When your cardholders make payments to third-parties, you can protect your balance platform from risk by evaluating and declining suspicious authorization requests. You can use transaction rules to configure a logic that automatically declines an authorization that does not meet your business' requirements. Aside from payments, transaction rules can be applied to other activities of the cardholder, such as ATM withdrawals.<\/p>\n<p>We recommend that you use transaction rules to make decisions based on transaction data and static conditions, such as a fixed list of countries\/regions from which transactions must not be allowed.<\/p>\n<h2>Transaction rule creation<\/h2>\n<p>When creating transaction rules, you must determine the following:<\/p>\n<ol>\n<li>\n<p><strong>Criteria<\/strong>: The <a href=\"#criteria\">criteria<\/a> that determine when a transaction is evaluated with the rule. For example, if the transaction occurs in a specific time interval or if it applies to a specific resource in your balance platform. To define the rule criteria, you must consider the following:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Criterion<\/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=\"#request-type\">Request type<\/a><\/td>\n<td style=\"text-align: left;\">Defines the <code>type<\/code> of transfer request to which you want to apply the rule. Possible values: <strong>authorization<\/strong> (default), <strong>authentication<\/strong>, <strong>tokenization<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"#rule-types\">Rule type<\/a><\/td>\n<td style=\"text-align: left;\">Defines what data the rule must use to analyze the transaction and check whether it meets the conditions. The rule either uses only the data of the current transaction being analyzed, or uses accumulated data from previous transactions.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"#time-intervals\">Time interval<\/a><\/td>\n<td style=\"text-align: left;\">Defines the time period in which a transaction must meet the rule conditions.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"#entity\">Entity<\/a><\/td>\n<td style=\"text-align: left;\">Defines the balance platform resource to which the rule applies.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p><strong>Conditions<\/strong>: The <a href=\"#conditions\">conditions<\/a> that a transaction must meet for the rule's outcome to be applied. For example, if it contains certain request data.<\/p>\n<\/li>\n<li>\n<p><strong>Outcome<\/strong>: The <a href=\"#outcome\">outcome<\/a> to apply when the transaction is evaluated and meets the conditions of the rule, such as to decline the transaction or assign a risk score to it.<\/p>\n<\/li>\n<\/ol>\n<h2>How it works<\/h2>\n<ol>\n<li>\n<p>You create a transaction rule by defining the criteria, conditions, and outcome.<\/p>\n<\/li>\n<li>\nYour cardholder initiates a transaction using their Adyen-issued card.<\/li>\n<li>\n<p>If the transaction meets the criteria of the transaction rule, Adyen evaluates the transaction using the rule.<\/p>\n<\/li>\n<li>\n<p>If the transaction meets the conditions defined in the transaction rule, Adyen applies the outcome of the rule.<\/p>\n<\/li>\n<\/ol>\n<p>You can also combine transaction rules with <a href=\"\/pt\/issuing\/authorisation\/relayed-authorisation\">relayed authorisation<\/a>. When combined, Adyen evaluates transaction rules first before sending the relayed authorisation webhook to your server. This means that when a transaction is already declined by transaction rules, you will not get a relayed authorisation webhook.<\/p>\n<h2>Criteria<\/h2>\n<h3>Request types<\/h3>\n<p>The request type defines the type of transfer requests to which you want to apply a rule. When you send a request to the POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfers\/latest\/overview\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Transfers API<\/a> endpoint, Adyen evaluates the request and categorizes it as one of the following request types:<\/p>\n<ol>\n<li><strong>authorization<\/strong>: a request to authorize a payment. For more information, see <a href=\"\/pt\/issuing\/authorisation\">Payment authorisation<\/a>.<\/li>\n<li><strong>authentication<\/strong>: a request to authenticate your cardholder's identity. This is an authorisation request with SCA parameters included in the header. For more information, see <a href=\"\/pt\/issuing\/3d-secure\/oob-auth-sdk\">Out-of-band authentication<\/a>.<\/li>\n<li><strong>tokenization<\/strong>: a request to tokenize your cardholder's details for recurring payments. For more information, see <a href=\"\/pt\/issuing\/manage-network-tokens\">Network Tokens<\/a>.<\/li>\n<\/ol>\n<p>When you create a transaction rule, you can choose the request types to which the rule applies.<\/p>\n<h3 id=\"rule-types\">Rule types<\/h3>\n<p>The rule type defines what data the rule uses to analyze and decide the outcome of a transfer request. Adyen can use the data of the current transfer, or use accumulated data from previous transfers.<\/p>\n<p>The following rule types are available:<\/p>\n<ul>\n<li>Blocklist: decline a transfer if it meets the specified <a href=\"#conditions\">conditions<\/a>. <\/li>\n<li>Maximum usage: 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.\n<\/li>\n<li>Velocity: decline a transaction if a set amount of accumulated previous transactions have met the specified <a href=\"#conditions\">conditions<\/a>. Adyen only considers previous transactions within a specified <a href=\"#time-intervals\">time interval<\/a> and <a href=\"#accumulate-data\">aggregation level<\/a>. <\/li>\n<\/ul>\n<h3 id=\"time-intervals\">Time intervals<\/h3>\n<p>The time interval defines the period when the rule conditions and outcome apply. When using a <strong>velocity<\/strong> <a href=\"#rule-types\">rule type<\/a> which looks at accumulated data, the time interval also determines when the accumulated count or value is reset.<\/p>\n<p>The interval also determines when counters are reset if the rule is accumulating data.<\/p>\n<p>The following types of time intervals are available:<\/p>\n<table>\n    <thead>\n        <tr>\n            <th>Type of time interval<\/th>\n            <th>Description<\/th>\n            <th>Example<\/th>\n        <\/tr>\n    <\/thead>\n    <tbody>\n                <tr>\n            <td>\n<p><b>Lifetime<\/b><\/p>\n<\/td>\n            <td>\n<p>The rule uses data from the entire lifetime of the card.<br><br><\/p>\n<\/td>\n            <td>\n<p>You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 for the entire lifetime of their Adyen-issued card..<\/p>\n<\/td>\n        <\/tr>\n                <tr>\n            <td>\n<p><b>Per transaction<\/b><\/p>\n<\/td>\n            <td>\n                The rule only uses data from the current transfer to make a decision.<br><br>\n                The outcome also applies only to the current transfer request.\n            <\/td>\n            <td>\n<p>You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 per transfer request.<\/p>\n<\/td>\n        <\/tr>\n        <tr>\n            <td>\n<p><b>Fixed interval<\/b><\/p>\n<\/td>\n            <td>\n                The rule uses data from transfers made within the specified time interval, such as the ongoing day, week, or month.<br>\n                The outcome applies to the current transfer and all following transfers until the end of the interval.\n            <\/td>\n            <td>\n                You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a01000 from their account in a day. In this case, Adyen accumulates the data of all the outgoing transfers from that account within the current day.<br>\n                If the cardholder exceeds the EUR\u00a01000 limit, all subsequent transfer request are declined until the next day.\n            <\/td>\n        <\/tr>\n        <tr>\n            <td>\n<p><b>Rolling interval<\/b><\/p>\n<\/td>\n            <td>\n                The rule uses conditions that are applied and counters are reset based on a start time, timezone, and duration that you define.<br>\n                The outcome applies to the current transfer and all following transfers until the end of the interval.\n            <\/td>\n            <td>\n                You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 from their account within a week. You can specify a schedule for that week that starts every Monday, for a duration of seven days.<br>\n                If the cardholder exceeds the EUR\u00a05000 limit, all subsequent transfer requests are declined until the start of the next week.\n            <\/td>\n        <\/tr>\n        <tr>\n            <td>\n<p><b>Sliding interval<\/b><\/p>\n<\/td>\n            <td>\n                The rule uses data from transfers that occurred within a specified time interval previous to the current transfer. For example, Adyen can check transfers made in the previous minutes, hours, or days.<br>\n                The outcome applies to the current transfer and all following transfer requests until the specified interval ends.\n            <\/td>\n            <td>\n                You can set a rule that allows a cardholder to make a maximum of five transfer requests within an hour. If the\n                cardholder makes five transfer requests in less than an hour, all subsequent transfers are declined until the next hour.\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<h3 id=\"entity\">Entity to which the rule applies<\/h3>\n<p>Each transaction rule must be applied to only one resource.<\/p>\n<p>You can apply a transaction rule to any of the following resources:<\/p>\n<ul>\n<li>A balance account: the rule applies to all cards linked to the balance account.<\/li>\n<li>An account holder: the rule applies to all cards of the account holder.<\/li>\n<li>A payment instrument: the rule only applies to one card.<\/li>\n<li>A payment instrument group: the rule applies to all cards in the group.<\/li>\n<li>A balance platform: the rule applies to all cards in your balance platform.<\/li>\n<\/ul>\n<p>If multiple rules apply to a card, Adyen prioritizes the rules according to the <a href=\"#hierarchy-for-transaction-rules\">hierarchy of transaction rules<\/a>. The transaction is blocked if it meets the conditions of a rule with a hard-block outcome.<\/p>\n<h4 id=\"accumulate-data\">Aggregating total amount or number of transactions<\/h4>\n<p>When accumulating the amount or number of transactions, you can also specify at which level the data should be accumulated.<\/p>\n<p>You can accumulate data based on different levels:<\/p>\n<ul>\n<li>The payment instrument level. This is the default.<\/li>\n<li>The payment instrument group level.<\/li>\n<li>The balance account level.<\/li>\n<li>The account holder level.<\/li>\n<li>The balance platform level.<\/li>\n<\/ul>\n<p>You can only aggregate values at the same or below the level of the entity to which the rule applies. For example, if the transaction rule applies to a balance account, then you can only aggregate values for the balance account or for individual payment instruments but not at the account holder level.<\/p>\n<p>When aggregating amounts, we convert all transaction amounts to the default currency of the account holder or balance platform.<\/p>\n<h2 id=\"conditions\">Conditions<\/h2>\n<p>Conditions define the data that a transaction must contain for the outcome to be applied. Transaction rules check whether the transaction meets all of the conditions before accepting or declining the transaction. We refer to these conditions as <em>rule restrictions<\/em>.<\/p>\n<p>A rule restrictions consists of the following:<\/p>\n<ul>\n<li>\n<p><code>value<\/code>: one or more types of transaction data that a transaction must or must not contain, such as the total amount, the counterparty, the counterparty's bank IBAN number, or the source account type.<\/p>\n<\/li>\n<li>\n<p><code>operation<\/code>: the operation type, which determines how a transaction's data must be evaluated against the values specified in the <code>value<\/code> array. For example:<\/p>\n<ul>\n<li>\nThe transaction's counterparty can <i>Match<\/i> the counterparty you specify in <code>value<\/code>.\n<\/li>\n<li>\nThe counterparty IBAN number in the transaction request <i>Does not match<\/i> the counterparty bank IBAN number you specify in <code>value<\/code>.\n<\/li>\n<li>The total amount of the transaction <em>Equals<\/em>, is <em>greater than or equal to<\/em>, or is <em>less than<\/em> the total amount you specify in <code>value<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>See <a href=\"\/pt\/issuing\/authorisation\/transaction-rules\/create-and-manage#allowed-combinations\">allowed combinations<\/a> of values and operations.<\/p>\n<h2 id=\"outcome\">Outcome<\/h2>\n<p>The outcome determines what Adyen does when a transaction meets the conditions of a rule. Depending on your use case, you can configure the following types of outcomes:<\/p>\n<ul>\n<li><a href=\"#hard-block-outcome\">Hard-block<\/a> outcome<\/li>\n<li><a href=\"#score-based-outcome\">Score-based<\/a> outcome<\/li>\n<li><a href=\"#enforce-sca-outcome\">Enforce SCA<\/a> outcome<\/li>\n<\/ul>\n<h3>Hard-block outcome<\/h3>\n<p>The hard-block outcome declines a transaction when it meets the conditions of a rule.<\/p>\n<h3>Score-based outcome<\/h3>\n<p>A score-based outcome assigns a score to a transaction. When configuring this outcome, you must specify a score between -100 and 100.<\/p>\n<p>When evaluating transaction, Adyen adds up the scores of all the triggered score-based outcomes. If the total score is higher than 100, the transaction is declined.<\/p>\n<p>To decide on the outcome, consider your <a href=\"\/pt\/issuing\/authorisation\/transaction-rules\/examples\">use cases<\/a>. For example, if a payment does not have a CVC but comes from a known merchant, you may want to assign a score to the payment instead of blocking it.<\/p>\n<h3>Enforce SCA outcome<\/h3>\n<p>When a transaction meets the conditions of a rule, the enforce SCA outcome prompts your cardholder to verify their identity using <a href=\"\/pt\/issuing\/3d-secure\/oob-auth-sdk\/\">Strong Customer Authentication (SCA)<\/a>. If the authentication fails or times out, the transaction is declined.<\/p>\n<p>You can only use this outcome type when the <code>requestType<\/code> is set to <strong>authentication<\/strong>.<\/p>\n<h2>Hierarchy for transaction rules<\/h2>\n<p>You can create a rule with one or more conditions, and apply one or more rules to an entity. When your<\/p>\ncardholder makes a transaction, Adyen evaluates all of the applicable rules.\n<h3>Multiple conditions<\/h3>\n<p>If you have multiple conditions within one rule, Adyen applies the outcome if the transaction meets all the conditions within the rule.<\/p>\n<h3>Multiple rules<\/h3>\n<p>If you have multiple rules tied to an entity, Adyen evaluates all the rules, and applies the outcome based on the hierarchy of the outcome type. The hierarchy we follow depends on the transaction's <code>requestType<\/code>:<\/p>\n\n<div id=\"tabw7hTW\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Authorization or Tokenization&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if the transaction meets the conditions of at least one rule with a &lt;strong&gt;hardBlock&lt;\\\/strong&gt; outcome type.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If it meets the conditions, we decline the transaction, and stop evaluating the rules.&lt;\\\/li&gt;\\n&lt;li&gt;If it does not meet the conditions, we further evaluate the rules.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if the transaction meets the conditions of at least one rule with a &lt;strong&gt;scoreBased&lt;\\\/strong&gt; outcome type, and calculates the risk score as defined in the rule.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If the risk score is above 100, we decline the transaction, and stop evaluating the rules.&lt;\\\/li&gt;\\n&lt;li&gt;If the risk score is below 100, we process the transaction.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;authorization_or_tokenization_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Authentication&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if the transaction meets the conditions of at least one rule with a &lt;strong&gt;hardBlock&lt;\\\/strong&gt; outcome type.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If it meets the conditions, we decline the transaction, and stop evaluating the rules.&lt;\\\/li&gt;\\n&lt;li&gt;If it does not meet the conditions, we further evaluate the rules.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if the transaction meets the conditions of at least one rule with a &lt;strong&gt;enforceSCA&lt;\\\/strong&gt; outcome type.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If it meets the conditions, the cardholder must verify their identity. If the verification fails, we decline the transaction and stop evaluating the rules. If the verification is successful, we process the transaction.&lt;\\\/li&gt;\\n&lt;li&gt;If it does not meet the conditions, we further evaluate the rules.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if Risk Based Analysis (RBA) and Transaction Risk Analysis (TRA) exemptions are allowed for your cardholder. For more information about these exemptions, reach out to your Adyen contact.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If the exemptions are &lt;em&gt;not&lt;\\\/em&gt; allowed, the cardholder must verify their identity. If the verification fails, we decline the transaction and stop evaluating the rules. If the verification is successful, we process the transaction.&lt;\\\/li&gt;\\n&lt;li&gt;If the exemptions are allowed, we further evaluate the rules.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Adyen checks if the transaction meets the conditions of at least one rule with a &lt;strong&gt;scoreBased&lt;\\\/strong&gt; outcome type, and calculates the risk score as defined in the rule.&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;If the risk score is above 100, the cardholder must verify their identity. If the verification fails, we decline the transaction and stop evaluating the rules. If the verification is successful, we process the transaction.&lt;\\\/li&gt;\\n&lt;li&gt;If the risk score is below 100, we process the transaction.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;authentication_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<p>You can create transaction rules that override other transaction rules in specific circumstances, such as for a specific balance platform resource. For more information, see <a href=\"\/pt\/issuing\/transaction-rules\/create-and-manage#override-an-existing-transaction-rule\">Override a transaction rule<\/a>.<\/p>\n<h2>Get updates when a rule is triggered<\/h2>\n<p>To get updated about payouts that are declined because they triggered one or more transaction rules, you can use either webhook notifications or the Customer Area:<\/p>\n<ul>\n<li>Subscribe to the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfer-webhooks\/latest\/overview\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Transfer webhooks<\/a>. The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfer-webhooks\/latest\/post\/balancePlatform.transfer.created#request-data-transactionRulesResult\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">transactionRulesResult<\/a> object contains the details of all the transactions rules that the payout triggered. The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfer-webhooks\/latest\/post\/balancePlatform.transfer.created#request-data-reason\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">reason<\/a> field returns <strong>declinedByTransactionRule<\/strong>.<\/li>\n<li>In your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>, go to <strong>Transactions<\/strong> &gt; <strong>Transfers<\/strong>, and click on a declined transaction. You can see all the transactions rules that the transaction triggered.<\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation\/transaction-rules","articleFields":{"description":"Evaluate transactions with predefined conditions and outcomes.","feedback_component":true,"next_steps":[{"title":"Create transaction rules","description":"Send an API request to create transaction rules.","url":"\/issuing\/authorisation\/transaction-rules\/create-and-manage","required":true},{"title":"Transaction rule examples","description":"See examples of transaction rules applied to use cases.","url":"\/issuing\/authorisation\/transaction-rules\/examples","required":false}],"last_edit_on":"04-04-2022 12:45","parameters":{"directoryPath":"\/issuing","integrationType":"issuing"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/issuing\/authorisation\/transaction-rules","title":"Use transaction rules","content":"When your cardholders make payments to third-parties, you can protect your balance platform from risk by evaluating and declining suspicious authorization requests. You can use transaction rules to configure a logic that automatically declines an authorization that does not meet your business' requirements. Aside from payments, transaction rules can be applied to other activities of the cardholder, such as ATM withdrawals.\nWe recommend that you use transaction rules to make decisions based on transaction data and static conditions, such as a fixed list of countries\/regions from which transactions must not be allowed.\nTransaction rule creation\nWhen creating transaction rules, you must determine the following:\n\n\nCriteria: The criteria that determine when a transaction is evaluated with the rule. For example, if the transaction occurs in a specific time interval or if it applies to a specific resource in your balance platform. To define the rule criteria, you must consider the following:\n\n\n\nCriterion\nDescription\n\n\n\n\nRequest type\nDefines the type of transfer request to which you want to apply the rule. Possible values: authorization (default), authentication, tokenization.\n\n\nRule type\nDefines what data the rule must use to analyze the transaction and check whether it meets the conditions. The rule either uses only the data of the current transaction being analyzed, or uses accumulated data from previous transactions.\n\n\nTime interval\nDefines the time period in which a transaction must meet the rule conditions.\n\n\nEntity\nDefines the balance platform resource to which the rule applies.\n\n\n\n\n\nConditions: The conditions that a transaction must meet for the rule's outcome to be applied. For example, if it contains certain request data.\n\n\nOutcome: The outcome to apply when the transaction is evaluated and meets the conditions of the rule, such as to decline the transaction or assign a risk score to it.\n\n\nHow it works\n\n\nYou create a transaction rule by defining the criteria, conditions, and outcome.\n\n\nYour cardholder initiates a transaction using their Adyen-issued card.\n\nIf the transaction meets the criteria of the transaction rule, Adyen evaluates the transaction using the rule.\n\n\nIf the transaction meets the conditions defined in the transaction rule, Adyen applies the outcome of the rule.\n\n\nYou can also combine transaction rules with relayed authorisation. When combined, Adyen evaluates transaction rules first before sending the relayed authorisation webhook to your server. This means that when a transaction is already declined by transaction rules, you will not get a relayed authorisation webhook.\nCriteria\nRequest types\nThe request type defines the type of transfer requests to which you want to apply a rule. When you send a request to the POST  Transfers API endpoint, Adyen evaluates the request and categorizes it as one of the following request types:\n\nauthorization: a request to authorize a payment. For more information, see Payment authorisation.\nauthentication: a request to authenticate your cardholder's identity. This is an authorisation request with SCA parameters included in the header. For more information, see Out-of-band authentication.\ntokenization: a request to tokenize your cardholder's details for recurring payments. For more information, see Network Tokens.\n\nWhen you create a transaction rule, you can choose the request types to which the rule applies.\nRule types\nThe rule type defines what data the rule uses to analyze and decide the outcome of a transfer request. Adyen can use the data of the current transfer, or use accumulated data from previous transfers.\nThe following rule types are available:\n\nBlocklist: decline a transfer if it meets the specified conditions. \nMaximum usage: 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.\n\nVelocity: 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. \n\nTime intervals\nThe time interval defines the period when the rule conditions and outcome apply. When using a velocity rule type which looks at accumulated data, the time interval also determines when the accumulated count or value is reset.\nThe interval also determines when counters are reset if the rule is accumulating data.\nThe following types of time intervals are available:\n\n    \n        \n            Type of time interval\n            Description\n            Example\n        \n    \n    \n                \n            \nLifetime\n\n            \nThe rule uses data from the entire lifetime of the card.\n\n            \nYou can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 for the entire lifetime of their Adyen-issued card..\n\n        \n                \n            \nPer transaction\n\n            \n                The rule only uses data from the current transfer to make a decision.\n                The outcome also applies only to the current transfer request.\n            \n            \nYou can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 per transfer request.\n\n        \n        \n            \nFixed interval\n\n            \n                The rule uses data from transfers made within the specified time interval, such as the ongoing day, week, or month.\n                The outcome applies to the current transfer and all following transfers until the end of the interval.\n            \n            \n                You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a01000 from their account in a day. In this case, Adyen accumulates the data of all the outgoing transfers from that account within the current day.\n                If the cardholder exceeds the EUR\u00a01000 limit, all subsequent transfer request are declined until the next day.\n            \n        \n        \n            \nRolling interval\n\n            \n                The rule uses conditions that are applied and counters are reset based on a start time, timezone, and duration that you define.\n                The outcome applies to the current transfer and all following transfers until the end of the interval.\n            \n            \n                You can set a rule that allows a cardholder to transfer a maximum of EUR\u00a05000 from their account within a week. You can specify a schedule for that week that starts every Monday, for a duration of seven days.\n                If the cardholder exceeds the EUR\u00a05000 limit, all subsequent transfer requests are declined until the start of the next week.\n            \n        \n        \n            \nSliding interval\n\n            \n                The rule uses data from transfers that occurred within a specified time interval previous to the current transfer. For example, Adyen can check transfers made in the previous minutes, hours, or days.\n                The outcome applies to the current transfer and all following transfer requests until the specified interval ends.\n            \n            \n                You can set a rule that allows a cardholder to make a maximum of five transfer requests within an hour. If the\n                cardholder makes five transfer requests in less than an hour, all subsequent transfers are declined until the next hour.\n            \n        \n    \n\nEntity to which the rule applies\nEach transaction rule must be applied to only one resource.\nYou can apply a transaction rule to any of the following resources:\n\nA balance account: the rule applies to all cards linked to the balance account.\nAn account holder: the rule applies to all cards of the account holder.\nA payment instrument: the rule only applies to one card.\nA payment instrument group: the rule applies to all cards in the group.\nA balance platform: the rule applies to all cards in your balance platform.\n\nIf multiple rules apply to a card, Adyen prioritizes the rules according to the hierarchy of transaction rules. The transaction is blocked if it meets the conditions of a rule with a hard-block outcome.\nAggregating total amount or number of transactions\nWhen accumulating the amount or number of transactions, you can also specify at which level the data should be accumulated.\nYou can accumulate data based on different levels:\n\nThe payment instrument level. This is the default.\nThe payment instrument group level.\nThe balance account level.\nThe account holder level.\nThe balance platform level.\n\nYou can only aggregate values at the same or below the level of the entity to which the rule applies. For example, if the transaction rule applies to a balance account, then you can only aggregate values for the balance account or for individual payment instruments but not at the account holder level.\nWhen aggregating amounts, we convert all transaction amounts to the default currency of the account holder or balance platform.\nConditions\nConditions define the data that a transaction must contain for the outcome to be applied. Transaction rules check whether the transaction meets all of the conditions before accepting or declining the transaction. We refer to these conditions as rule restrictions.\nA rule restrictions consists of the following:\n\n\nvalue: one or more types of transaction data that a transaction must or must not contain, such as the total amount, the counterparty, the counterparty's bank IBAN number, or the source account type.\n\n\noperation: the operation type, which determines how a transaction's data must be evaluated against the values specified in the value array. For example:\n\n\nThe transaction's counterparty can Match the counterparty you specify in value.\n\n\nThe counterparty IBAN number in the transaction request Does not match the counterparty bank IBAN number you specify in value.\n\nThe total amount of the transaction Equals, is greater than or equal to, or is less than the total amount you specify in value.\n\n\n\nSee allowed combinations of values and operations.\nOutcome\nThe outcome determines what Adyen does when a transaction meets the conditions of a rule. Depending on your use case, you can configure the following types of outcomes:\n\nHard-block outcome\nScore-based outcome\nEnforce SCA outcome\n\nHard-block outcome\nThe hard-block outcome declines a transaction when it meets the conditions of a rule.\nScore-based outcome\nA score-based outcome assigns a score to a transaction. When configuring this outcome, you must specify a score between -100 and 100.\nWhen evaluating transaction, Adyen adds up the scores of all the triggered score-based outcomes. If the total score is higher than 100, the transaction is declined.\nTo decide on the outcome, consider your use cases. For example, if a payment does not have a CVC but comes from a known merchant, you may want to assign a score to the payment instead of blocking it.\nEnforce SCA outcome\nWhen a transaction meets the conditions of a rule, the enforce SCA outcome prompts your cardholder to verify their identity using Strong Customer Authentication (SCA). If the authentication fails or times out, the transaction is declined.\nYou can only use this outcome type when the requestType is set to authentication.\nHierarchy for transaction rules\nYou can create a rule with one or more conditions, and apply one or more rules to an entity. When your\ncardholder makes a transaction, Adyen evaluates all of the applicable rules.\nMultiple conditions\nIf you have multiple conditions within one rule, Adyen applies the outcome if the transaction meets all the conditions within the rule.\nMultiple rules\nIf you have multiple rules tied to an entity, Adyen evaluates all the rules, and applies the outcome based on the hierarchy of the outcome type. The hierarchy we follow depends on the transaction's requestType:\n\n\n    \n        \n        \n    \n\n\nYou can create transaction rules that override other transaction rules in specific circumstances, such as for a specific balance platform resource. For more information, see Override a transaction rule.\nGet updates when a rule is triggered\nTo get updated about payouts that are declined because they triggered one or more transaction rules, you can use either webhook notifications or the Customer Area:\n\nSubscribe to the  Transfer webhooks. The  transactionRulesResult object contains the details of all the transactions rules that the payout triggered. The  reason field returns declinedByTransactionRule.\nIn your Customer Area, go to Transactions &gt; Transfers, and click on a declined transaction. You can see all the transactions rules that the transaction triggered.\n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Adyen Issuing","lvl2":"Payment authorisation","lvl3":"Use transaction 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":"\/pt\/issuing\/authorisation\/transaction-rules"},"levels":4,"category":"Issuing","category_color":"green","tags":["transaction","rules"]}}
