List Geozones

GET /api/v2/geozones.json

Get or search for one or more Geozones.

Scopes

Requires either the geozones or geozones.readonly OAuth scope.

Query Parameters

Accepts the following query parameters:

id:in
Return Geozones by a comma-separated list of IDs.
title

Used to find a single Geozone by its title property. The title must match the correct spelling (case-insensitive) - does not permit partial matches.


JSON response

Evance will return a JSON object containing the following properties:

success
A successful search request containing zero or more results will always return a true value.
status
An integer matching the HTTP response code. A successful request will have a status of 200.
data
An array containing zero or more Geozone data objects.
pagination
Search results include a pagination object contain information about the current page, total pages, the limit per page and the total number of results available.
  • limit - the number of results to return per page
  • page - the current page number
  • total - the total number of available results
  • totalPages - the total number of available pages of results
links
An object containing links to traverse available search results.
  • self - the URL for the current search.
  • previous - a URL for the previous results page, or null if there isn't one.
  • next - a URL for the next results page, or null if there isn't one


Example response

In the example below you're able to see examples of geozones.

{
    "success": true,
    "status": 200,
    "data": [
        {
            "id": 48646,
            "title": "East Anglia - UK",
            "description": "All counties in East Anglia, United Kingdom",
            "createdOn": "2022-05-21T15:54:05+00:00"
            "modifiedOn": "2022-05-21T15:54:05+00:00",
            "countries": [
                {
                    "countryCode": "GB",
                    "regionsCodes": ["GB-SFK", "GB-NFK", "GB-CAM"]
                }
            ] 
        }, {
            "id": 52367,
            "title": "Northern America",
            "description": "Countries in Northern America",
            "createdOn": "2022-05-21T15:54:05+00:00"
            "modifiedOn": "2022-05-21T15:54:05+00:00",
            "countries": [
                {
                    "countryCode": "CA",
                    "regionsCodes": []
                },
                {
                    "countryCode": "MX",
                    "regionsCodes": []
                },
                {
                    "countryCode": "US",
                    "regionsCodes": []
                }
            ] 
        }
    ],
    "pagination": {
        "page": 1,
        "limit": 100,
        "total": 1,
        "totalPages": 1
    },
    "links": {
        "self": "https://examples.evance.me/api/v2/geozones.json",
        "previous": null,
        "next": null
    }
}