Contents
On this page

Get Booking Form - Plugixa Car Parking

GET /plugixa-car-parking/v1/booking-forms/{id}

Read one booking form, with its steps, its extra questions and the names of the locations and space types it offers.

The signed-in user needs the plugixa_carparking_view capability (read records).

Request

GET https://your-site.example/wp-json/plugixa-car-parking/v1/booking-forms/3

Path parameters

Name Type Description
id integer The form’s id

Responses

200 OK. data is the form.

{
  "success": true,
  "data": {
    "id": 3,
    "name": "Airport parking",
    "slug": "airport-parking",
    "status": "active",
    "steps": [
      { "key": "dates", "enabled": true, "options": [] },
      { "key": "space", "enabled": true, "options": { "coupon": false } },
      { "key": "details", "enabled": true, "options": [] },
      { "key": "confirm", "enabled": true, "options": [] }
    ],
    "style": { "primary_color": "#0f766e", "design": "split" },
    "location_ids": [4],
    "space_type_ids": null,
    "is_default": false,
    "settings": {
      "fields": [
        { "key": "flight_number", "label": "Flight number", "type": "text", "required": true, "options": [] }
      ]
    },
    "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,
    "fields": [
      { "key": "flight_number", "label": "Flight number", "type": "text", "required": true, "options": [] }
    ],
    "all_locations": false,
    "location_names": ["Terminal 2"],
    "space_type_names": []
  }
}
Field Type Meaning
data.status string active or inactive. An inactive form takes no bookings
data.steps array The steps in order: key, enabled, options. A form that never saved its steps shows the default five
data.style object|null primary_color and design
data.location_ids array|null Locations offered. Empty or null means every location
data.space_type_ids array|null Space types offered. Empty or null means every space type
data.is_default boolean The form used by a booking page that names no form
data.settings object|null Stored settings: fields, and map PRO when it was set
data.fields array The extra questions: key, label, type, required, options
data.all_locations boolean true when the form offers every location
data.location_names, data.space_type_names array Names of the ids, in the same order. An id whose record is gone shows as #<id>
data.modified_at string UTC datetime of the last change. Send it back on an update to detect conflicts

Errors

Status Code When
404 plugixa_carparking_not_found No form 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/booking-forms/3" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/booking-forms/3');
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/booking-forms/3', {
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data } = await response.json();

Quick Links

Share