Hyperswitch multi-objective routing and processor cost ingestion

Hyperswitch multi-objective routing re-ranks processors by cost on top of auth rate. This page explains how to feed real per-transaction costs into it, configure the strategy and measure whether it pays off.

On this page

How Hyperswitch multi-objective routing balances approval rates against processor fees

Multi-objective routing re-ranks processors by cost after ordering them by authorization rate. Per the Hyperswitch docs, the strategy is one of six routing strategies the platform offers, alongside rule-based, volume-based, auth-rate, least cost routing for debit networks and default fallback routing. Teams reach for it when two processors both approve payments well enough to be acceptable, but one charges materially more per transaction. In that situation, a pure auth-rate ranking can keep sending volume to the costlier processor for a small approval gain that the fee difference may not justify.

The trade-off only works if the cost side reflects what you actually pay. List prices in a processor's rate card rarely match the blended cost per transaction once interchange, scheme fees, cross-border surcharges, currency conversion and minimum fees are applied. Before you enable the strategy, confirm with each processor which fee components appear on its settlement reports and invoices, and decide how you will map them to per-transaction cost in Hyperswitch. Keep that mapping under change control, because a stale cost figure will quietly reorder your processors in the wrong direction.

Treat the approval-rate and cost weighting as a business decision that finance and payments leadership sign off, not a default you accept from the platform. Record the approval-rate floor you will not trade away, then measure the effect on both approval rate and cost per successful payment for a defined period. Hyperswitch's auth-rate and cost signals are only as good as the volume behind them, so confirm with your processors and your own data team how many transactions per processor and per payment method you need before the re-ranking is statistically meaningful.

Which multi-objective configuration fits which business case

This table compares the configuration choices behind multi-objective routing: auth-rate only versus cost-weighted ranking, settlement reports versus invoices, refresh cadence and where cost ranking sits relative to fallback routing. Read each row for the situation it fits and the trade-off it carries, then confirm the exact behavior for your Hyperswitch version before you commit.

Configuration choiceWhen it fitsTrade-off to weigh
Auth-rate onlyApproval rate is the main concern and processor fees are similar across your acquirersCheaper processors with slightly lower approval rates may not be preferred, so fee differences go unused
Multi-objective (auth rate re-ranked by cost)Fees differ materially between processors and you accept some approval-rate give-up for lower costNeeds trustworthy per-transaction cost data; weak cost inputs can push traffic toward the wrong processor
Settlement report cost dataYou want actual fees per transaction as the processor charged them, and reports arrive on a predictable scheduleReports lag behind authorization, so recent pricing changes are reflected late
Invoice cost dataYou want processor-level totals to reconcile with what your finance team pays each billing cycleInvoices usually aggregate fees, so per-transaction granularity may be lost; confirm the level of detail with your processors
Both settlement reports and invoicesYou need per-transaction accuracy and a finance reconciliation check on the same dataMore ingestion work and more reconciliation rules to maintain between the two sources
Frequent cost refreshProcessor pricing changes often or you run high volume where small fee shifts add upMore pipeline runs and more chances for a bad file to influence ranking; add validation before each refresh
Infrequent cost refreshPricing is stable and your team wants a simpler, easier to audit pipelineRanking may keep favoring a processor whose fees have already changed
Cost ranking inside the routing decisionSeveral eligible processors pass the rule set and you want the cheapest of the approval-viable options chosen firstCost ranking only affects processors the rules keep eligible, so rule design must be checked first
Default fallback routingNo rule applies or the chosen processor is ineligible, so a fixed backup order takes overFallback order is not cost-ranked unless you design it that way, so cost savings may not carry into these cases

Setup sequence for cost-aware routing in a self-hosted stack

