Contents
On this page

Get Vehicle Type - Plugixa Chauffeur

GET /plugixa-chauffeur/v1/vehicle-types/{id}

Read one vehicle type.

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/1

Path parameters

Name Type Description
id integer The vehicle type’s id

Responses

200 OK. data is the vehicle type.

{
  "success": true,
  "message": "",
  "data": {
    "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"
  }
}
Field Type Meaning
data.id string The type id, as a string
data.description string Plain text
data.image_id string|null Attachment id of its image
data.image_url string URL of the image. Only present when image_id is set
data.display_order string Position in lists
data.language_code string|null Language of this entry on a multilingual site
data.translation_group string|null Links the translations of one type

Errors

Status Code When
404 rest_error No vehicle type with that id.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types/1" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types/1');
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 response = await fetch('https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicle-types/1', {
  headers: {
    'Authorization': `Basic ${auth}`,
  },
});
const { data } = await response.json();

Quick Links

Share