Contents
List Members - Plugixa Car Parking
GET /plugixa-car-parking/v1/customer-groups/{id}/members
List every user in a customer group, oldest membership first. The list is not paged.
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/members
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The group’s id |
Responses
200 OK. data is the members.
{
"success": true,
"data": [
{
"id": 25,
"name": "Lucas Bernard",
"email": "lucas@example.com"
},
{
"id": 31,
"name": "Emma Laurent",
"email": "emma@example.com"
}
]
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
The WordPress user id |
data[].name |
string |
The user’s display name, or # and the id if the user no longer exists |
data[].email |
string |
The user’s e-mail, empty if the user no longer exists |
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/members" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/customer-groups/3/members');
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/members', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share