Contents
On this page
List Exceptions - Plugixa Car Parking
GET /plugixa-car-parking/v1/locations/{id}/exceptions
List a location’s date exceptions: closures and days with special hours.
The user needs the plugixa_carparking_view capability.
On a date an exception covers, the exception decides instead of the weekly opening hours. When a closure and special hours cover the same date, the closure wins.
Request
GET https://your-site.example/wp-json/plugixa-car-parking/v1/locations/4/exceptions
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The location’s id |
Responses
200 OK. data is every exception of the location, earliest first.
The list is not paged and has no meta.
{
"success": true,
"data": [
{
"id": 7,
"location_id": 4,
"type": "closed",
"start_date": "2026-12-25",
"end_date": "2026-12-25",
"open_time": null,
"close_time": null,
"note": "Christmas Day"
},
{
"id": 8,
"location_id": 4,
"type": "special",
"start_date": "2026-12-31",
"end_date": "2026-12-31",
"open_time": "08:00:00",
"close_time": "14:00:00",
"note": "New Year's Eve"
}
]
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
The exception’s id |
data[].location_id |
integer |
The location |
data[].type |
string |
closed (closed all day) or special (open with other hours) |
data[].start_date |
string |
First date, YYYY-MM-DD |
data[].end_date |
string |
Last date, YYYY-MM-DD, included |
data[].open_time |
string|null |
For special: opening time, HH:MM:SS. null means no opening limit |
data[].close_time |
string|null |
For special: closing time. null means no closing limit |
data[].note |
string|null |
Your note |
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/exceptions" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/locations/4/exceptions');
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/exceptions', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share