This sequence takes a self-hosted Hyperswitch stack from a version check through to a validated multi-objective routing ranking that reflects real per-transaction processor costs. Each step closes with a check so the team knows whether to continue.

  1. Confirm release and Control Center compatibility

    Before changing routing, the platform engineering lead checks the Hyperswitch releases page for the version you run and the compatibility matrix that lists the matching Control Center and web client versions. Confirm that every component you deploy, including the Control Center, is in a supported pairing. If your version is v1.124.0 or later, also confirm that a Superposition service is running, because the v1.124.0 release notes make it a required dependency. Done when you have a written version record for router, Control Center, SDKs and Superposition, and each pairing is listed as compatible.

  2. Connect all candidate processors

    The payments operations lead, with the platform team, connects every processor you want in the routing pool through the Control Center, using the credentials and webhook settings each connector requires. Connectors that you have not finished configuring should stay out of the routing pool until their credentials and webhooks are verified. Done when each candidate processor shows as connected, its test transactions complete in your sandbox, and its webhooks reach your environment.

  3. Establish baseline authorization rate per processor

    Using transaction data from Hyperswitch for a period you agree with your finance and risk teams, the payments analyst calculates authorization rate per processor, per card network and per merchant category or geography where your volume is material. Record the method, including how soft declines and retries are counted, so the baseline can be reproduced later. Done when you have a dated table of authorization rates per processor segment that the team has reviewed and signed off as the comparison point.

  4. Collect settlement reports and processor invoices

    The finance operations lead requests settlement reports and processor invoices for the same period from each acquirer, and stores them in a controlled location with access limited to the team that needs them. Confirm the file formats, currencies, fee line items and any cross-border or scheme fee breakdowns with each processor, since these vary. Done when you hold complete files for every processor in the baseline period and the team has confirmed no period gaps.

  5. Map invoice fields to per-transaction cost

    The data engineer and finance analyst build a mapping that links each settlement line and invoice fee to the originating transaction, then allocates fixed fees across transactions and converts currencies at a documented rate. Record which fees are per transaction, which are monthly or volume based, and which cannot be attributed, and decide how each is handled. Done when a sample of transactions shows an estimated cost per processor that a finance reviewer can trace back to the source line items.

  6. Configure multi-objective routing with fallback in place

    The routing owner configures multi-objective routing, which re-ranks processors by authorization rate and processor cost, and defines default fallback routing so payments still reach an eligible processor when no rule applies or the preferred processor is ineligible. Set the fallback order before enabling the new ranking, and keep the previous routing configuration saved so you can revert. Done when the Control Center shows the saved configuration, the fallback order is populated, and a test payment selects a processor you expect.

  7. Validate the ranking on test traffic

    The payments engineering lead runs test transactions and, where appropriate, a controlled share of live traffic, then compares the chosen processor order and the cost and approval results with the baseline. Check that the ranking responds to the cost data you ingested, that no processor receives traffic it should not, and that fallback behavior works when a processor is made ineligible in the sandbox. Done when the team signs off that the ranking matches the cost model, the fallback path has been tested, and the results are documented for the next review.

How cost data and auth rate reach the routing decision

The diagram starts with settlement reports and processor invoices, which are external data that the self-hosted stack ingests into a cost store. Live transaction outcomes feed a separate auth-rate statistics store inside the Router. The multi-objective step combines both signals to re-rank processors by cost, and fallback routing takes over when a processor is ineligible. Check the boundary between your stack and the processor-supplied files, because that is where data quality and access controls matter most.

Cost data and live auth rates meet in the Router before a processor is chosen.

Security and data handling for settlement and invoice data

Settlement files and processor invoices carry merchant identifiers, transaction references and sometimes card fragments, so they need the same handling discipline as payment data. The cards below cover where that data sits, who can reach it, how long it lives and how changes to cost tables are traced back to a person and a source file.

Access control on report storage

Settlement exports and invoices should sit in a restricted bucket or share that only the ingestion job and a named set of finance and platform staff can read. Confirm who can list, download and copy these files, because a broad read grant on a reporting bucket exposes every processor's transaction detail at once. Check that object-level logging is on for the location and that access reviews cover it.

Retention of cost source files

