Show / Hide Table of Contents

    400 - Invalid Postal Code

    • v2
    • validation
    • pro
    • api
    • shipments
    • error
    • 400
    Tip

    The invalid_postal_code error code is returned if you provide a postal_code value that is not in a valid format for the corresponding country_iso_code

    This error code will be returned, for example, if you provide a postal_code value for GB that is not a valid UK postcode format, e.g.:

    {
      "addresses": [
        {
          "address_type": "origin",
          "postal_code": "90210",
          "country_iso_code": "GB"
        }
      ]
    }
    
    Tip

    Sorted uses standard international formats for postal codes. Not all countries support postal codes or zip codes, and therefore these properties may not always be validated. However, where there is a recognised standard format of postal code or zip code, and the country_iso_code requires a valid postal code, the value provided will be checked.

    Back to top Copyright © Sorted Group 2023. Generated by DocFX