Contents
List Inspections - Plugixa Car Rental
GET /plugixa-car-rental/v1/bookings/{id}/inspections
Read a booking’s pickup and return inspections.
Needs Plugixa Car Rental Pro with the Inspections app on. The user needs the plugixa_car_rental_view capability.
Request
GET https://your-site.example/wp-json/plugixa-car-rental/v1/bookings/128/inspections
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The booking’s id |
Responses
200 OK. data holds both inspections.
{
"success": true,
"data": {
"pickup": {
"photo_urls": {
"61": "https://your-site.example/wp-content/uploads/2026/12/bumper-150x150.webp"
},
"id": 4,
"kind": "pickup",
"odometer": 18250,
"fuel": 8,
"damage": [
{
"zone": "rear_bumper",
"kind": "scratch",
"note": "Light scratch, left corner.",
"photo_ids": [
61
],
"new": false
}
],
"photo_ids": [],
"notes": "",
"status": "draft",
"signer_name": "",
"signed_at": null,
"contract_hash": ""
},
"return": {
"photo_urls": {},
"id": 0,
"kind": "return",
"odometer": null,
"fuel": null,
"damage": [],
"photo_ids": [],
"notes": "",
"status": "draft",
"signer_name": "",
"signed_at": null,
"contract_hash": ""
}
}
}
| Field | Type | Meaning |
|---|---|---|
data.pickup.id |
integer |
The inspection’s id, 0 while none has been saved |
data.pickup.kind |
string |
pickup or return |
data.pickup.odometer |
integer|null |
Reading |
data.pickup.fuel |
integer|null |
Fuel level in eighths of a tank, 0 empty to 8 full |
data.pickup.damage |
object[] |
Each: zone, kind, note, photo_ids, and new, true on a return inspection for damage the pickup inspection did not record |
data.pickup.photo_ids |
integer[] |
Photos of the car, as media library ids |
data.pickup.photo_urls |
object |
Thumbnail address of every photo named, keyed by id |
data.pickup.status |
string |
draft or signed |
data.pickup.signer_name |
string |
Who signed |
data.pickup.signed_at |
string|null |
UTC datetime it was signed |
data.pickup.contract_hash |
string |
SHA-256 of the signed PDF, empty until signed |
data.return |
object |
The return inspection, in the same shape |
An inspection that has not been saved yet comes back empty, with id 0.
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_car_rental_not_found |
No booking with that id, or it is in the trash. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-car-rental/v1/bookings/128/inspections" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-rental/v1/bookings/128/inspections');
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-car-rental/v1/bookings/128/inspections', {
headers: {
'Authorization': `Basic ${auth}`,
},
});
const { data } = await response.json();
Quick Links
Share