Decide how long raw settlement files stay after their figures have been loaded into the cost table. Keep the derived per-processor cost summaries that routing uses, and set a shorter, documented window for raw files that carry transaction-level detail. Ask your legal and privacy team to confirm the period against your payment records policy and any GDPR obligations that apply to your data.

Redaction of card data

Before a file reaches the ingestion pipeline, strip or mask primary account numbers and any field that is not needed to compute fees. Cost calculation needs amounts, currency, scheme, processor and reference IDs, not card numbers. Test the redaction against a sample file that contains real-format card data, and confirm that the mapping step cannot reintroduce a full PAN into a log or staging table.

Least-privilege ingestion accounts

Give the job that reads reports and writes cost data its own service account with write access only to the cost table and read access only to the source location. It should not hold Control Center admin rights or routing configuration rights. Store its credentials in your secrets manager, rotate them on a fixed schedule and document who can approve changes to its permissions.

Control Center access for routing changes

Hyperswitch Control Center supports single sign-on through OpenID Connect only, with no SAML, no just-in-time or SCIM provisioning, and roles managed inside Hyperswitch rather than mapped from your identity provider. Users must be invited before they can sign in, so onboarding and offboarding of anyone who can change multi-objective routing settings is a manual step. Make that step part of your joiner and leaver process and review the role list each quarter.

SSO configuration docs

Audit logging of cost-table changes

Every change to a processor cost value, whether from an automated load or a manual edit, should record who or what made it, when, the source file or invoice reference, and the old and new values. Without that trail, a sudden shift in routing order cannot be traced to a bad input. Confirm where these records are stored, how long they are kept and that the ingestion account cannot alter them.

Questions teams ask before building cost-aware routing

What drives the effort and cost of cost-aware routing work?

The main drivers are the number of processors and acquirers in scope, how many different report and invoice formats they send, the quality of the data in those files, and how much testing the ranking needs before it touches live traffic. Each processor adds a parser or mapping to build and maintain. Inconsistent fee fields, missing transaction identifiers and invoices that bundle fees differently from settlement files all add reconciliation work. Testing effort grows with the number of routing rules that depend on cost. Ask any partner to break its quote into these components so you can see which ones your own data will inflate.

Can an internal team build multi-objective routing with cost ingestion on its own?

Often yes, if the team already owns payments data, has engineers comfortable with Hyperswitch configuration and can take ownership of the Rust core app server and its PostgreSQL and Redis dependencies. The harder parts are usually not the routing settings but the ingestion pipeline, the matching of fees to individual transactions and the validation method. Check whether your team has done settlement reconciliation before, who will maintain the mappings when a processor changes its report format, and whether you have a non-production environment with realistic volumes to test in.

How long does this kind of project take?

Duration depends on the same drivers as cost: how many processors you connect, how consistent their reports are, how many environments you must pass through, and how long your change approval and A/B testing windows run. A project with a few processors and clean settlement files will move far faster than one that needs custom parsers for each acquirer. Ask for a timeline tied to written milestones, and confirm which steps depend on your own teams, such as data access approvals, test merchant setup and sign-off on routing changes.

What do we need to provide before the work starts?

You will need a sample set of settlement reports and processor invoices covering several months, the processor fee schedules you pay under, and a description of how each file maps to transactions in your system. You also need test merchant accounts with each processor, a non-production Hyperswitch environment, and named owners for data access and approvals. If you intend to use the self-deployed routing service, confirm early that your infrastructure can host it. Agree on how sensitive card or merchant data in these files will be handled and whether files can be redacted before they leave your network.

How should we validate that the cost-based ranking actually helps?

Validate the ranking against outcomes, not just against the fee table. Compare the expected cost per transaction produced by the ranking with the actual fees recorded in settlement, and check that approval rates stay within a guardrail you set in advance. Run the change as a controlled split using Hyperswitch A/B testing so the control arm keeps the current ordering, and review results over a period long enough to cover normal weekly and monthly volume patterns. Agree on the success thresholds and the rollback trigger before the test starts.

Who maintains the cost data after go-live?

