Contents
On this page

List Spaces - Plugixa Car Parking

GET /plugixa-car-parking/v1/location-spaces

List space rows across every location, one page at a time.

The user needs the plugixa_carparking_view capability.

A space row puts spaces of one space type at one location. At a location that counts by capacity, a row stands for quantity interchangeable spaces. At a location that identifies each space PRO, a row with is_assigned is one numbered space.

Request

GET https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces?location_id__in=4&status__in=active

Query parameters

Takes the list parameters every paged list accepts. search matches the label. orderby accepts id, label, quantity, status, display_order, created_at and modified_at.

The list can also be filtered on these fields:

Field Type Values
location_id entity Location ids
space_type_id entity Space type ids
status select active, inactive
created_at date A date or datetime
modified_at date A date or datetime

Responses

200 OK. data is one page of space rows.

{
  "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"
    }
  ],
  "meta": {
    "total": 1,
    "pages": 1
  }
}
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
meta.total integer Rows matching the search and filters, before paging
meta.pages integer Number of pages at this per_page

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces?location_id__in=4&status__in=active" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query([
    'location_id__in' => 4,
    'status__in'      => 'active',
]);
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces?' . $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({
  location_id__in: '4',
  status__in: 'active',
});
const response = await fetch(`https://your-site.example/wp-json/plugixa-car-parking/v1/location-spaces?${query}`, {
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data, meta } = await response.json();

Quick Links

Share