It would be very useful if the Bookings API exposed the Order ID and/or Payment ID associated with an appointment.
Our use case is to determine whether a specific appointment has already been paid for and to retrieve the related transaction details.
For example, given a Booking ID, we would like to be able to identify the corresponding Square Order or Payment and check:
-
Whether the appointment was paid
-
Amount paid
-
Payment status
-
Refunds or partial refunds
-
Tips and other payment details
Appointments, Orders, and Payments already appear connected within Square, but there does not seem to be a straightforward public API relationship between them.
Exposing an order_id or payment_id on the booking, or providing an endpoint to retrieve the associated transaction, would make appointment/payment reconciliation much easier.