Contents
Get Booking Form - Plugixa Chauffeur
GET /plugixa-chauffeur/v1/booking-forms/{id}
Read one booking form, draft or published.
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/booking-forms/1
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The booking form’s id |
Responses
200 OK. data is the booking form.
{
"success": true,
"message": "",
"data": {
"id": "1",
"name": "Airport transfers",
"slug": "airport-transfers",
"enable_distance": true,
"enable_hourly": true,
"enable_flat": false,
"enable_return": true,
"default_service_type": "distance",
"currency": "EUR",
"min_lead_time": 120,
"min_passengers": 1,
"settings": {
"require_phone": true,
"appearance": {
"scheme": "auto",
"accent": "#1d4ed8",
"accent_text": "",
"background": "",
"card": "",
"radius": "rounded",
"border": true
}
},
"status": "published",
"display_order": "0",
"created_at": "2026-11-12 09:30:00"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The form id, as a string. Use it in the [plugixa_chauffeur_booking_form id="1"] shortcode |
data.enable_distance |
boolean |
Offers distance bookings |
data.enable_hourly |
boolean |
Offers hourly bookings |
data.enable_flat |
boolean |
Offers flat-rate routes PRO |
data.enable_return |
boolean |
Offers return transfers |
data.default_service_type |
string |
The service the wizard starts on |
data.currency |
string |
Empty means the site currency from Settings |
data.min_lead_time |
integer |
Minutes of notice a booking needs |
data.min_passengers |
integer |
Smallest party the form accepts |
data.settings |
object |
require_phone and the wizard’s appearance |
data.status |
string |
published or draft. A draft form is not shown and cannot be booked |
data.display_order |
string |
Position in lists |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No booking form with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-chauffeur/v1/booking-forms/1" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-chauffeur/v1/booking-forms/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/booking-forms/1', {
headers: {
'Authorization': `Basic ${auth}`,
},
});
const { data } = await response.json();
Quick Links
Share