Get booking by code
GET {{baseUrl}}/bookings/:bookingCode
Description
This API endpoint enables users to retrieve a specific booking, identified by the :bookingCode
parameter.
Notes
Please ensure that you have the necessary authentication and authorization to access this endpoint.
Please be advised that a valid
:bookingCode
is required in the URL to retrieve the booking details for a specific booking.
RESPONSES
status: OK
{"booking":{"id":1,"code":"24300002","checkIn":"2024-07-26T00:00:00","checkOut":"2024-07-29T00:00:00","nextPaymentDate":"0001-01-01T00:00:00","type":"One-Time","status":"Confirmed","equipmentType":"Container/Chassis 20'/40'/45'","paymentMethod":{"brand":"discover","last4":"9424"},"paymentStatus":"Confirmed","space":2,"usedSpace":0,"invoiceTerm":1,"isPinCodeUsed":false,"createdDate":"2024-07-23T08:28:15.6708045","yard":{"id":1,"name":"Telfair"}}}