Skip to content
Adyen

Adyen ESD customer reference: the 25 character limit

Adyen requires customerReferenceNumber for Level 2 and Level 3, up to 25 ASCII characters, not starting with a space and not only spaces or zeros. A longer purchase order number is a malformed required field, and Adyen then drops all Level 2 and Level 3 data from the payment.

Last reviewed Nov 24, 2026
On this page

The customer reference is usually your buyer's purchase order number. Buyers write long ones.

The rule

  • Adyen, Level 2/3 data: levelTwoThree.customerReferenceNumber is required for Level 2 and Level 3. ASCII, maximum 25 characters, must not start with a space or contain only spaces or zeros.
  • If a required field is missing or incorrectly formatted for both levels, Adyen drops all Level 2 and Level 3 data. The payment still goes through.
  • Stripe handles the same field differently: it truncates payment_details.customer_reference and order_reference to 25 alphanumeric characters, excluding spaces, before sending them (Stripe API, Create a PaymentIntent).

Why it happens

The reference is copied as typed on the purchase order, with a department or site suffix.

Wrong and right

Wrong: 33 characters

{ "enhancedSchemeData": { "levelTwoThree": { "customerReferenceNumber": "PO-2026-000048120-FACILITIES-EAST", "totalTaxAmount": 1662 } } }

Right: the PO number alone

{ "enhancedSchemeData": { "levelTwoThree": { "customerReferenceNumber": "PO-2026-000048120", "totalTaxAmount": 1662 } } }

Keep the full reference on your invoice; the card network only needs the part the buyer's system matches.

What to do

  1. Trim the reference to 25 characters, keeping the PO number and dropping suffixes.
  2. Strip leading spaces, and send nothing rather than all zeros when the buyer gave no reference.

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