Contents
On this page

List Vehicle Types - Plugixa Chauffeur

GET /plugixa-chauffeur/v1/vehicle-types

List vehicle types with the number of vehicles in each.

Needs a signed-in user with the plugixa_chauffeur_manage capability (administrators have it after activation).

Request

GET https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types?orderby=display_order&order=ASC

Query parameters

Name Type Default Description
search string Matches part of the name or the description.

Plus the list parameters every list accepts. orderby accepts created_at (the default), name and display_order.

Responses

200 OK. data.items is one page of types.

{
  "success": true,
  "message": "",
  "data": {
    "items": [
      {
        "id": "1",
        "language_code": "",
        "translation_group": "",
        "name": "Executive sedan",
        "slug": "executive-sedan",
        "description": "Up to 3 passengers with luggage.",
        "image_id": null,
        "display_order": "0",
        "created_at": "2026-11-12 09:30:00",
        "vehicle_count": 4
      }
    ],
    "total": 3,
    "limit": 20,
    "offset": 0
  }
}
Field Type Meaning
data.items array One page of rows
data.total integer Rows matching the filters, before paging
data.limit integer Rows per page used. 999999 when you asked for every row
data.offset integer Rows skipped
data.items[] object A type, as in Get Vehicle Type
data.items[].vehicle_count integer Vehicles of this type, drafts included. Only in the list

In the list, image_url is the thumbnail size; a single read returns the medium size.

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types?orderby=display_order&order=ASC" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query([
    'orderby' => 'display_order',
    'order'   => 'ASC',
]);
$ch = curl_init('https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = Buffer.from(`admin:${process.env.WP_APP_PASSWORD}`).toString('base64');
const query = new URLSearchParams({ orderby: 'display_order', order: 'ASC' });
const response = await fetch(`https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types?${query}`, {
  headers: {
    'Authorization': `Basic ${auth}`,
  },
});
const { data } = await response.json();

Quick Links

Share