List of Bookings
The API is used to get the list of reservations depending on Booking / Creation Date.
Request to get the list of Bookings
Endpoint
POST

https://connect-sandbox.su-api.com/SUAPI/jservice/Bookings
Works on booking creation date
System fetches bookings from system for 6 months in past
Date formate must be in, MM-DD-YYYY
Sample Request
{
"Su_hotelid": "JOE",
"date_from": "02-16-2024",
"date_to": "02-16-2024"
}
The request body consists of a date_from / date_to. This is the booking creation date when the booking was created / received from OTA
Response
Success Response
{
"BookingDetails": [
{
"booking_id": "4191611111_JOE",
"Channel_code": "19",
"Booking_date": "2024-02-16 08:30:40",
"checkindate": "2024-02-17",
"checkoutdate": "2024-02-17",
"status": "confirm"
},
{
"booking_id": "4291322222_JOE",
"Channel_code": "19",
"Booking_date": "2024-02-16 08:32:23",
"checkindate": "2024-02-17",
"checkoutdate": "2024-02-17",
"status": "confirm"
},
{
"booking_id": "4058433333_JOE",
"Channel_code": "19",
"Booking_date": "2023-10-16 15:46:49",
"checkindate": "2023-10-17",
"checkoutdate": "2023-10-17",
"status": "confirm"
}
]
}
The response body consists of a booking_id. This is Su booking id (channel booking id _ Su property id)
The response body consists of a Channel_code. It is a channel code of booking
The response body consists of a Booking_date. It is a creation booking date and time. Date is formatted in YYYY-MM-DD and Time is in GMT
Error Response
{
"Error": {
"Code": "400",
"ShortText": "Invalid HotelCode"
},
"Status": "Fail"
}
All the parameters of requests are required. If missed or passed unsupported values, system will throw an error in return
Last updated
Was this helpful?