Skip to navigation

Level 2/3 Data

Send Level 2/3 data on business and commercial card payments to qualify for lower interchange.

Overview

Card networks charge lower interchange on business and commercial card payments that include extra order detail, known as Level 2 and Level 3 (L2/L3) data. Level 2 adds tax and an invoice reference. Level 3 adds line items, shipping and duty.

If you sell to businesses that pay with corporate or purchasing cards, pass l2l3Data on the checkout request. Coinflow forwards it when the payment qualifies.

L2/L3 data must be enabled on your merchant account before it is forwarded. Contact the Coinflow integrations team to enable it.

Where you can send it

EndpointSupported
POST /api/checkout/card/{merchantId}Yes
POST /api/checkout/token/{merchantId}Yes
POST /api/checkout/jwt-tokenYes. The value signed into the JWT wins over the checkout body.
POST /api/checkout/card-on-fileYes, unless the original payment was Apple Pay
POST /api/checkout/merchant-initiated-transactionYes
Apple Pay, Google Pay, Paze, zero authorizationNo

Request shape

1

Choose the level

Set level to level2 or level3. Level 2 needs only the level2 block. Level 3 needs both level2 and level3.

2

Add tax

In level2, send either {"taxExempt": false, "salesTax": {"cents": ...}} or {"taxExempt": true}. A salesTax sent alongside taxExempt: true is dropped.

3

Add Level 3 detail

For Level 3, add the discount, shipping and duty amounts, the ship-to postal code and country, and 1 to 99 line items.

The values below are examples only.

curl --request POST \
--url https://api-sandbox.coinflow.cash/api/checkout/card/YOUR_MERCHANT_ID \
--header 'x-coinflow-auth-session-key: SESSION_KEY' \
--header 'content-type: application/json' \
--data '{
"subtotal": {"currency": "USD", "cents": 50000},
"card": {"cardToken": "CARD_TOKEN", "expMonth": "10", "expYear": "30", "email": "buyer@example.com", "firstName": "Jane", "lastName": "Doe", "address1": "123 Main St", "city": "Chicago", "zip": "60601", "state": "IL", "country": "US"},
"l2l3Data": {
"level": "level3",
"level2": {
"taxExempt": false,
"salesTax": {"cents": 4000},
"invoiceReference": "INV-10023"
},
"level3": {
"discountAmount": {"cents": 0},
"shippingAmount": {"cents": 1500},
"dutyAmount": {"cents": 0},
"shipping": {"postalCode": "60601", "countryCode": "US"},
"items": [
{
"name": "Steel bracket",
"productCode": "SB-100",
"quantity": 10,
"unitCost": {"cents": 4500},
"unitOfMeasure": "EA",
"commodityCode": "65045",
"totalTaxAmount": {"cents": 4000},
"totalDiscountAmount": {"cents": 0},
"totalAmountNoTax": {"cents": 45000},
"totalAmount": {"cents": 49000}
}
]
}
}
}'

Field limits

Requests that break these limits return 422 and the payment is not attempted.

FieldLimit
level2.invoiceReference1–15 characters
level3.items1–99 items
items[].name1–26 characters
items[].productCode, items[].commodityCode1–12 characters
items[].unitOfMeasure1–8 characters
items[].quantityWhole number, at least 1
level3.shipping.postalCode1–10 letters, digits or spaces
level3.shipping.countryCodeTwo uppercase letters, e.g. US
AmountsWhole cents, 0 or more

Text fields accept letters, digits, spaces and @ ! £ * # $ ) ( + _ = . , / ; : ' " -.

When the data is forwarded

Valid L2/L3 data never blocks a payment. The payment is processed whether or not the data qualifies.

Coinflow forwards the data only when all of these are true:

  • L2/L3 data is enabled on your merchant account.
  • The card is a business or commercial card.
  • The card is Visa or Mastercard.
  • Sales tax is within the network range of the payment total: 0.1–22% for Visa, 0.1–30% for Mastercard.

Visa business cards are sent as Level 2 even when you pass Level 3 data. Tax-exempt orders are accepted and stored but are not forwarded yet.

Checking what was sent

The payment’s cardInfo shows what happened:

FieldMeaning
l2l3DataThe data you sent
l2l3Sentnone, level2 or level3
l2l3SkipReasonWhy nothing was sent, when l2l3Sent is none
ReasonMeaning
merchantNotEnabledL2/L3 data is not enabled on your account
nonCommercialCardThe card is a consumer card
missingTaxReferenceYour account has no tax reference configured; contact the integrations team
taxExemptDisabledTax-exempt orders are not forwarded yet
taxOutOfRangeSales tax is outside the network range
unsupportedCurrencyThe payment is charged in a different currency than your subtotal
unsupportedCardBrandThe card brand does not support L2/L3 data
noProcessorSupportNo processing route for this payment supports L2/L3 data for the card brand
processorUnsupportedA route that supports L2/L3 data was available, but the payment was processed on one that does not