Skip to Content
Docs

Risk lists

Create named lists of values, such as BINs, emails, or customers, use them in rule conditions, and manage them in the dashboard or the API.

A risk list is a named collection of values that rule conditions match against with the is in list and is not in list operators. Instead of adding each value as its own condition, you keep the values in one list and reference it from any rule.

For example, to block charges from 50 card BINs, add the BINs to one list and reference it in a single Block rule. When the BINs change, you update the list, and the rule stays the same.

When to use risk lists

Use a risk list when:

  • A condition has many possible values, such as a set of BINs or issuer countries.
  • More than one rule checks the same values.
  • You want to change the values without editing the rules.

For a single value, set it on the condition with the equals operator instead.

List types

A list's type sets which values it holds and which rule fields it works with. A Custom list works with any text field.

Type in the dashboardAPI typeValues
Billing Addressesbilling_addressBilling addresses
BINsbinCard BINs, the first 6 digits of the card number
Cardholder namescard_nameNames on the card
CustomcustomAny text
Customer reference IDscustomer_idYour customer_reference_id values
EmailsemailEmail addresses. Pay.com stores them in lowercase.
Email domainsemail_domainDomains only, such as example.com
IP Addressesip_addressIPv4 or IPv6 addresses
Issuer countriesissuer_countryTwo-letter country codes, such as US
Phone numbersphone_numberPhone numbers. Pay.com keeps the digits only.
Not offeredcardCards, added by pm_card_ or tok_card_ ID
Not offeredbank_accountBank accounts, added by bank account payment method ID, such as pm_us_bank_account_…

Pay.com also provides built-in lists. The card blacklist blocks cards, the bank account blacklist blocks bank accounts, the blocked customers list holds customers to block, and Excluded from block rules holds customers your Block rules skip. See Blocked payments.

Create a risk list

Create the list in the Pay.com dashboard, then add its values.

  1. 1

    Open the risk lists page

    Go to Rules → Risk Lists in the Pay.com dashboard and click Create List.

  2. 2

    Name the list and choose a type

    Give the list a name of up to 100 characters, such as "Blocked BINs". Then select the Type that matches the values you'll add.

  3. 3

    Add values

    Open the list and click +. Type the values, separated by commas or new lines, or upload a TXT file of values. Download sample file shows the format. For a Customer reference IDs list, you can also pick a customer.

A risk list has no effect until an enabled rule references it.

Use a list in a rule

Reference the list from any rule condition:

  1. 1

    Open or create a rule

    Go to the rule type under Rules, such as Payment, and open a rule or click Create new rule.

  2. 2

    Add a condition with the list operator

    Choose the field to match, such as Card BIN. For the operator, choose is in list or is not in list, and for the value, pick a list. The picker shows Custom lists and lists whose type fits the field.

  3. 3

    Save the rule

    Click Confirm & Save Rule. Pay.com now matches payments against the list's values.

Manage list values

You can add or remove values at any time. Changes apply right away to every rule that references the list, without editing the rules. The list page shows who added each value and when, and Used in Rules shows the rules that reference it. You can't delete a list that rules use.

Action rules can add values to lists automatically, for example the card of a payment a rule blocked.

Manage lists with the API

The value lists API manages the same lists. Create a list with POST /v1/value_lists, with a name, a unique alias, and a type, which defaults to custom. Then add values with POST /v1/value_lists/{list_id}/items.

{
  "value": "jane.smith@example.com",
  "metadata": {
    "order_id": "48213"
  }
}

Some list types check their values:

  • email values must be valid addresses, and they're stored in lowercase.
  • ip_address values must be valid IP addresses.
  • phone_number values keep their digits only. A value with a comma, a semicolon, or a line break returns 400.
  • card values must be pm_card_ or tok_card_ IDs. Pay.com stores the card itself and adds its bin, last_four_digits, brand, issuer_country, card_type, and issuer_name to the item's metadata.
  • bank_account values must be IDs of bank account payment methods on your account, such as pm_us_bank_account_296645958265997316. Pay.com stores the bank account itself and adds its last4, bank_name, country, and currency to the item's metadata.

Other types accept any text. Adding a value that's already in the list returns 400. For a card or a bank account, that includes another payment method saved for the same card or account.

RequestWhat it does
GET /v1/value_listsLists your lists by page, with page and limit, including the card and bank account blacklists.
GET /v1/value_lists/{list_id}/itemsLists a list's values, oldest first. Page through them with starting_after or ending_before and has_more.
PUT /v1/value_lists/{list_id}/items/{item_id}Changes a value and replaces its metadata.
DELETE /v1/value_lists/{list_id}/items/{item_id}Removes a value.
PUT /v1/value_lists/{list_id}Renames a list or changes its alias.
DELETE /v1/value_lists/{list_id}Deletes a list.

The aliases pm_card_blacklist, pm_bank_account_blacklist, and pm_sources_sync are reserved. To manage the blacklists, use their own endpoints, described in Block a card and Block a bank account.

Next steps

Was this page helpful?