Show / Hide Table of Contents

    400 - Invalid Region

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

    The invalid_region error code will be returned if you attempt to create or update a shipment but provide an invalid region for an address.

    This error code will be returned, for example, if you attempt to create a shipment with a country_iso_code of US but do not provide a valid US state in the region property, e.g.:

    {
      "addresses": [
        {
          "address_type": "destination",
          "country_iso_code": "US",
          "region": "Lancashire"
        }
      ]
    }
    
    Note

    Not all countries have formally-recognised regions and therefore this property will not be validated or checked in all cases. However, the value will be checked for the following countries:

    • GB - Great Britain
    • IE - Ireland
    • US - United States of America
    • AU - Australia
    • CA - Canada
    Back to top Copyright © Sorted Group 2023. Generated by DocFX