Contents
Get Customer Group - Plugixa Car Parking
GET /plugixa-car-parking/v1/customer-groups/{id}
Read one customer group. The members are read separately with List Members.
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/customer-groups/3
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The customer group’s id |
Responses
200 OK. data is the customer group.
{
"success": true,
"data": {
"id": 3,
"name": "Season ticket holders",
"slug": "season-ticket-holders",
"description": "Commuters on a yearly contract.",
"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,
"member_count": 12
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
integer |
The group’s id |
data.name |
string |
The group’s name |
data.slug |
string |
Unique among all groups, trashed ones included |
data.description |
string|null |
Plain text, or null when none was given |
data.member_count |
integer |
How many users are in the group |
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 customer group 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/customer-groups/3" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/customer-groups/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/customer-groups/3', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share