Contents
On this page
List Space Types - Plugixa Car Parking
GET /plugixa-car-parking/v1/space-types
List the space types (car, motorbike, van, …), one page at a time.
The signed-in user needs the plugixa_carparking_view capability (read records).
Request
GET https://your-site.example/wp-json/plugixa-car-parking/v1/space-types?status__in=active&orderby=display_order&order=asc
Query parameters
Takes the list parameters every paged list accepts. search matches the name and the slug. orderby accepts id, name, status, display_order, created_at and modified_at.
Filters on this list:
| Filter field | Type | Example |
|---|---|---|
status |
Choice: active, inactive |
status__in=active |
created_at |
Date (UTC) | created_at__gte=2026-11-01 |
modified_at |
Date (UTC) | modified_at__between=2026-11-01,2026-11-30 |
Responses
200 OK. data is one page of space types.
{
"success": true,
"data": [
{
"id": 2,
"language_code": null,
"translation_group": null,
"name": "Covered car space",
"slug": "covered-car-space",
"description": "<p>Under cover, on level -1.</p>",
"icon": "car",
"color": "#1976d2",
"width": 2.5,
"length": 5,
"dimension_unit": "m",
"features": { "covered": true },
"display_order": 1,
"status": "active",
"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
}
],
"meta": { "total": 4, "pages": 1 }
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
The space type’s id |
data[].name |
string |
Name shown to customers |
data[].slug |
string |
Unique across the site, trashed space types included |
data[].width, data[].length |
number|null |
Dimensions, in dimension_unit |
data[].features |
object|null |
Your own key/value pairs |
data[].display_order |
integer |
Position in lists |
data[].status |
string |
active or inactive |
data[].created_at |
string |
UTC datetime |
data[].deleted_at |
string|null |
null unless the space type is in the trash |
meta.total |
integer |
Space types matching, before paging |
meta.pages |
integer |
Number of pages at this per_page |
A list row does not include prices: read them with Space Type Prices.
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-car-parking/v1/space-types?status__in=active&orderby=display_order&order=asc" \
-u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query(['status__in' => 'active', 'orderby' => 'display_order', 'order' => 'asc']);
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/space-types?' . $query);
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 query = new URLSearchParams({ status__in: 'active', orderby: 'display_order', order: 'asc' });
const response = await fetch(`https://your-site.example/wp-json/plugixa-car-parking/v1/space-types?${query}`, {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data, meta } = await response.json();
Quick Links
Share