Contents
Get Location - Plugixa Car Parking
GET /plugixa-car-parking/v1/locations/{id}
Read one location.
The user needs the plugixa_carparking_view capability.
Request
GET https://your-site.example/wp-json/plugixa-car-parking/v1/locations/4
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The location’s id |
Responses
200 OK. data is the location.
{
"success": true,
"data": {
"id": 4,
"language_code": null,
"translation_group": null,
"name": "Airport P2",
"slug": "airport-p2",
"description": "<p>Covered parking five minutes from Terminal 2.</p>",
"status": "active",
"inventory_mode": "capacity",
"default_billing_type": "day",
"currency": "EUR",
"timezone": "Europe/Paris",
"address_line1": "12 Rue de l'Aviation",
"address_line2": null,
"city": "Lyon",
"state": null,
"postcode": "69125",
"country": "FR",
"latitude": 45.7256,
"longitude": 5.0811,
"phone": "+33 4 72 00 00 00",
"email": "p2@example.com",
"image_id": 88,
"gallery": [88, 91],
"settings": {
"deposit_enable": true,
"deposit_percentage": 20
},
"display_order": 0,
"created_by": 1,
"modified_by": 1,
"created_at": "2026-11-12 09:30:00",
"updated_at": null,
"modified_at": "2026-11-12 09:30:00",
"deleted_at": null,
"space_type_count": 2,
"forms": [
{
"id": 1,
"name": "Default booking form",
"status": "active",
"all_locations": true
}
],
"image_url": "https://your-site.example/wp-content/uploads/2026/11/airport-p2-300x200.jpg"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
integer |
The location’s id |
data.name |
string |
Display name |
data.slug |
string |
Unique among all locations, trashed ones included |
data.status |
string |
active or inactive |
data.inventory_mode |
string |
capacity, or assigned PRO |
data.default_billing_type |
string |
minute, hour, day, week or month |
data.currency |
string|null |
The location’s own currency code. When empty, prices use the site currency |
data.latitude, data.longitude |
number|null |
Map position |
data.image_id |
integer|null |
Media library attachment id |
data.gallery |
integer[]|null |
Attachment ids |
data.settings |
object|null |
Per-location options read by modules |
data.created_at, data.modified_at |
string |
UTC datetime |
data.deleted_at |
string|null |
null unless the location is in the trash |
data.space_type_count |
integer |
How many space types have an active space here |
data.forms |
object[] |
The booking forms that offer this location: id, name, status, and all_locations (true when the form offers every location) |
data.image_url |
string|null |
URL of the image at medium size, null without an image |
Opening hours and date exceptions are not part of the location: read them with Opening Hours and List Exceptions.
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_carparking_not_found |
No location 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/locations/4" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/locations/4');
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/locations/4', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share