Contents
On this page

Get Flat Rate Route - Plugixa Chauffeur

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

Read one flat-rate route, active or not.

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/routes/2

Path parameters

Name Type Description
id integer The flat rate route’s id

Responses

200 OK. data is the flat rate route.

{
  "success": true,
  "message": "",
  "data": {
    "id": "2",
    "name": "CDG to Paris centre",
    "pickup_label": "Paris Charles de Gaulle Airport",
    "dropoff_label": "Paris city centre",
    "price": 75.0,
    "status": "active",
    "display_order": "0",
    "created_at": "2026-11-12 09:30:00"
  }
}
Field Type Meaning
data.id string The route id, as a string. The wizard sends it as route_id
data.pickup_label string|null Saved as the booking’s pickup address
data.dropoff_label string|null Saved as the booking’s drop-off address
data.price number The fixed fare, whatever the vehicle
data.status string active or inactive. Only active routes are offered
data.display_order string Position in lists

Errors

Status Code When
404 rest_error No flat rate route with that id.

Plus the errors every endpoint can return.

Examples

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

Quick Links

Share