Contents
On this page

Get Driver - Plugixa Chauffeur

GET /plugixa-chauffeur/v1/drivers/{id}

Read one driver.

Needs Plugixa Chauffeur Pro with an active licence. 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/drivers/2

Path parameters

Name Type Description
id integer The driver’s id

Responses

200 OK. data is the driver.

{
  "success": true,
  "message": "",
  "data": {
    "id": "2",
    "language_code": null,
    "translation_group": null,
    "name": "Thomas Leroy",
    "slug": "thomas-leroy",
    "email": "thomas.leroy@example.com",
    "phone": "+33 6 98 76 54 32",
    "photo_id": null,
    "bio": "Ten years of airport and event transfers.",
    "status": "active",
    "display_order": "0",
    "created_at": "2026-11-12 09:30:00"
  }
}
Field Type Meaning
data.id string The driver id, as a string. Use it as a booking’s driver_id
data.email string E-mail address
data.phone string Phone number
data.photo_id string|null Attachment id of the photo
data.photo_url string URL of the photo. Only present when photo_id is set
data.bio string Plain text
data.status string active or inactive
data.display_order string Position in lists

Errors

Status Code When
404 rest_error No driver with that id.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share