Contents
On this page

Get Payment - Plugixa Car Parking

GET /plugixa-car-parking/v1/payments/{id}

Read one row of the payments ledger: a payment, a deposit, a balance or a refund.

The user needs the plugixa_carparking_view capability, for both payments and bookings.

Request

GET https://your-site.example/wp-json/plugixa-car-parking/v1/payments/32

Path parameters

Name Type Description
id integer The payment’s id

Responses

200 OK. data is the payment.

{
  "success": true,
  "data": {
    "id": 32,
    "booking_id": 57,
    "gateway": "stripe",
    "transaction_id": "pi_3QxY7d2eZvKYlo2C0a1b2c3d",
    "type": "balance",
    "amount": 30.95,
    "currency": "EUR",
    "status": "completed",
    "response": null,
    "created_by": 0,
    "modified_by": 0,
    "created_at": "2026-11-28 18:42:10",
    "updated_at": null,
    "modified_at": "2026-11-28 18:42:10",
    "deleted_at": null,
    "booking_ref": "PKG-3F9A1C",
    "gateway_label": "Credit / debit card (Stripe)"
  }
}
Field Type Meaning
data.transaction_id string|null The provider’s reference, null for a payment recorded by staff
data.type string full, deposit, balance, refund, or installment PRO
data.amount number Always positive, a refund included
data.status string completed, pending or failed
data.response object|null What was stored with the payment, see List Payments
data.gateway_label string The payment method’s readable name
data.created_at string UTC datetime

Errors

Status Code When
404 plugixa_carparking_not_found No payment with that id.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-car-parking/v1/payments/32" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-car-parking/v1/payments/32');
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/payments/32', {
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data } = await response.json();

Quick Links

Share