Ordexs API v1 Get an API key

Geography

List a country's regions

GEThttps://api.ordexs.com/v1/regions
Any API key

The first-level areas of a country (wilayas in Algeria). Use code in shipping addresses.

Query parameters

  • countrystringRequired

    ISO 3166-1 alpha-2 country code, for example DZ.

Returns

200 OK · The regions. RegionList

  • objectstringRequired

    always "list"

  • has_morebooleanRequired
  • next_cursorstring or nullRequired

    Pass as cursor to get the next page. null on the last page.

  • dataarray of RegionsRequired
    6 child fields
    • objectstring

      always "region"

    • countrystring
    • codestring
    • iso_codestring or null

      ISO 3166-2 code when one exists.

    • namestring
    • name_localstring or null

Errors

Every error has the same shape. This endpoint can answer with: