Get all transaction rules for an account holder
Returns a list of transaction rules associated with an account holder.
The unique identifier of the account holder.
After submitting a call, you receive a response message to inform you that your request was received and processed.
Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.
HTTP Responses
- 200 - OK- The request has succeeded. transactionRulesarray[object]- List of transaction rules. aggregationLevelstring- The level at which data must be accumulated, used in rules with - typevelocity or maxUsage. The level must be the same or lower in hierarchy than the- entityKey.- If not provided, by default, the rule will accumulate data at the paymentInstrument level. - Possible values: paymentInstrument, paymentInstrumentGroup, balanceAccount, accountHolder, balancePlatform. descriptionstringMax length: 300- Your description for the transaction rule. endDatestring- The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, 2025-03-19T10:15:30+01:00. - If not provided, the rule will be evaluated until the rule status is set to inactive. entityKeyobject- The type and unique identifier of the resource to which the rule applies. entityReferencestring- The unique identifier of the resource. entityTypestring- The type of resource. - Possible values: balancePlatform, paymentInstrumentGroup, accountHolder, balanceAccount, or paymentInstrument. idstring- The unique identifier of the transaction rule. intervalobject- The time interval when the rule conditions apply. dayOfMonthinteger- The day of month, used when the - duration.unitis months. If not provided, by default, this is set to 1, the first day of the month.dayOfWeekstring- The day of week, used when the - duration.unitis weeks. If not provided, by default, this is set to monday.- Possible values: sunday, monday, tuesday, wednesday, thursday, friday. durationobject- The duration, which you can specify in hours, days, weeks, or months. The maximum duration is 90 days or an equivalent in other units. Required when the - typeis rolling or sliding.unitstring- The unit of time. You can only use minutes and hours if the - interval.typeis sliding.- Possible values: minutes, hours, days, weeks, or months valueinteger- The length of time by the unit. For example, 5 days. - The maximum duration is 90 days or an equivalent in other units. For example, 3 months. timeOfDaystring- The time of day, in hh:mm:ss format, used when the - duration.unitis hours. If not provided, by default, this is set to 00:00:00.timeZonestring- The time zone. For example, Europe/Amsterdam. By default, this is set to UTC. typestring- The type of interval during which the rule conditions and limits apply, and how often counters are reset. - Possible values: - perTransaction: conditions are evaluated and the counters are reset for every transaction.
- daily: the counters are reset daily at 00:00:00 CET.
- weekly: the counters are reset every Monday at 00:00:00 CET.
- monthly: the counters reset every first day of the month at 00:00:00 CET.
- lifetime: conditions are applied to the lifetime of the payment instrument.
- rolling: conditions are applied and the counters are reset based on a duration. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET.
- sliding: conditions are applied and the counters are reset based on the current time and a durationthat you specify.
 outcomeTypestring- The outcome that will be applied when a transaction meets the conditions of the rule. - Possible values: - 
hardBlock (default): the transaction is declined. 
- 
scoreBased: the transaction is assigned the scoreyou specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. This value is not allowed whenrequestTypeis bankTransfer.
- 
enforceSCA: your user is prompted to verify their identity using 3D Secure authentication. If the authentication fails or times out, the transaction is declined. This value is only allowed when requestTypeis authentication.
 referencestringMax length: 150- Your reference for the transaction rule. requestTypestring- Indicates the type of request to which the rule applies. If not provided, by default, this is set to authorization. - Possible values: authorization, authentication, tokenization, bankTransfer. ruleRestrictionsobject- Contains one or more objects that define the rule conditions. Each object must have a value and an operation which determines how the values must be evaluated. - For example, a - countriesobject can have a list of country codes ["US", "CA"] in the- valuefield and anyMatch in the- operationfield.activeNetworkTokensobject- The total number of tokens that a card can have across different kinds of digital wallets on the user's phones, watches, or other wearables. - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueinteger- The number of tokens. brandVariantsobject- List of card brand variants and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of card brand variants. - Possible values: - 
mc, mccredit, mccommercialcredit_b2b, mcdebit, mcbusinessdebit, mcbusinessworlddebit, mcprepaid, mcmaestro 
- 
visa, visacredit, visadebit, visaprepaid. 
 - You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use mc. The rule is applied to all payment instruments under mc, such as mcbusinessdebit and mcdebit. counterpartyBankobject- Contains a list of counterparty financial institutions and how they must be evaluated. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[object]- The list of counterparty bank institutions to be evaluated. countrystring- Two-character ISO 3166-1 alpha-2 country code. identificationstring- The bank identification code. identificationTypestring- The type of the identification. - Possible values: iban, routingNumber, sortCode, bic. counterpartyTypesobject- Contains a list of counterparty types and how they must be evaluated. - Supported operations: anyMatch, noneMatch. - Supported value inputs: - balanceAccount
