Contents
Get Vehicle - Plugixa Chauffeur
GET /plugixa-chauffeur/v1/vehicles/{id}
Read one vehicle, published or draft.
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/vehicles/3
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The vehicle’s id |
Responses
200 OK. data is the vehicle.
{
"success": true,
"message": "",
"data": {
"id": "3",
"language_code": null,
"translation_group": null,
"name": "Mercedes E-Class",
"slug": "mercedes-e-class",
"description": "<p>Executive sedan with leather seats and Wi-Fi.</p>",
"vehicle_type_id": "1",
"image_id": "57",
"gallery": [
58,
59
],
"max_passengers": 3,
"max_luggage": 3,
"base_location_id": null,
"base_price": 20.0,
"price_per_distance": 1.8,
"price_per_hour": 55.0,
"min_price": 45.0,
"status": "published",
"display_order": "0",
"created_at": "2026-11-12 09:30:00",
"created_by": "1",
"modified_at": "2026-11-12 09:30:00",
"modified_by": "1",
"image_url": "https://your-site.example/wp-content/uploads/2026/11/e-class-300x200.jpg"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The vehicle id, as a string |
data.vehicle_type_id |
string|null |
Its vehicle type |
data.image_id |
string|null |
Media library attachment id of the main photo |
data.image_url |
string |
Medium-size URL of the main photo. Only present when image_id is set |
data.gallery |
integer[] |
Attachment ids of the extra photos |
data.max_passengers |
integer |
Seats. The wizard only offers the vehicle to parties that fit |
data.max_luggage |
integer |
Bags |
data.base_price |
number |
Fixed part of every fare |
data.price_per_distance |
number |
Price per distance unit, doubled for a return transfer |
data.price_per_hour |
number |
Price per hour, for hourly bookings |
data.min_price |
number |
Floor for a fare. 0 means no floor |
data.status |
string |
published (offered in the wizard) or draft |
data.display_order |
string |
Position in lists |
Unlike the list, a single vehicle does not include vehicle_type_name or base_location_name.
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No vehicle with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicles/3" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-chauffeur/v1/vehicles/3');
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/vehicles/3', {
headers: {
'Authorization': `Basic ${auth}`,
},
});
const { data } = await response.json();
Quick Links
Share