Sending Level 2 and Level 3 data through Hyperswitch

Level 2 and Level 3 data can lower interchange on commercial card payments when the card network, processor and region support it. This page explains how Hyperswitch passes that data and what to confirm first.

On this page

How Level 2 and Level 3 data through Hyperswitch lowers commercial card interchange

If your business accepts commercial or purchasing cards from other businesses, Hyperswitch accepts Level 2 tax, invoice and reference fields and Level 3 line-item data in the payment_create API, so you can send the transaction detail that card networks use to qualify commercial payments for lower interchange. Visa and Mastercard support both Level 2 and Level 3 data, while American Express supports Level 2 only. The saving is not automatic. It depends on the card type the customer presents, the network, the connector that submits the transaction and whether the payment is processed domestically. Per the Hyperswitch docs, most connectors support Level 2 and Level 3 data for US domestic processing only, and support varies by connector, so confirm the exact fields and regions for each connector you plan to use before you promise a rate change internally.

Teams usually need this when a large share of their revenue comes through B2B invoices, procurement portals or government purchasing, where customers pay with corporate or purchasing cards and the merchant absorbs the higher commercial interchange. The practical work starts with your order data. Tax amounts, invoice numbers, customer reference codes and line items must exist in your order system and must be passed in each payment request. Your finance and engineering teams should agree which fields are mandatory for each card brand and which are optional, and should test a sample of commercial cards in the sandbox before rollout. Ask each connector provider, in writing, which Level 2 and Level 3 fields it submits and in which countries, because a field accepted by Hyperswitch is not the same as a field the acquirer forwards to the network.

Plan for what goes wrong. A transaction sent with incomplete or mismatched line-item totals can be declined or processed at the standard rate, and the error may appear only in downstream settlement reports, so reconcile captured amounts against the Level 3 totals you sent. Keep the Level 2 and Level 3 payload in your audit logs, and check whether the detail includes personal data that your privacy controls must cover. Because support changes by connector and region, review it at each connector change and after each Hyperswitch upgrade, and treat the connector's current documentation as the final authority on what qualifies.

Level 2 and Level 3 fields pass through three hand-offs before the network

The diagram starts at the order management system, which sends a payment_create request carrying Level 2 tax and invoice fields and Level 3 line items to the Hyperswitch Router. The Router passes the payment to the selected connector, and the card type and region determine which fields reach the card network. Visa and Mastercard can carry both levels, American Express carries Level 2 only, and most connectors apply the data to US domestic processing alone. Check each branch against your connector's documentation before you rely on the lower rate.

Request path from order system to card network, with card type and region decisions.

Which data level fits which card and network

This table compares three options: Level 2 only, Level 2 plus Level 3, and no enhanced data, across card brands, network support and connector support. Read each row as a question to answer with your acquirer or connector before you change the payment request. The main takeaway is that card brand sets the ceiling, while the connector and the transaction's region decide what actually reaches the network.

OptionCard brand and network supportConnector and region limits
Level 2 onlyVisa and Mastercard accept it. American Express also accepts Level 2 only.Support varies by connector. Confirm the connector passes tax and invoice fields for your transaction type.
Level 2 plus Level 3Visa and Mastercard accept both levels. American Express does not accept Level 3 through this path.Most connectors support Level 3 for US domestic processing only. Confirm cross-border handling before sending line items.
No enhanced dataWorks on every card brand. Interchange is set without the commercial enhancement.Always available. Use it as the fallback when a connector or region cannot accept the enhanced fields.
Amex commercial cardsLevel 2 is the most that applies. Line items are not used for this brand.Confirm with the connector that tax and reference fields reach the acquirer on Amex transactions.
Visa or Mastercard, US domesticBoth levels can apply when the connector supports them.Test with the connector's sandbox and a sample of real commercial transactions before going live.
Visa or Mastercard, cross-border or non-USNetwork rules still allow both levels, so the limit is mostly the connector and region.Most connectors do not support enhanced data outside US domestic processing. Confirm before enabling for those flows.

Setting up Level 2 and Level 3 data in your Hyperswitch stack

