List service zones
GET /v1/service_zones
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Query parameters
| Name | Type | Required |
|---|---|---|
offset | number | |
limit | number | |
order | array of array of tuple | |
where | array of object | |
select | array 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
| Field | Type | Required |
|---|---|---|
code | null or string | |
attributes | object | |
disabled | boolean | |
name | string | |
calendar | array of object | |
created_at | string | |
modified_at | null or string | |
deleted_at | null or string | |
created_by | string | |
modified_by | null or string | |
deleted_by | null or string | |
owners | array of string | |
tags | array of string | |
priority | number | |
depot_id | null or string | |
group_id | string | |
geometry | object | |
min_lon | number | |
min_lat | number | |
max_lon | number | |
max_lat | number | |
id | string | yes |
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.