Skip to content
Adyen

Adyen ESD in additionalData: the Checkout API v72 error

On Adyen Checkout API v72, a payment request that sends enhanced scheme data as additionalData keys returns a validation error, so the payment itself fails. Move Level 2 and Level 3 data to enhancedSchemeData.levelTwoThree, where customerReference becomes customerReferenceNumber.

Last reviewed Nov 24, 2026
On this page

Older Adyen integrations send Level 2 and Level 3 data as flat string keys in additionalData. On Checkout API v72 that no longer works, and unlike most ESD problems, the payment does not quietly go through.

The rule

  • Adyen, Upgrade to Checkout API v72: a v72 payment request that includes the additionalData parameters for enhanced scheme data returns a validation error. You must use the parameters in the enhancedSchemeData object.
  • Level 2 and Level 3 data goes in enhancedSchemeData.levelTwoThree, with item lines in the itemDetailLines array and amounts as integers in minor units (Adyen, Level 2/3 data).

Why it happens

The version bump is done for another reason, and the ESD mapping still writes the legacy keys.

Wrong and right

Wrong: legacy keys on v72

{
  "amount": { "currency": "USD", "value": 10058 },
  "additionalData": {
    "enhancedSchemeData.customerReference": "PO-48120",
    "enhancedSchemeData.totalTaxAmount": "658",
    "enhancedSchemeData.itemDetailLine1.description": "Hex bolts 3/8 in, zinc",
    "enhancedSchemeData.itemDetailLine1.quantity": "200",
    "enhancedSchemeData.itemDetailLine1.unitPrice": "35",
    "enhancedSchemeData.itemDetailLine1.totalAmount": "7000"
  }
}

Right: the structured object

{
  "amount": { "currency": "USD", "value": 10058 },
  "enhancedSchemeData": {
    "levelTwoThree": {
      "customerReferenceNumber": "PO-48120",
      "totalTaxAmount": 658,
      "itemDetailLines": [
        { "description": "Hex bolts 3/8 in, zinc", "productCode": "HB-38-ZN", "commodityCode": "31161500",
          "quantity": 200, "unitOfMeasure": "EA", "unitPrice": 35, "totalAmount": 7000 }
      ]
    }
  }
}

Values become numbers, the line number moves into the array, and customerReference becomes customerReferenceNumber.

What to do

  1. Move the ESD mapping to enhancedSchemeData.levelTwoThree before or with the v72 upgrade.
  2. With manual capture, send the same object on the capture request.

Sources

Check one transaction

Run this sale through the checker.

The sale from this page is already filled in. Press Check transaction, then change it to one of your own. No account needed.

Allow analytics cookies? Privacy