This sequence takes Level 2 and Level 3 data from a processor capability question to verified records in the processor's system, so you know which commercial cards qualify and which fields arrive intact before any live traffic.

  1. Confirm connector and card support with the processor

    Your payments or finance lead asks each processor you plan to use whether it accepts Level 2 and Level 3 data for your card types, your acquiring region and your merchant category. Per the Hyperswitch docs, most connectors support this only for US domestic processing and support varies by connector, so get the answer in writing for each connector and each card network. Visa and Mastercard support Level 2 and Level 3, while American Express supports Level 2 only. Done when you have a written list of connector, network, region and level combinations that are confirmed as supported.

  2. Map tax, invoice and line item fields

    Your finance and engineering leads map the fields your order system already holds to the Level 2 fields (tax amount, invoice and reference data) and the Level 3 line item fields accepted by the payment_create API. Record the source system, the field owner and the format for each value, including currency precision, tax rates and item quantities. Confirm that line item totals reconcile to the transaction amount. Done when a mapping document lists every field, its source and its validation rule.

  3. Add the data to a test payment in the sandbox

    A developer builds the payment_create request in a non-production environment, using either a Hyperswitch hosted sandbox or your own self-hosted test stack, and sends Level 2 and Level 3 fields only for combinations confirmed in the first step. Include a card type that qualifies and one that should not receive Level 3 data, so the behavior for each is visible. Keep the request and response payloads. Done when the sandbox returns successful responses and the stored payment shows the fields you sent.

  4. Check the data in processor records

    Finance or operations staff open the processor's merchant portal or statement data for the test transactions and confirm that tax, invoice and line item values arrived unchanged. Compare them with the Hyperswitch payment record and your mapping document. Where a field is dropped or altered, trace whether the issue is in the request, the connector transformation or the processor's own rules. Done when each test case matches across the payment record and processor record, or a documented gap has an owner.

  5. Test rejection and fallback paths

    An engineer sends requests that the processor should reject or ignore, such as Level 3 data on an unsupported card or an out-of-region transaction, and confirms that the payment still processes or fails in the way your policy expects. Check the error codes and webhooks your system receives, and confirm that invalid line item data does not block authorization in an unplanned way. Done when every rejection path has a recorded expected outcome and an observed result.

  6. Confirm the regional scope before go-live

    Your compliance and payments leads confirm which transactions are in scope for Level 2 and Level 3 processing, based on the processor's written support, the card's country of issue and the merchant's processing location. Limit the feature flag or routing rule so that only confirmed combinations send the data, and document the exclusions. Done when a signed-off scope statement lists the approved regions, networks and connectors, and the production configuration matches it.

  7. Monitor the first live transactions

    After go-live, operations staff review a sample of production payments against the processor records and the scope statement, and watch for rejected payments, missing fields and unexpected changes in interchange outcomes. Set a regular review with finance so that new connectors, card types or regions are added only after the same confirmation steps. Done when the first production sample matches the expected records and the review owner and cadence are recorded.

How data mapping differs by business situation

A US seller that invoices other businesses usually holds the richest Level 2 and Level 3 data already in its order system, so the work is mostly mapping existing fields into Hyperswitch's unified fields. Commercial cards are the common case here, and the Hyperswitch Level 2 and Level 3 docs describe the domestic-only baseline that the connector must honor.

  • Tax and invoice fields: Map the tax amount, invoice or purchase order reference and customer reference from the order record into the payment_create request, one value per order.
  • Line item detail: Level 3 needs item description, quantity, unit cost and product code at line level, so confirm the order system stores these fields per item and not only as an order total.
  • Amount consistency: Line items must reconcile to the transaction amount, so test rounding, discounts and tax calculated after invoicing with real order data.
  • Connector confirmation: Confirm which connector each transaction routes to, since support varies by connector.

Before enabling the mapping for live traffic, check that a sample of invoices produces matching Level 2 and Level 3 fields in the sandbox.

Security and data handling for invoice and line item data

Level 2 and Level 3 fields carry business data rather than card data, but they still sit in your payment flow, logs and databases. The cards below cover what the fields contain, who can change them, how long they live and why they do not move your PCI DSS scope on their own.

What enhanced data contains

Level 2 covers tax amounts, tax identifiers, invoice and reference numbers. Level 3 adds line items such as product descriptions, quantities, unit costs and item-level tax. Map each field to a source in your order system and write down which values are customer-supplied free text. Free text is the field most likely to receive card numbers pasted in by mistake, so validate it before it reaches the payment request.

Level 2 and 3 docs

Keeping card data out of line items

Product descriptions, tax IDs and reference numbers must never contain a primary account number, expiry date or security code. Add a server-side check that rejects patterns resembling card numbers in these fields, and confirm with your Hyperswitch team how the payment_create request handles rejected values. Test the check with known card test numbers in your staging environment.

Access control on the order data source

