SmartGare
API referenceEndpoints

Search vehicles

Returns a page of vehicles matching optional text, carrier, type, status and standing (REGULAR or REPLACEMENT). **Required permission:** `referential.vehicle:read`

GET/referential/v1/vehicles

Returns a page of vehicles matching optional text, carrier, type, status and standing (REGULAR or REPLACEMENT).

Required permission: referential.vehicle:read

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a plate, fleet number or identifier value.

carrier_id.value?string
fleet_number?string

Matches part of a fleet number.

type?string

Vehicle category code; unknown is not-found.

status?string

Vehicle lifecycle status.

Value in

  • "ACTIVE"
  • "SUSPENDED"
permit_covers_today?boolean

Keep only vehicles a non-revoked permit covers today (true), or only those none covers (false); computed at read time.

standing?string

Keep only coaches of this standing: REGULAR or REPLACEMENT.

Value in

  • "REGULAR"
  • "REPLACEMENT"
sort?string

Result ordering.

Value in

  • "plateAsc"
  • "plateDesc"
  • "newest"
  • "oldest"
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/vehicles"
{  "data": [    {      "brand": "string",      "capacity": 0,      "carrier_id": "string",      "created_at": "2019-08-24T14:15:22Z",      "fleet_number": "string",      "id": "string",      "length_m": 0,      "model": "string",      "plate_number": "string",      "replacement": true,      "seating_mode": "string",      "service_category": "string",      "standing": "string",      "status": "string",      "suspension_reason": "string",      "type": "string",      "uhf_tag_missing": true,      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}