Contents
On this page

List Booking Payments - Plugixa Car Wash

GET /plugixa-carwash/v1/bookings/{id}/payments

List every payment and refund recorded against a booking, oldest first.

Needs the plugixa_carwash_view capability.

Note. The booking is not looked up first: an id that does not exist answers 200 with an empty list.

Request

GET https://your-site.example/wp-json/plugixa-carwash/v1/bookings/42/payments

Path parameters

Name Type Description
id integer The booking’s id

Responses

200 OK. data is the list.

{
  "success": true,
  "data": [
    {
      "id": 17,
      "provider": "cash",
      "amount": 52.06,
      "currency": "USD",
      "status": "paid",
      "reference": "",
      "note": "Paid at the desk",
      "created_at": "2026-11-14 16:05:00",
      "paid_at": "2026-11-14 16:05:00"
    }
  ]
}
Field Type Meaning
data[].id integer The payment’s id
data[].provider string How it was paid: cash, bank_transfer, stripe, gift_card or what you sent
data[].amount number Positive for a payment, negative for a refund
data[].currency string The booking’s currency
data[].status string paid, refunded, pending (an online payment not finished yet) or cancelled
data[].reference string The payment provider’s reference, if any
data[].note string Your note
data[].created_at string UTC datetime it was recorded
data[].paid_at string|null UTC datetime it was paid

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-carwash/v1/bookings/42/payments" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-carwash/v1/bookings/42/payments');
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 auth = Buffer.from(`admin:${process.env.WP_APP_PASSWORD}`).toString('base64');
const response = await fetch('https://your-site.example/wp-json/plugixa-carwash/v1/bookings/42/payments', {
  headers: {
    'Authorization': `Basic ${auth}`,
  },
});
const { data } = await response.json();

Quick Links

Share