The database or service that supplies line items and invoice data is the real origin of this information. Limit write access to the order system and to the service that builds payment requests, and keep read access for finance and reconciliation teams separate. Review who can edit item descriptions after an order is paid, because those edits can change what the processor receives.

Logging and retention of enhanced data

Request and response logs, traces and webhook payloads may capture Level 2 and Level 3 fields along with the rest of the payment record. Decide which fields your logging pipeline masks, and set a retention period for line item data that matches your finance and records policies. Confirm with your Hyperswitch team which Level 2 and 3 fields are stored by the router database and for how long.

Unchanged PCI DSS scope

Level 2 and Level 3 fields do not add card data to your environment, so they do not by themselves bring new systems into PCI DSS scope. Scope depends on where card data is stored, processed or transmitted. Your assessor will still review whether any service that now handles these fields touches cardholder data, so document the data flow before you ask for a scope opinion.

Vault and deployment model alignment

Your PCI DSS obligations depend on the vault model you chose, not on enhanced data. With the self-hosted in-house PCI model, the merchant carries full PCI DSS responsibility for certification and data handling. Keep line item data flowing through the same controlled path as other payment fields, and confirm the boundary with your qualified assessor before go-live.

In-house PCI model

Questions buyers ask before sending Level 2 and Level 3 data

What drives the cost of adding Level 2 and Level 3 data to Hyperswitch?

The main cost drivers are how much of the order data already exists in your order management system, how many payment flows need the fields, and how many connectors and card networks you accept. Integration work covers mapping tax, invoice and reference fields, and line-item fields to the Hyperswitch payment_create API, then passing them through each connector that will carry them. Connector confirmation is a separate cost because support varies by connector and, per the Hyperswitch docs, most connectors support Level 2 and Level 3 data for US domestic processing only. Ask any partner to price each of these as its own line in a quote, with the systems in scope named.

How long does it take to send the first Level 2 and Level 3 transaction live?

No duration is fixed by the researched facts, so the honest answer depends on three things: the state of your order data, the connector confirmation for your acquirer, and the test cycle on your own card network accounts. If order data is clean and the connector confirms support early, the build is mostly mapping and testing. If line items or tax data must be generated from another system, that upstream work usually sets the schedule. Ask for a timeline in the written scope that lists each dependency and who owns it, rather than accepting a single end date.

What does finance need to provide for Level 2 and Level 3 data?

Finance usually owns the data definitions. They need to confirm which tax identifiers, invoice numbers and reference values appear on commercial card invoices, how tax is calculated per line, and which product codes and units go into line items. Finance also needs to sign off on how refunds and partial captures affect line-item totals, since mismatches here create disputes and reconciliation exceptions. Engineering can build the mapping, but finance decides what the values mean. Put named finance approvers into the scope before the build starts.

What does engineering need to provide for this work?

Engineering needs access to the order system that holds invoice and line-item data, a Hyperswitch deployment or sandbox where the payment_create fields can be tested, and the ability to change the payment request payload in your checkout or backend services. They also need connector credentials for each acquirer in scope and a test plan that covers authorizations, captures, partial captures and refunds. If Hyperswitch is self-hosted, the team that runs the stack should confirm the Hyperswitch version in use, since field handling can change between releases.

Can our team send Level 2 and Level 3 data without an outside partner?

Yes, a capable internal team can do this if it has payments engineering experience, access to finance for data definitions and time to run the connector and card network checks. The steps are documented: map the fields, confirm connector support, test on sandbox credentials and validate the results on settled transactions. The points where teams usually need help are the connector-by-connector confirmation, the test matrix across card brands, and the reconciliation checks after go-live. Visa and Mastercard support Level 2 and Level 3, and American Express supports Level 2 only, so the test plan must account for that difference.

How do we ask DeployOpen for a quote for this work?

DeployOpen does not publish a price list. A quote follows from a written scope, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. To request one, send the list of connectors and card networks in scope, the order systems that hold the data, the countries where you process, the Hyperswitch deployment model and version, and the finance and engineering owners. Ask the quote to separate discovery, connector confirmation, build, testing and go-live support, and to state what is one-time and what recurs.

Which connectors and regions limit Level 2 and Level 3 data?

The limits depend on the connector, the card brand and the country. Per the Hyperswitch docs, most connectors support Level 2 and Level 3 data for US domestic processing only, and support varies by connector. Before scoping, list every acquirer you use, every card brand you accept and every country where transactions are processed, then confirm each combination with the connector and the processor. Treat any connector that cannot confirm support as out of scope for the initial release, and plan a fallback where the same transaction is sent without enhanced data.

