Divendo API 2.0

We’ve rebuilt our API from the ground up to be easier than ever to integrate our platform with your favourite software

Retrieve all states

GET/data/castates

Gets information about all CA states within your data library.

Querystring count The number of records to return
offset The number of records from a collection to skip

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "total": 13,
  "count": 50,
  "offset": 0,
  "results": [
    {
      "code": "Alberta",
      "name": "AB"
    },
    {
      "code": "British Columbia",
      "name": "BC"
    },
    {
      "code": "Manitoba",
      "name": "MB"
    },
    {
      "code": "New Brunswick",
      "name": "NB"
    }
  ]
}

Lookup a specific state

GET/data/castates/{statecode}

Gets information about a specific CA state from within your data library.

Parameters statecode The state code to search

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "code": "British Columbia",
  "name": "BC"
}