Skip to content
English
  • There are no suggestions because the search field is empty.

Level II / Level III Data - Developer Guide

Level II and Level III data ride on your normal sale, sale-auth or capture request. There is no level flag: a request without items is Level II, and a request with items is Level III. For eligible commercial cards, this data can earn a lower interchange category. The card networks assign the category, so sending the data does not guarantee the rate.

Quick Start

  1. Check the brand matrix below. Visa replaced its general Level II and Level III programs with CEDP. Aside from specialized tiers like Large Ticket and Fleet Fuel, its only reduced rate for commercial cards is now Commercial Product 3. Mastercard still rewards both Level II and Level III. Amex accepts Level II data only.
  2. Send the full Level III request on every Visa and Mastercard transaction, and leave out items for Amex. You don't need to know which level the card qualifies for.
  3. Send the fields with the sale or sale-auth. Line items sent at authorization stay on the transaction, even if the capture sends different ones.
  4. Make the amounts add up, using the formula for the card brand.
  5. Always send localTaxIndicator=P with localTaxAmount. If you leave it out, the tax is reported as exempt and the rate drops.

Brand matrix

In this guide, Level II and Level III describe the data you send. The rate that data can earn depends on the brand:

  • Visa: send Level III data to qualify for Commercial Product 3 under CEDP (see Visa and CEDP below).
  • Mastercard: send Level II data at minimum, and Level III data when you have line items.
  • Amex: send Level II data and never send items.

Visa

Mastercard

Amex

What to send

Level III data (order fields + items)

Full Level III data. Cards eligible for Level II only settle at Data Rate II automatically

Level II data only. Never send items

Extra requirement

The merchant participates in Visa CEDP

—

—

What triggers sending

The issuer confirms the card is commercial during authorization

The issuer confirms the card is commercial during authorization

holderType=O, or a card BIN flagged as commercial

Eligible cards

Commercial cards

Commercial cards. (see Mastercard card eligibility)

Commercial cards

Tax range for Level II data

—

0.1% to 22% of the amount

—

Max line items

998

98

—

Request template

One template works for Visa and Mastercard. Fields a brand doesn't use are ignored

Same template as Visa

Separate template. The Visa and Mastercard template does not work

Mastercard card eligibility

Mastercard restricts enhanced data interchange tiers to commercial cards (Business, Corporate, Purchasing, Fleet, and Government) and determines whether a card qualifies for Data Rate II or Data Rate III based on the specific card product's BIN/tier:

  • Commercial cards only: Consumer credit and debit cards always process at Data Rate I (Level 1), regardless of how much invoice or line-item data you submit. (Unlike Visa, Mastercard does extend Data Rate II/III eligibility to commercial debit and prepaid cards in addition to commercial credit cards.)
  • Data Rate III depends on card eligibility: Sending full Level 3 line-item data does not guarantee Data Rate III pricing. Only cards issued under Data Rate III-eligible programs (primarily Corporate, Purchasing, Fleet, and Government cards, plus select higher-tier Business/Small Business credit programs) receive the Data Rate III interchange discount.
  • Many Business cards cap at Data Rate II: Standard small business cards (such as entry-level Mastercard BusinessCard or World Business products) are frequently eligible only for Data Rate II. If you submit full Level 3 line-item data on one of those cards, Mastercard does not penalize or reject the transaction, it simply settles at the card's maximum eligible tier (Data Rate II).

Visa and CEDP

Visa no longer has Level II or Level III interchange rates for US commercial cards. Its Commercial Enhanced Data Program (CEDP) replaced them, and the main reduced rate is now Commercial Product 3. To earn it, send Level III data, and the merchant must participate in CEDP.

Status: Zift support for Visa CEDP is being finalized. You can send the Level III fields described in this guide now. They're accepted and stored on the transaction, but Visa transactions may not qualify for Commercial Product 3 until CEDP support is live. Mastercard and Amex are not affected. We'll update this guide when it's available.

Date

Change

April 18, 2026

Visa's Level II program ended

October 18, 2025

Visa's Level III program was replaced by Commercial Product 3

April 2025

CEDP launched, with data-quality reviews and a program fee

What this means for your integration

  • The request doesn't change. Send the Level III order fields and items exactly as described below.
  • Level II data alone no longer lowers the Visa rate. It's still accepted, and still useful for Mastercard.
  • Visa checks the data quality. Send real product codes, descriptions and units of measure, not placeholders. Data that fails Visa's review can lose the Product 3 rate.
  • CEDP has a fee. Visa charges a program fee on transactions sent with the CEDP flag.

Level II fields

You don't choose a level. Send these Level II fields on every Visa, Mastercard and Amex request. Whenever you have line items, add the Level III fields and items to the same request. The card then settles at the best level it qualifies for. The one exception is Amex: send these fields only, and never send items. 