- bankAccount
- card
- transferInstrument
 operationstring- Defines how the condition must be evaluated. valuearray[string]- The list of counterparty types to be evaluated. countriesobject- List of countries and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of two-character ISO 3166-1 alpha-2 country codes. dayOfWeekobject- List of week days and the operation. Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of days of the week. - Possible values: monday, tuesday, wednesday, thursday, friday, saturday, sunday. differentCurrenciesobject- Compares the currency of the payment against the currency of the payment instrument, and specifies the operation. - Supported operations: equals, notEquals. operationstring- Defines how the condition must be evaluated. valueboolean- Checks the currency of the payment against the currency of the payment instrument. - Possible values: - 
true: The currency of the payment is different from the currency of the payment instrument. 
- 
false: The currencies are the same. 
 entryModesobject- List of point-of-sale entry modes and the operation.. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of point-of-sale entry modes. - Possible values: barcode, chip, cof, contactless, magstripe, manual, ocr, server. internationalTransactionobject- Indicates whether transaction is an international transaction and specifies the operation. - Supported operations: equals, notEquals. operationstring- Defines how the condition must be evaluated. valueboolean- Boolean indicating whether transaction is an international transaction. - Possible values: - 
true: The transaction is an international transaction. 
- 
false: The transaction is a domestic transaction. 
 matchingTransactionsobject- The number of transactions and the operation. - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueinteger- The number of transactions. matchingValuesobject- Checks if a user has recently made multiple transfers with the specified values. - To use this restriction, you must: - 
Set the rule typeto velocity.
- 
Specify a time interval.
- 
Specify a number of matchingTransactions.
 - Supported operation: allMatch. - Supported value inputs: - merchantId and acquirerId
- amount and currency
- merchantName.
 operationstring- Defines how the condition must be evaluated. valuearray[string]mccsobject- List of merchant category codes (MCCs) and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of merchant category codes (MCCs). merchantNamesobject- List of names that will be compared to the merchant name according to the matching type. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[object]operationstring- The type of string matching operation. Possible values: startsWith, endsWith, isEqualTo, contains, valuestring- The string to be matched. merchantsobject- List of merchant ID and acquirer ID pairs, and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[object]- List of merchant ID and acquirer ID pairs. acquirerIdstring- The acquirer ID. merchantIdstring- The merchant identification number (MID). processingTypesobject- List of processing types and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]- List of processing types. - Possible values: atmWithdraw, balanceInquiry, ecommerce, moto, pos, recurring, token. riskScoresobject- Risk scores provided by specific sources. The same operation applies to all scores. - Current sources available: visa, mastercard - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueobjectmastercardinteger- Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). visainteger- Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). sameAmountRestrictionobject- Checks if a user has recently sent the same amount of funds in multiple transfers. - To use this restriction, you must: - 
Set the rule typeto velocity.
- 
Specify a time interval.
- 
Specify a number of matchingTransactions.
 - Supported operation: equals. operationstring- Defines how the condition must be evaluated. valuebooleansameCounterpartyRestrictionobject- Checks if a user has recently made multiple transfers to the same counterparty. - To use this restriction, you must: - 
Set the rule typeto velocity.
- 
Specify a time interval.
- 
Specify a number of matchingTransactions.
 - Supported operations: equals. operationstring- Defines how the condition must be evaluated. valuebooleansourceAccountTypesobject- Contains a list of source account types and how they must be evaluated. - Supported operations: anyMatch, noneMatch. - Supported value inputs: - balanceAccount
- businessAccount.
 operationstring- Defines how the condition must be evaluated. valuearray[string]- The list of source account types to be evaluated. timeOfDayobject- A start and end time in a time-only ISO-8601 extended offset format. Supported operations: equals, notEquals. operationstring- Defines how the condition must be evaluated. valueobjectendTimestring- The end time in a time-only ISO-8601 extended offset format. For example: 08:00:00+02:00, 22:30:00-03:00. startTimestring- The start time in a time-only ISO-8601 extended offset format. For example: 08:00:00+02:00, 22:30:00-03:00. tokenRequestorsobject- List of token requestor IDs and the operation. - Supported operations: anyMatch, noneMatch. operationstring- Defines how the condition must be evaluated. valuearray[string]totalAmountobject- The total amount and the operation. - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueobject- The amount value and currency. currencystring- The three-character ISO currency code. valueinteger- The amount of the transaction, in minor units. walletProviderAccountScoreobject- Checks the wallet account score. - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueintegerwalletProviderDeviceScoreobject- Wallet Provider Device Score and the operation. - Supported operations: equals, notEquals, greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan. operationstring- Defines how the condition must be evaluated. valueintegerwalletProviderDeviceTypeobject- Wallet Provider Device Type and the operation. - Supported operations: anyMatch, noneMatch. - Supported value inputs: - 
