Skip to Content
Docs

Fields you can route on

Routing-specific fields, merchant context, and pre-authorization limits for routing rules in the Pay.com dashboard.

Routing rules use the same dashboard condition builder as payment rules, so the shared fields and operators in Rule conditions and operators work in routing rules too. The rule builder displays each field by its dashboard label and lists only the fields enabled on your account.

Common routing fields

In addition to routing-specific fields, routing rules commonly evaluate shared amount, card, and customer fields before authorization:

GroupDashboard fieldsHow Pay.com evaluates them
Amount and currencyAmount (in Processing currency), Amount (in USD), CurrencyConditions compare amounts in major units (for example, 80.00 for an $80.00 charge, not the API's minor units 8000). Converted amounts use Pay.com's daily exchange rates. If no rate exists for the payment's currency, the converted field is empty and doesn't match.
Card and walletCard BIN, Card brand, Card funding, Card category, Issuer name, Card country, Digital WalletThe card fields come from the card's BIN, so they're set for cards, Apple Pay, and Google Pay. Digital Wallet comes from the payment method and holds the wallet the card was used through.
Customer and addressCustomer Reference ID, Email, Cardholder billing country, Cardholder shipping countryPopulated from the customer, billing, and shipping details sent with the payment.

Routing rules can also use these fields:

FieldWhat it evaluates
Amount in EURThe amount converted to euros with Pay.com's daily exchange rates and rounded to two decimals.
Card continentThe continent of the card's issuing country, from the card's BIN.
New cardWhether the card isn't saved for this customer yet.
New customerWhether the customer's first payment with you is less than a week old.
First paymentWhether this is the customer's first payment with you.

For the full list of shared fields and comparison operators, see Rule conditions and operators.

Metadata and merchant context

Any key you send in the payment's metadata is available to rules under Metadata as metadata.<key>. For a payment session, that includes the keys Pay.com.js adds from the checkout page, which carry a checkout_ prefix. See Custom data for routing.

To show a metadata key in the rule builder with its own label and type, add it as a merchant context field. Go to Settings → Product Settings → Rule Inputs → Merchant Context, click Add Field, and enter the Metadata Key, a Label, and a Field Type (Text, Number, Select, Boolean, or Date). The field then appears in the rule builder under Merchant Context. You can't delete a merchant context field while a rule uses it.

Pay.com gives no metadata key a built-in meaning. A key such as product_line routes payments to a settlement account only if a routing rule matches it, for example a rule that routes payments where metadata.product_line equals "enterprise" to a dedicated settlement account.

Previous settlement account

Two fields describe the settlement account that last approved the customer's saved payment method:

FieldWhat it evaluates
Previous Successful Settlement AccountThe settlement account of the payment method's last approved payment.
Previous Settlement Account ExistsWhether the payment method has a previous successful settlement account.

Use them to keep repeat payments on the settlement account that last approved the card. See Recurring routing.

Aggregations and lists

A condition can also count or sum the customer's past transactions, such as the number of declines on a card in the last day. Add aggregation fields in Settings → Product Settings → Rule Inputs → Aggregations, or from the rule builder. To match a value against a set you manage in one place, such as a list of BINs, use a risk list.

Fields routing can't use

Pay.com routes a payment before sending the authorization request, so results that return with the authorization aren't available yet. The payment's own AVS and CVV check results and its issuer response code can't drive a routing rule. Use them in review rules instead. Aggregations over past transactions, such as a card's recent declines, still work.

A condition on a field the payment doesn't have never matches, unless the condition checks that the field doesn't exist.

Next steps

Was this page helpful?