Contents
On this page

Get Customer Account - Plugixa Car Wash

GET /plugixa-carwash/v1/public/account

Read the signed-in customer’s details, remembered vehicles, upcoming and past bookings.

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).

Request

GET https://your-site.example/wp-json/plugixa-carwash/v1/public/account

Responses

200 OK. data is the account.

{
  "success": true,
  "data": {
    "customer": {
      "first_name": "Emma",
      "last_name": "Stone",
      "email": "emma@example.com",
      "phone": "+1 217 555 0123"
    },
    "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
data.vehicles[] object Remembered vehicles: make, plate
data.upcoming[] object Up to 20 bookings still to come (pending, confirmed, in_progress), soonest first
data.upcoming[].token string The booking’s token, for Cancel Booking
data.upcoming[].again object What to pre-fill to book the same again: location, vehicle, package, services
data.past[] object Up to 10 earlier, cancelled or finished bookings, latest first, same shape
data.cutoff integer Hours before the start that online cancelling stops
data.panels array Extra panels Pro apps add, such as a membership or loyalty points

Account answers are sent with Cache-Control: no-store, private. Bookings waiting on an online payment (hold) are not listed.

Errors

Status Code When
401 plugixa_carwash_signed_out No session, or it is unknown or expired: “Please sign in again.”
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 "https://your-site.example/wp-json/plugixa-carwash/v1/public/account" \
  -H "X-PCW-Session: $PCW_SESSION"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-carwash/v1/public/account');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        'X-PCW-Session: ' . getenv('PCW_SESSION'),
    ],
]);
$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', {
  headers: {
    'X-PCW-Session': process.env.PCW_SESSION,
  },
});
const { data } = await response.json();

Quick Links

Share