Field

Required

Format

Notes

taxAmount

Yes

Whole cents, not greater than amount

A non-zero tax must fall within the brand's tax range (see the brand matrix). UniPay doesn't check this; the network does

taxIndicator

Yes

P (tax provided), N (not provided) or E (exempt). Uppercase

Send P when there is tax and E only for tax-exempt purchases. 

orderCode

Yes

Up to 17 characters

Your PO or order number. UniPay rejects longer values in sale and sale-auth, but does not check them in capture

Amex

Level II for Amex turns on when you send holderType=O, or when the card is flagged as commercial.

Field

Required

Format

Notes

holderType

Recommended

O

Marks the card as organizational. The default is P

taxAmount

Yes

Whole cents, up to 999999

 

customerAccountCode

Yes

Up to 17 characters

The cardholder's reference, such as a PO number

shippingZipCode

Yes

ZIP code

Where the order is delivered. If not sent, zipCode is used.

memo

Optional

Up to 40 characters

Charge description

Level III order fields

A Level III request is the order fields below plus items. One template works for both Visa and Mastercard. A field one brand doesn't use is still accepted.

Recommended: Send the full Level III request on every Visa and Mastercard transaction. You don't need to know what the card qualifies for. Each card settles at the best tier it's eligible for: a card eligible for Level II only still gets the Level II rate. Include localTaxAmount with localTaxIndicator=P. Without it the tax is reported as exempt and the Level II fallback is lost. For Amex, leave out items and send the Level II fields only.

Field

Visa

Mastercard

Format

Notes

items

Required

Required

See Line items

Its presence is what makes the request Level III

orderCode

Required

Required

Up to 17 characters

If not sent, the transaction ID is used

orderDate

Required

Ignored

yyyyMMdd

Always send it for Visa

taxAmount

Required

Required

Whole cents

This is the upper limit for localTaxAmount 

localTaxAmount

Required

Required

Whole cents, not greater than taxAmount

For US orders, set taxAmount and localTaxAmount to the same total sales tax.

localTaxIndicator

Required

Required

P - Tax was charged and you're sending the amount. This is the normal case.

N - You aren't sending tax information.

E - The purchase is tax-exempt, for example a government or nonprofit buyer with an exemption certificate.

Always send it with localTaxAmount. If it's missing, the tax is reported as exempt

taxRate

Recommended

Ignored

Percentage × 100, max 9999

825 = 8.25%. 200 = 2%, not $2

shippingAmount

Recommended

Recommended

Whole cents

 

dutyAmount

Recommended

Recommended

Whole cents

 

shippingZipCode

Recommended

Recommended

ZIP code

Where the order is delivered. If not sent, zipCode is used.

shippingOriginZipCode

Recommended

Recommended

ZIP code

Where the order ships from, or the merchant's ZIP code if nothing is shipped.
  • Send nationalTaxAmount only if there is national tax. Even 0 is reported as "tax provided."

Not shipping anything?

The ship-to and ship-from ZIP codes tell the card network where the goods went and where they came from. Networks use them to check the tax on the order, since sales tax depends on the destination. They matter mostly for physical goods.

For services, subscriptions or digital goods, leave out shippingZipCode. Zift uses the billing zipCode from the same request instead. Set shippingOriginZipCode to the merchant's ZIP code, and send shippingAmount=0 and dutyAmount=0.

Always send the billing address (street, zipCode). It's the fallback for shippingZipCode.

Line Items 

Used for Level III and CEDP. Line items are the individual products or services in the order, the same lines you'd print on an itemized invoice or purchase order. Each line item describes one product or service: what it is (code, description), how many (quantity, unitMeasure), what it cost (unitCostAmount, totalAmount) and its tax (taxAmount). If your system already produces invoices or order details, you have line item data.

