Payment Routing Strategies: BIN, Cost and Performance
Last Updated: 2026-12-01 Status: Complete
Payment routing strategies determine which acquirer or processor receives each authorization request and under which conditions a different one is chosen. After reading this page you will be able to design a routing layer that uses BIN data and transaction attributes, supports several acquirers behind one normalized interface, and is measured by outcomes rather than assumptions.
Quick Reference
- Routing is decided at three layers: your platform (acquirer or processor), the acquirer and network (path to the issuer), and the issuer (approve or decline).
- BIN lengths are variable (6 or 8 digits); always match the longest prefix first.
- Start with a rule table; adopt score-based routing only when you have enough per-route data to justify it.
- Failover handles an unavailable route before any authorization is sent; cascading retries after a technical or acquirer-side failure, not after an issuer decline.
- Contracts with a sponsor bank or acquirer may restrict where traffic can be sent.
Who Makes Which Routing Decision?
| Layer | Decision maker | What is decided | Your influence |
|---|---|---|---|
| 1. Platform | Merchant, PayFac or orchestrator | Which acquirer or processor, and which MID, receives the request | Full: this is what you build |
| 2. Acquirer and network | Acquirer, then the card network | Which network (for multi-network cards) and which issuer endpoint, based on the BIN | Limited: debit network choice is partly yours (see debit routing) |
| 3. Issuer | Issuing bank | Approve, decline, or request more data | None, but the response drives your next step |
The network-side mechanics are covered in Transaction Routing; this page concentrates on layer 1.
How Do BIN and IIN Tables Work?
A BIN (also called IIN) is the leading digits of a card number that identify the issuer and product. The industry moved from 6-digit to 8-digit identifiers, so a lookup must be variable length: try the 8-digit prefix, then the 6-digit prefix, and treat no match as unknown rather than as invalid.
Sourcing BIN data. Options include network-provided BIN files or services, processor-supplied BIN tables, and commercial third-party databases. Choose by coverage of the attributes you actually route on, update frequency and licence terms.
Caching and refresh.
- Load the table into memory or a local key-value store; do not call a remote service on the authorization path unless it has a strict timeout and a fallback.
- Store the table version with every routing decision so results are reproducible.
- Refresh on a schedule and on demand; swap atomically so a partial load is never served.
- Define a fallback for unknown BINs (for example, the default route plus a counter that alerts when the unknown rate rises).
A BIN lookup uses only the leading digits, but the full PAN is sensitive. Never log the PAN, expiry date or other cardholder data in routing logs; log the BIN prefix, a token or a hashed reference instead. Use masked placeholders such as 411111******1111 in tests.
What Inputs Can a Routing Decision Use?
| Input | Source | Typical use |
|---|---|---|
| Card brand | BIN | Some acquirers are stronger or cheaper for particular brands |
| Card type and product | BIN | Debit, credit, prepaid, commercial: different cost and eligibility |
| Issuer country | BIN | Domestic vs cross-border; local acquiring |
| Currency | Request | Acquirers support different settlement currencies |
| MCC | Merchant profile | Some acquirers restrict or price by category |
| Amount | Request | Network limits, cost sensitivity, risk tier |
| Acquirer health | Monitoring | Avoid degraded routes |
| Cost | Fee schedule | Interchange-plus margins, per-item fees |
| Channel | Request | Card-not-present vs card-present |
Local acquiring for cross-border. Where a provider can acquire in the issuer's country or currency, routing there may avoid cross-border treatment and conversion steps. Whether it improves cost or approval depends on your agreements and the markets involved, so measure before generalizing. See Optimization for cross-border cost background.
Rule-Based vs Score-Based Routing
| Aspect | Rule-based | Score-based |
|---|---|---|
| Logic | Ordered conditions map to a route | A model or weighted formula ranks routes per transaction |
| Transparency | High; every decision traces to a rule | Lower; needs decision logging and explainability |
| Data need | Low | Enough volume per segment to estimate performance |
| Failure mode | Stale rules | Feedback loops, small samples, drift |
| Recommended start | Yes | After rules and measurement are stable |
A practical path is a rule table for hard constraints (eligibility, contracts, currency) and a score or weighted split only among routes that all pass those constraints.
What Does a Multi-Acquirer Architecture Look Like?
Per-acquirer adapters translate between your internal model and each acquirer's API, including authentication, field mappings, and error semantics. Normalized request and response means the orchestrator speaks one internal schema: a canonical payment request, a canonical result (approved, declined with a mapped category, or unknown), and the raw provider response stored separately. Map provider codes into an internal decline taxonomy; see Response Codes.
How Do Health Checks, Failover and Cascading Differ?
Failover: switching to another route because the selected route is known or suspected to be unavailable, before or without a business decision from the issuer.
Cascading: sending a new authorization attempt to a different route after a previous attempt failed. It suits technical or acquirer-side failures, not issuer declines. See Payment Cascading.
Health signals worth tracking per route: success rate, timeout rate, p95 latency and connection errors, over short rolling windows. Use a circuit breaker: open after a threshold of failures, send occasional probe traffic in a half-open state, and close after recovery. Failover is a routing-time decision based on these signals; cascading is an outcome-time decision based on a response and the card's reattempt rules.
Which Contractual and Merchant-of-Record Constraints Apply?
Routing is not purely technical.
- A PayFac's sponsor bank or acquirer agreements may restrict which acquirers can process its sub-merchants or require minimum volumes with a given acquirer.
- The merchant-of-record model affects who holds the merchant relationship with each acquirer and which MID is used on each route.
- Network tokens and network transaction IDs may be acquirer-specific, which can limit moving a stored-credential payment to a different acquirer. Confirm with each acquirer before enabling cross-acquirer routing for stored credentials.
- Pricing agreements may tie rates to volume commitments, so cost-optimal routing may conflict with them.
Treat contractual limits as hard constraints in the rule table, owned by the business team that negotiated them.
How Should You Measure Routing?
| Metric | Definition | Caution |
|---|---|---|
| Approval rate per route | Approved attempts divided by attempts, segmented by brand, BIN range, amount band | Compare like for like; segment mix differs by route |
| Cost per approved dollar | Total processing cost divided by approved volume | Include per-item fees, interchange and scheme fees, and retry costs |
| Latency | p50, p95, p99 end-to-end per route | Add latency from cascading to the user-facing figure |
| Timeout and unknown rate | Attempts ending without a definitive result | Each one requires resolution work |
| Fallback share | Share of payments needing more than one attempt | Rising share signals a poor primary route |
Run changes as controlled experiments: send a small, randomly assigned share of eligible traffic to the candidate route and compare by segment. Do not quote benchmark figures from other platforms as targets; processors report varying results that depend on merchant mix.
RoutingService Sketch
import { Injectable } from '@nestjs/common';
export enum Route {
ACQUIRER_A = 'acquirer_a',
ACQUIRER_B = 'acquirer_b',
}
export interface RoutingContext {
binPrefix: string; // never the full PAN
brand: string;
cardType: 'credit' | 'debit' | 'prepaid' | 'unknown';
issuerCountry?: string;
currency: string;
mcc: string;
amountMinor: number;
channel: 'cnp' | 'cp';
}
interface RoutingRule {
id: string;
matches: (ctx: RoutingContext) => boolean;
candidates: Route[]; // ordered preference
}
@Injectable()
export class RoutingService {
// Evaluated top to bottom; first match wins. Hard constraints come first.
private readonly rules: RoutingRule[] = [
{
id: 'eur-local',
matches: (c) => c.currency === 'EUR',
candidates: [Route.ACQUIRER_B, Route.ACQUIRER_A],
},
{
id: 'default',
matches: () => true,
candidates: [Route.ACQUIRER_A, Route.ACQUIRER_B],
},
];
constructor(private readonly health: HealthService) {}
select(ctx: RoutingContext): { route: Route; ruleId: string; fallbacks: Route[] } {
const rule = this.rules.find((r) => r.matches(ctx))!;
const healthy = rule.candidates.filter((r) => this.health.isAvailable(r));
const ordered = healthy.length > 0 ? healthy : rule.candidates;
return { route: ordered[0], ruleId: rule.id, fallbacks: ordered.slice(1) };
}
}
export interface HealthService {
isAvailable(route: Route): boolean;
}
The service returns the rule identifier so every decision can be stored with the attempt and audited. Fallbacks are candidates only; whether to use one after a failed attempt is decided by the cascading policy.
Network rules, fee schedules and BIN data change. Retry limits and debit regulation values are maintained on the Key Numbers page. Confirm contractual and network restrictions with your acquirers and sponsor bank, and consult your QSA or legal counsel for compliance questions.
Related Topics
- Payment Cascading: Retry Across Acquirers Safely — what to do after a failed attempt.
- Debit Routing Under Regulation II — network selection for debit.
- Transaction Routing — BIN basics and the 8-digit transition.
- Response Codes — mapping provider codes to an internal taxonomy.
- Check your understanding: Routing Quiz
References
- ISO/IEC 7812-1 — ISO, identification of issuers (BIN/IIN structure)
- Regulation II — Federal Reserve Board
- Visa Stored Credential Transaction Framework — Visa, 2017