MOBILE_PHONE 
- 
TABLET_OR_EREADER 
- 
WATCH_OR_WRISTBAND 
- 
WEARABLE 
- 
CARD 
- 
PC 
- 
OTHER 
- 
UNKNOWN 
 operationstring- Defines how the condition must be evaluated. valuearray[string]scoreinteger- A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when - outcomeTypeis scoreBased. The value must be between -100 and 100.startDatestring- The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, 2025-03-19T10:15:30+01:00. - If not provided when creating a transaction rule, the - startDateis set to the date when the rule status is set to active.statusstring- The status of the transaction rule. If you provide a - startDatein the request, the rule is automatically created with an active status.- Possible values: active, inactive. typestring- The type of rule, which defines if a rule blocks transactions based on individual characteristics or accumulates data. - Possible values: - blockList: decline a transaction when the conditions are met.
- maxUsage: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.
- velocity: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.
 
- 400 - Bad Request- A problem reading or understanding the request. detailstring- A human-readable explanation specific to this occurrence of the problem. errorCodestring- A code that identifies the problem type. instancestring- A unique URI that identifies the specific occurrence of the problem. invalidFieldsarray[object]- Detailed explanation of each validation error, when applicable. namestring- The field that has an invalid value. valuestring- The invalid value. messagestring- Description of the validation error. requestIdstring- A unique reference for the request, essentially the same as - pspReference.responseobject- JSON response payload. statusinteger- The HTTP status code. titlestring- A short, human-readable summary of the problem type. typestring- A URI that identifies the problem type, pointing to human-readable documentation on this problem type. 
- 401 - Unauthorized- Authentication required. detailstring- A human-readable explanation specific to this occurrence of the problem. errorCodestring- A code that identifies the problem type. instancestring- A unique URI that identifies the specific occurrence of the problem. invalidFieldsarray[object]- Detailed explanation of each validation error, when applicable. namestring- The field that has an invalid value. valuestring- The invalid value. messagestring- Description of the validation error. requestIdstring- A unique reference for the request, essentially the same as - pspReference.responseobject- JSON response payload. statusinteger- The HTTP status code. titlestring- A short, human-readable summary of the problem type. typestring- A URI that identifies the problem type, pointing to human-readable documentation on this problem type. 
- 403 - Forbidden- Insufficient permissions to process the request. detailstring- A human-readable explanation specific to this occurrence of the problem. errorCodestring- A code that identifies the problem type. instancestring- A unique URI that identifies the specific occurrence of the problem. invalidFieldsarray[object]- Detailed explanation of each validation error, when applicable. namestring- The field that has an invalid value. valuestring- The invalid value. messagestring- Description of the validation error. requestIdstring- A unique reference for the request, essentially the same as - pspReference.responseobject- JSON response payload. statusinteger- The HTTP status code. titlestring- A short, human-readable summary of the problem type. typestring- A URI that identifies the problem type, pointing to human-readable documentation on this problem type. 
- 422 - Unprocessable Entity- A request validation error. detailstring- A human-readable explanation specific to this occurrence of the problem. errorCodestring- A code that identifies the problem type. instancestring- A unique URI that identifies the specific occurrence of the problem. invalidFieldsarray[object]- Detailed explanation of each validation error, when applicable. namestring- The field that has an invalid value. valuestring- The invalid value. messagestring- Description of the validation error. requestIdstring- A unique reference for the request, essentially the same as - pspReference.responseobject- JSON response payload. statusinteger- The HTTP status code. titlestring- A short, human-readable summary of the problem type. typestring- A URI that identifies the problem type, pointing to human-readable documentation on this problem type. 
- 500 - Internal Server Error- The server could not process the request. detailstring- A human-readable explanation specific to this occurrence of the problem. errorCodestring- A code that identifies the problem type. instancestring- A unique URI that identifies the specific occurrence of the problem. invalidFieldsarray[object]- Detailed explanation of each validation error, when applicable. namestring- The field that has an invalid value. valuestring- The invalid value. messagestring- Description of the validation error. requestIdstring- A unique reference for the request, essentially the same as - pspReference.responseobject- JSON response payload. statusinteger- The HTTP status code. titlestring- A short, human-readable summary of the problem type. typestring- A URI that identifies the problem type, pointing to human-readable documentation on this problem type.