Someone must own it continuously. Processors change fee schedules, add surcharges, and alter report layouts, and each change can silently skew the ranking. Plan for a recurring review of new settlement files, a monitored check that ingestion is still matching transactions, and a documented process for updating mappings. This ongoing work is usually the part that recurs in cost, so ask whether a quote covers only the initial build or also covers ongoing support and retesting, and whether that support is offered as a retainer.

Does DeployOpen handle the whole cost-aware routing project?

DeployOpen plans, implements, customizes, integrates, tests and documents self-hosted open-source platforms in infrastructure you control, and the scope for this kind of work is agreed in writing before it starts. The written scope should name the processors, report formats, environments and validation method included. DeployOpen does not issue audit reports or certifications for the result, and ranking decisions remain yours to approve. Request a quote based on that written scope, which will show what is included and what you must provide.

How to measure whether cost ranking improves net outcomes

A lower processor fee does not mean a better outcome if the cheaper processor approves fewer payments. The point of measuring multi-objective routing is to confirm that net cost per approved payment goes down, with approval rate held as a guardrail rather than treated as a side metric. Net cost per approved payment should combine processor fees, and any cost you attribute from ingested invoices, with the revenue lost from declined transactions that customers never retry. Calculate it per processor, per payment method and per market, because a blended average can hide a processor that is cheap on paper but declines a large share of one card type.

Before you treat a re-ranked order as an improvement, set guardrails in writing. Agree a floor for authorization rate by market and card category, a ceiling for chargebacks and fraud-related declines on the processors that gain volume, and a maximum acceptable drop in approved volume. Confirm with your payments and risk owners which thresholds apply, since DeployOpen does not set them for you. Also confirm that your reporting joins the ingested cost data to the same transaction identifiers Hyperswitch records, so that cost and outcome are compared on the same population of payments.

Pair the routing change with an A/B test instead of switching the whole cascade at once. Route a defined share of traffic to the control order and the cost-ranked variant, keep the split stable for long enough to cover the normal weekly payment cycle, and read the results against the guardrails rather than against fee savings alone. The Hyperswitch intelligent routing documentation at Hyperswitch docs: intelligent routing is the next read for how routing strategies are configured. Choose the significance criteria and minimum sample sizes with your data team before the test starts, so the decision to roll out is not made after the numbers arrive.

How DeployOpen scopes and delivers cost-aware routing

DeployOpen plans, implements and supports self-hosted Hyperswitch inside your own infrastructure, including the cost data pipeline behind multi-objective routing. Each engagement starts from a written scope that sets which processors, settlement sources and routing rules are in play before any build work begins.

How we scope

  • Inventory the processors, acquirers and settlement sources whose fees should inform multi-objective routing decisions.
  • Confirm which cost fields your settlement reports and invoices provide, and which must be derived or estimated.
  • Agree in writing which routing strategies are in scope, including how auth rate is re-ranked by processor cost.
  • Confirm the Hyperswitch version, the Superposition dependency and the Control Center version before planning begins.

How we build

  • Build the ingestion path that maps settlement report and invoice line items to the transactions Hyperswitch records.
  • Configure the routing rules so processors are re-ranked by cost only after approval rates meet the agreed threshold.
  • Test the cost model against historical transactions and check that fallback routing still applies when a processor is ineligible.
  • Document the data mapping, failure handling and any manual reconciliation steps the finance team must perform.

How we hand over

  • Deliver the configuration, ingestion code and runbooks in your own repositories and infrastructure accounts.
  • Walk your payments, finance and platform teams through how cost data flows into routing decisions and where it can go stale.
  • Provide a retest of routing behavior after handover, with findings and fixes documented against the agreed scope.

How we support

  • Keep the cost pipeline current as processor fee schedules change, new invoices arrive and Hyperswitch releases land.
  • Plan Hyperswitch upgrades against the release compatibility matrices so routing configuration survives each minor version.
  • Offer ongoing support, upgrades and continuous testing as a retainer for teams that want routing reviewed over time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.