Send all line items in one items field. Wrap each item in parentheses, join fields with ;, and put items directly next to each other with )( between them:

items=(code=SKU001;description=Widget;quantity=1;unitMeasure=EA;totalAmount=1000)(code=SKU002;description=Bracket;quantity=2;unitMeasure=EA;totalAmount=1000)

In this table, "Required" means needed to qualify for the rate. UniPay itself rejects only a missing totalAmount.

Field

Visa

Mastercard

Format

totalAmount

Required

Required

Whole cents, 1 to 99999999. Visa excludes the item tax; Mastercard includes it (see Amount math)

code

Required

Required

Up to 12 characters, such as your SKU

description

Required

Required

Up to 35 characters

quantity

Required

Required

0.0001 to 999.9999, up to 4 decimal places

unitMeasure

Required

Required

A standard unit code up to 3 characters, such as EA (each), LB (pound) or HR (hour).

taxAmount

Required

Required

Whole cents, not greater than the item's totalAmount

unitCostAmount

Required

Ignored

Dollars, not cents (10.00), up to 4 decimal places

commodityCode

Required

Ignored

Up to 12 characters. A standard product classification code, such as an 8-digit UNSPSC code (for example 43211503). Map each product to a code in your catalog.

discountAmount

Only if the item is discounted

Not supported

Whole cents

Formatting rules

  • Separate items with )( only. Any other separator makes the server read one item with a broken totalAmount, or reject the request.
  • Never use a semicolon, or the sequence )(, inside a value.
  • Don't use these characters: & % | [ ] { }, backslash, or non-Latin letters. URL-encode the whole items value.
  • Don't use commas in quantity or unitCostAmount. A comma is read as a thousands separator without an error, so 1,5 becomes 15.
  • An empty value (field=) is treated as not sent.

Amount math

Your amounts must add up, and the rule differs by brand. Zift doesn't check the totals, so a mismatch is accepted but can affect the qualification.

Visa: line totals exclude tax

\text{item totalAmount} = \text{quantity} \times \text{unitCost} - \text{item discountAmount}
\text{amount} = \sum \text{item totalAmount} - \text{discountAmount} + \text{taxAmount} + \text{shippingAmount} + \text{dutyAmount}

If the order has an order-level discount, send it in discountAmount so the totals add up. Use either an order-level discount or per-item discounts, not both.

The Visa sample below: 3 items of 1000 + tax 240 + shipping 100 = 3340.

Mastercard: line totals include tax

\text{item totalAmount} = \text{quantity} \times \text{unitCost} + \text{item taxAmount}
\text{amount} = \sum \text{item totalAmount} + \text{shippingAmount} + \text{dutyAmount}

The Mastercard sample below: (100 + 2) + (800 + 19) = 921.

Tax rules

  • The sum of the item taxAmount values should equal localTaxAmount, and localTaxAmount can't exceed taxAmount.
  • taxRate is a rate, not an amount: the percentage × 100. Zift accepts 10000 for 10%.
  • All money fields are whole cents, except unitCostAmount, which is in dollars.

Sale-auth and capture

Line items sent with a sale-auth can't be replaced in the capture. If you send line items at authorization and different ones at capture, the authorization's line items stay on the transaction. If you don't know the final items at authorization, send them only in the capture.

What you send

What ends up on the transaction

Line items in the sale-auth and different line items in the capture

The sale-auth line items

No line items in the sale-auth, line items in the capture

The capture line items

Tax, order number or similar order fields in the capture

The capture values replace the earlier ones

Those fields left out of the capture

The sale-auth values stay

Other capture rules:

  • Partial capture: if you capture less than you authorized, also send taxAmount. Otherwise we receive the full authorized tax against a smaller amount.
  • Validation: Zift checks the limits on order fields (taxAmount, localTaxAmount, orderCode, taxRate, commodityCode) in sale and sale-auth, but not in capture. Check them yourself before capturing.
  • Line items are always validated. An invalid line item in a capture rejects the request, even when the sale-auth already has line items.

Sample requests

These samples run against the sandbox at https://sandbox-secure.zift.io/gates/xurl. Replace the three credential placeholders with your own. --data-urlencode handles the encoding for you, including the parentheses and semicolons in items. In production, use https://secure.zift.io/gates/xurl.

Mastercard, Level II

curl -X POST https://sandbox-secure.zift.io/gates/xurl \
  --data-urlencode "requestType=sale" \
  --data-urlencode "userName=$ZIFT_USER" \
  --data-urlencode "password=$ZIFT_PASSWORD" \
  --data-urlencode "accountId=$ZIFT_ACCOUNT_ID" \
  --data-urlencode "accountType=R" \
  --data-urlencode "accountNumber=5499740000000057" \
  --data-urlencode "accountAccessory=0729" \
  --data-urlencode "csc=111" \
  --data-urlencode "amount=921" \
  --data-urlencode "holderName=John Smith" \
  --data-urlencode "holderType=P" \
  --data-urlencode "transactionIndustryType=EC" \
  --data-urlencode "street=8320 Marcus Street" \
  --data-urlencode "city=Huntsville" \
  --data-urlencode "state=AL" \
  --data-urlencode "zipCode=85284" \
  --data-urlencode "countryCode=US" \
  --data-urlencode "orderCode=120-8498" \
  --data-urlencode "taxAmount=21" \
  --data-urlencode "taxIndicator=P"

Mastercard, Level III (two line items)

Line totals include their tax: (100 + 2) + (800 + 19) = 921.

curl -X POST https://sandbox-secure.zift.io/gates/xurl \
  --data-urlencode "requestType=sale" \
  --data-urlencode "userName=$ZIFT_USER" \
  --data-urlencode "password=$ZIFT_PASSWORD" \
  --data-urlencode "accountId=$ZIFT_ACCOUNT_ID" \
  --data-urlencode "accountType=R" \
  --data-urlencode "accountNumber=5499740000000057" \
  --data-urlencode "accountAccessory=0729" \
  --data-urlencode "csc=111" \
  --data-urlencode "amount=921" \
  --data-urlencode "holderName=John Smith" \
  --data-urlencode "holderType=P" \
  --data-urlencode "transactionIndustryType=EC" \
  --data-urlencode "street=8320 Marcus Street" \
  --data-urlencode "city=Huntsville" \
  --data-urlencode "state=AL" \
  --data-urlencode "zipCode=85284" \
  --data-urlencode "countryCode=US" \
  --data-urlencode "orderCode=120-8498" \
  --data-urlencode "taxAmount=21" \
  --data-urlencode "localTaxAmount=21" \
  --data-urlencode "localTaxIndicator=P" \
  --data-urlencode "shippingAmount=0" \
  --data-urlencode "dutyAmount=0" \
  --data-urlencode "shippingZipCode=84660" \
  --data-urlencode "shippingOriginZipCode=84660" \
  --data-urlencode "items=(code=001;description=SiteSetup;quantity=1;unitMeasure=EA;taxAmount=2;totalAmount=102)(code=002;description=EquipmentCharge;quantity=1;unitMeasure=EA;taxAmount=19;totalAmount=819)"

Visa, Level III data for Commercial Product 3 (three line items)

Line totals exclude tax: 3 × 1000 + tax 240 + shipping 100 = 3340. The merchant must also participate in Visa CEDP to get the Product 3 rate.

curl -X POST https://sandbox-secure.zift.io/gates/xurl \
  --data-urlencode "requestType=sale" \
  --data-urlencode "userName=$ZIFT_USER" \
  --data-urlencode "password=$ZIFT_PASSWORD" \
  --data-urlencode "accountId=$ZIFT_ACCOUNT_ID" \
  --data-urlencode "accountType=R" \
  --data-urlencode "accountNumber=4111111111111111" \
  --data-urlencode "accountAccessory=079" \
  --data-urlencode "csc=111" \
  --data-urlencode "amount=3340" \
  --data-urlencode "holderName=John Smith" \
  --data-urlencode "holderType=P" \
  --data-urlencode "transactionIndustryType=EC" \
  --data-urlencode "street=8320 Marcus Street" \
  --data-urlencode "city=Huntsville" \
  --data-urlencode "state=AL" \
  --data-urlencode "zipCode=85284" \
  --data-urlencode "countryCode=US" \
  --data-urlencode "orderCode=PO12345671234567" \
  --data-urlencode "orderDate=20260916" \
  --data-urlencode "taxAmount=240" \
  --data-urlencode "taxRate=800" \
  --data-urlencode "localTaxAmount=240" \
  --data-urlencode "localTaxIndicator=P" \
  --data-urlencode "shippingAmount=100" \
  --data-urlencode "dutyAmount=0" \
  --data-urlencode "shippingZipCode=85284" \
  --data-urlencode "shippingOriginZipCode=85284" \
  --data-urlencode "items=(code=SKU001;commodityCode=500110;description=Item one;quantity=1;unitMeasure=EA;unitCostAmount=10.00;taxAmount=80;totalAmount=1000)(code=SKU002;commodityCode=500120;description=Item two;quantity=2;unitMeasure=EA;unitCostAmount=5.00;taxAmount=80;totalAmount=1000)(code=SKU003;commodityCode=500130;description=Item three;quantity=1;unitMeasure=EA;unitCostAmount=10.00;taxAmount=80;totalAmount=1000)"

Amex, Level II

No items: sending them drops Amex Level II.

curl -X POST https://sandbox-secure.zift.io/gates/xurl \
  --data-urlencode "requestType=sale" \
  --data-urlencode "userName=$ZIFT_USER" \
  --data-urlencode "password=$ZIFT_PASSWORD" \
  --data-urlencode "accountId=$ZIFT_ACCOUNT_ID" \
  --data-urlencode "accountType=R" \
  --data-urlencode "accountNumber=371449635392376" \
  --data-urlencode "accountAccessory=0729" \
  --data-urlencode "csc=111" \
  --data-urlencode "amount=3342" \
  --data-urlencode "holderName=John Smith" \
  --data-urlencode "holderType=O" \
  --data-urlencode "transactionIndustryType=EC" \
  --data-urlencode "street=8320 Marcus Street" \
  --data-urlencode "city=Huntsville" \
  --data-urlencode "state=AL" \
  --data-urlencode "zipCode=85284" \
  --data-urlencode "countryCode=US" \
  --data-urlencode "taxAmount=200" \
  --data-urlencode "customerAccountCode=PO12345" \
  --data-urlencode "shippingZipCode=85284" \
  --data-urlencode "memo=Office supplies"