Address validation for cross-border shipping
Answer first
Validate the postcode first, then match city, state and country. Normalize apartment and unit fields before label creation; a valid postcode alone does not prove the street address is deliverable.
Key facts
- 241 countries/regions, about 5.09 million postal-code records
- 13,833 China customs HS codes plus US HTS 10-digit lookup
- 9,475 airports, 10,480 ports and 1,618 FBA warehouses
- 27 currencies with a six-hour FX cache
Start with the postcode, not the street
Postcode formats differ by country: US ZIP, Canadian alphanumeric, UK outward/inward codes. Parse the postcode according to the destination country before comparing city and state.
Normalize unit and building fields
Apartment, suite and building numbers are frequent causes of failed delivery. Keep them in a separate field and avoid merging them into street address line 1.
Know what validation can and cannot prove
A postcode lookup confirms the area and default city. It does not confirm that a specific street number exists, so carrier-level validation is still needed for high-value shipments.
Steps
- Parse the destination country and postcode format
- Match city and state to the postcode result
- Move unit details into a dedicated field
- Run carrier validation before purchasing the label
Questions
Is a valid ZIP enough to ship?
No. It confirms the delivery area, not the street or recipient. Carrier validation is still recommended.
Should I use the customer city or the postcode city?
Use the city returned by the postcode lookup when creating the label, then flag mismatches for review.
How should I store Canadian postcodes?
Uppercase without spaces, then format as A1A 1A1 for display; keep the normalized value for matching.
Cite this page
Cite as: SinoTradePal (https://www.sinotradepal.com); data as of the page lastmod.
Sources
- National postal operator format guidance
- SinoTradePal global postal dataset (Nov 2026 snapshot)