Contents
On this page

Get Tax Rate - Plugixa Car Parking

GET /plugixa-car-parking/v1/tax-rates/{id}

Read one tax rate.

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/tax-rates/2

Path parameters

Name Type Description
id integer The tax rate’s id

Responses

200 OK. data is the tax rate.

{
  "success": true,
  "data": {
    "id": 2,
    "name": "VAT",
    "rate": 20.0,
    "type": "percent",
    "is_compound": false,
    "applies_to": null,
    "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 tax rate’s id
data.name string Shown on the quote and the invoice beside the tax charged
data.rate number A percentage when type is percent, an amount when it is fixed
data.type string percent or fixed
data.is_compound boolean Whether the rate is charged on the taxed price
data.status string active or inactive
data.applies_to object|null {"locations": [ids]} when the rate is charged only at those locations, null when it is charged everywhere
data.display_order integer The order rates are charged in, lowest first
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 tax rate 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/tax-rates/2" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/tax-rates/2');
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/tax-rates/2', {
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data } = await response.json();

Quick Links

Share