Contents
On this page
Update Customer Profile - Plugixa Car Wash
POST /plugixa-carwash/v1/public/account/profile
Change the signed-in customer’s first name, last name or phone. Only the fields you send change.
Needs the Customer accounts app on. Send the customer’s session in the X-PCW-Session header. Rate-limited per visitor address to 300 an hour (bucket carwash_account).
Note. The e-mail address cannot be changed here: it is what the customer signs in with. Other fields in the body are ignored.
Request
POST https://your-site.example/wp-json/plugixa-carwash/v1/public/account/profile
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
first_name |
string |
No | Cannot be emptied. Cut to 100 characters. |
last_name |
string |
No | Cut to 100 characters. |
phone |
string |
No | Cut to 50 characters. |
{
"phone": "+1 217 555 0124"
}
Responses
200 OK. data is the account, as Get Customer Account returns it.
{
"success": true,
"data": {
"customer": {
"first_name": "Emma",
"last_name": "Stone",
"email": "emma@example.com",
"phone": "+1 217 555 0124"
},
"vehicles": [
{
"make": "Honda CR-V",
"plate": "XYZ9876"
}
],
"upcoming": [
{
"number": "CW2026-0043",
"token": "9f1c2e7a5b3d4c6e8f0a1b2c3d4e5f60",
"status": "confirmed",
"date": "2026-11-14",
"time": "09:00",
"location": "Riverside",
"package": "Deluxe",
"vehicle": "Honda CR-V",
"total": 46.86,
"currency": "USD",
"can_cancel": true,
"page_url": "https://your-site.example/book",
"again": {
"location": 3,
"vehicle": 2,
"package": 4,
"services": []
}
}
],
"past": [],
"cutoff": 24,
"panels": []
}
}
| Field | Type | Meaning |
|---|---|---|
data.customer |
object |
first_name, last_name, email, phone |
Errors
| Status | Code | When |
|---|---|---|
422 |
plugixa_carwash_missing_first_name |
first_name is sent empty. |
401 |
plugixa_carwash_signed_out |
No valid session. |
429 |
plugixa_carwash_rate_limited |
This address has used up its requests for the hour. |
Plus the errors every endpoint can return.
Examples
curl -s -X POST "https://your-site.example/wp-json/plugixa-carwash/v1/public/account/profile" \
-H "X-PCW-Session: $PCW_SESSION" \
-H "Content-Type: application/json" \
-d '{"phone":"+1 217 555 0124"}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-carwash/v1/public/account/profile');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-PCW-Session: ' . getenv('PCW_SESSION'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'phone' => '+1 217 555 0124',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-carwash/v1/public/account/profile', {
method: 'POST',
headers: {
'X-PCW-Session': process.env.PCW_SESSION,
'Content-Type': 'application/json',
},
body: JSON.stringify({ phone: '+1 217 555 0124' }),
});
const { data } = await response.json();
Quick Links
Share