What should we confirm before the work starts?

Confirm five items in writing before the build begins: the connector list with written support status for Level 2 and Level 3 fields, the card brands and regions in scope, the owners of order data and tax data, the Hyperswitch version and deployment model, and the test and acceptance criteria. Also confirm how enhanced data affects authorization and capture flows, including partial captures and refunds. A scope that names these items gives finance, engineering and any partner a shared baseline for cost and timing.

What to confirm before you rely on lower interchange

Lower interchange is not guaranteed by sending Level 2 and Level 3 data through Hyperswitch. The savings depend on the acquirer, the card mix, the region where the transaction is processed and the quality of the data you send. Hyperswitch accepts Level 2 and Level 3 fields in the payment_create API, but the Hyperswitch docs state that most connectors support this data for US domestic processing only, and support varies by connector. Treat any saving as unconfirmed until your acquirer and your own transaction data show it.

Before you build the data pipeline, put these questions to the processor: Which connectors and acquiring relationships on our account accept Level 2 and Level 3 fields, and for which regions? Which card brands and product types qualify, given that American Express supports Level 2 only in the supplied fact? Does the acquirer require specific fields, such as tax amount, customer code or product codes, and what happens to a transaction when a required field is missing or malformed? Ask whether data is downgraded silently, rejected or authorized at the standard rate.

Put these questions to finance and the card operations team: What interchange rate did we pay on commercial cards last quarter, and which share of that volume is US domestic? How will we measure the change, by comparing statement lines before and after go-live? Who owns the product catalog and tax data that feeds the line items, and how often is it reconciled? Verify the network qualification rules directly with Visa, Mastercard and your acquirer, since their current requirements and effective dates are the authoritative source, not this page.

How DeployOpen scopes this work

DeployOpen starts with a written scope before any Level 2 or Level 3 field is mapped. That scope records which processors and connectors will receive enriched data, because the Hyperswitch docs state that support varies by connector and that most connectors accept Level 2 and Level 3 data for US domestic processing only. It also records the card mix, since Visa and Mastercard support Level 2 and Level 3 while American Express supports Level 2 only. Each order system field that will feed the tax, invoice and reference values, and each line item source, is named in the scope, along with the regions where transactions will be processed. Confirm these points with your acquirer and processor before the scope is signed, because the processor's written support is what determines whether the data affects interchange at all.

Delivery happens in your own infrastructure, on the Hyperswitch deployment you run, with the payment_create request changes and connector configuration made and reviewed by your team. DeployOpen builds the mapping from your order system into the unified fields, tests it against sandbox and production-like data for each connector and card type in scope, and checks that unsupported combinations fall back cleanly instead of failing a payment. The written scope also sets which deliverables are handed over, such as the mapping specification, test evidence and runbook, and how changes are handled after go-live. Fixed-scope work of this kind is quoted from that document, so the items that drive cost and effort (connector count, card types, regions and the number of order systems) should be agreed in writing from the start.

How DeployOpen works on this

DeployOpen starts by mapping which of your commercial card flows qualify for Level 2 and Level 3 data, which connectors and card networks you use, and which regions you process in. The work is then built, tested and handed over inside your own infrastructure, so your finance and payments teams can verify the data that reaches each processor.

How we scope

  • Written scope lists the card brands, connectors and processing regions included for Level 2 and Level 3 data
  • We map which order, tax and invoice fields your systems hold and which Hyperswitch payment_create fields they populate
  • Scope names the US domestic transactions in which your connectors will accept the extra data

How we build

  • We implement Level 2 tax, invoice and reference fields and Level 3 line items in your self-hosted Hyperswitch deployment
  • Test payments run per connector and card brand, checking which fields the processor accepts or ignores
  • Fallback behavior is set for transactions that do not qualify, so payments still complete without the extra data

How we hand over

  • Documentation covers the field mapping, connector support matrix and the conditions for each card brand
  • Your team receives test evidence showing accepted and rejected fields by connector and transaction type
  • Handover includes a checklist your finance team can use to confirm interchange outcomes against statements

How we support

  • Ongoing support and upgrades are available as a retainer, covering Hyperswitch releases that change connector behavior
  • We re-test Level 2 and Level 3 flows when you add a connector, change regions or update the Hyperswitch version
  • Support is scoped in writing, so your team knows which connector and release changes are covered

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.