Skip to main content

List service zones

GET /v1/service_zones

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Query parameters​

NameTypeRequired
offsetnumber
limitnumber
orderarray of array of tuple
wherearray of object
selectarray of "attributes" | "calendar" | "code" | "created_at" | "created_by" | "deleted_at" | "deleted_by" | "depot_id" | "disabled" | "geometry" | "group_id" | "id" | "max_lat" | "max_lon" | "min_lat" | "min_lon" | "modified_at" | "modified_by" | "name" | "owners" | "priority" | "tags"

Responses​

200​

resource: array of PartialServiceZoneWithId

FieldTypeRequired
codenull or string
attributesobject
disabledboolean
namestring
calendararray of object
created_atstring
modified_atnull or string
deleted_atnull or string
created_bystring
modified_bynull or string
deleted_bynull or string
ownersarray of string
tagsarray of string
prioritynumber
depot_idnull or string
group_idstring
geometryobject
min_lonnumber
min_latnumber
max_lonnumber
max_latnumber
idstringyes

Example​

curl -X GET 'https://routes-api.cloud.zoopit.no/v1/service_zones'
-H 'Authorization: Bearer <token>'

Try it in the interactive Routes API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.