Contents
On this page

Get Extra - Plugixa Car Parking

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

Read one extra.

Needs Plugixa Car Parking Pro. The WordPress user needs the plugixa_carparking_view capability (view records).

Request

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

Path parameters

Name Type Description
id integer The extra’s id

Responses

200 OK. data is the extra.

{
  "success": true,
  "data": {
    "id": 4,
    "name": "EV charging",
    "description": "<p>Charge your car while it is parked.</p>",
    "icon": null,
    "price": 12.5,
    "price_type": "per_day",
    "max_quantity": 1,
    "applies_to": {
      "locations": [2, 5]
    },
    "status": "active",
    "display_order": 0,
    "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
  }
}
Field Type Meaning
data.id integer The extra’s id
data.name string Shown to the customer on the booking form
data.price number The price, before price_type multiplies it
data.price_type string per_booking, per_day, per_hour or per_unit
data.max_quantity integer Most a customer can take on one booking. 0 means no limit
data.status string active or inactive
data.description string|null HTML, or null when none was given
data.icon string|null As stored, or null when none was given
data.applies_to object|null {"locations": [ids]} when the extra is offered only at those locations, null when it is offered everywhere
data.display_order integer Lower numbers are listed first on the booking form
data.created_at string UTC datetime
data.modified_at string UTC datetime of the last change. Send it back on an update to have the change refused if somebody else saved first
data.deleted_at string|null null unless the record is in the trash

Errors

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

Quick Links

Share