SmartGare
API referenceEndpoints

List departure zones

Returns the current zones by code, or the retired ones with status=RETIRED. **Required permission:** `referential.bay:read`

GET/referential/v1/departure-zones

Returns the current zones by code, or the retired ones with status=RETIRED.

Required permission: referential.bay:read

AuthorizationBearer <token>

In: header

Query Parameters

status?string
Default"ACTIVE"

Value in

  • "ACTIVE"
  • "RETIRED"

Response Body

*/*

curl -X GET "https://example.com/referential/v1/departure-zones"
[  {    "bay_ids": [      "string"    ],    "code": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "locality_ids": [      "string"    ],    "name": "string",    "retired_at": "2019-08-24T14:15:22Z",    "retirement_reason": "string",    "spare_bay_id": "string",    "status": "string"  }]