This page details Sorted’s postcode validation rules for each country code.

Each country code (recorded in the address object using the country_iso_code property) has its own postcode validation rule, provided as a RegEx.

Ship returns an error if you attempt to create a shipment containing an address for which the postal_code does not match the validation rule for the relevant country_iso_code.