SmartGare
API referenceEndpoints

Search permits approaching or past expiry

Returns a cross-fleet worklist in station time, including the expiry watch's durable announcement history. **Required permission:** `referential.vehicle:read`

GET/referential/v1/vehicle-permits/expiring

Returns a cross-fleet worklist in station time, including the expiry watch's durable announcement history.

Required permission: referential.vehicle:read

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a permit number or vehicle plate.

state?string

Restrict to permits approaching expiry or already expired.

Value in

  • "ALL"
  • "EXPIRING"
  • "EXPIRED"
horizon_days?integer

Future window in days, from station today.

Formatint32
Range1 <= value <= 365
page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/referential/v1/vehicle-permits/expiring"
{  "data": [    {      "announcements": [        {          "announced_on": "2019-08-24",          "created_at": "2019-08-24T14:15:22Z",          "horizon_days": 0,          "kind": "string",          "permit_id": "string"        }      ],      "days_remaining": 0,      "id": "string",      "number": "string",      "plate_number": "string",      "source": "string",      "valid_from": "2019-08-24",      "valid_until": "2019-08-24",      "vehicle_id": "string"    }  ],  "page": 0,  "size": 0,  "total": 0}