Contents
Get Space - Plugixa Car Parking
GET /plugixa-car-parking/v1/location-spaces/{id}
Read one space row.
The user needs the plugixa_carparking_view capability.
Request
GET https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces/31
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The space row’s id |
Responses
200 OK. data is the space row.
{
"success": true,
"data": {
"id": 31,
"location_id": 4,
"space_type_id": 2,
"label": "Covered row A",
"quantity": 40,
"is_assigned": false,
"status": "active",
"display_order": 0,
"meta": null,
"created_by": 1,
"modified_by": 1,
"created_at": "2026-11-12 09:30:00",
"modified_at": "2026-11-12 09:30:00",
"deleted_at": null,
"location_name": "Airport P2",
"space_type_name": "Standard car"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
integer |
The space row’s id |
data.location_id |
integer |
The location |
data.location_name |
string|null |
The location’s name, null when it no longer exists |
data.space_type_id |
integer |
The space type |
data.space_type_name |
string|null |
The space type’s name, null when it no longer exists |
data.label |
string|null |
Your label, or the number of an identified space |
data.quantity |
integer |
How many spaces the row stands for |
data.is_assigned |
boolean |
An individually identified space PRO |
data.status |
string |
active or inactive. Only active rows count towards availability |
data.display_order |
integer |
Sort position |
data.meta |
object|null |
Your own flat key/value data |
data.created_at, data.modified_at |
string |
UTC datetime |
data.deleted_at |
string|null |
null unless the row is in the trash |
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_carparking_not_found |
No space row 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-parking/v1/location-spaces/31" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces/31');
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 response = await fetch('https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces/31', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share