Skip to content
Adyen

Adyen ESD ship from postal code: the US format

Adyen takes shipFromPostalCode and destination.postalCode as ASCII, up to 10 characters, and for the US in five or nine digit format, such as 10001 or 10001-0000. A ZIP code stored as a number loses its leading zero, so 02110 becomes 2110 and fails the format; Adyen then drops the badly formatted optional fields.

Last reviewed Nov 24, 2026
On this page

ZIP codes look like numbers, and that is the problem: a number has no leading zero.

The rule

  • Adyen, Level 2/3 data: levelTwoThree.shipFromPostalCode and destination.postalCode are ASCII, maximum 10 characters. For the US, five or nine digits, for example 10001 or 10001-0000. For Canada, six characters, for example M4B 1G5.
  • If an optional field is incorrectly formatted, Adyen drops the optional fields and sends the rest.

Why it happens

Warehouses in New England, New Jersey and Puerto Rico have ZIP codes that start with 0. A database column or spreadsheet that stores them as numbers turns 02110 into 2110.

Wrong and right

Wrong: four digits

{ "enhancedSchemeData": { "levelTwoThree": { "shipFromPostalCode": "2110", "destination": { "postalCode": "46204", "stateOrProvince": "IN", "countryCode": "US" } } } }

Right: the ZIP code as text, with its zero

{ "enhancedSchemeData": { "levelTwoThree": { "shipFromPostalCode": "02110", "destination": { "postalCode": "46204", "stateOrProvince": "IN", "countryCode": "US" } } } }

What to do

  1. Store postal codes as text everywhere they pass through.
  2. For US codes, pad to five digits only when you know the source dropped the zero; otherwise fix the source.

Sources

  • Adyen, Level 2/3 data, postal code formats and what Adyen does with invalid optional fields (read November 24, 2026).
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