Refetch Booking
The API is used to refetch specific booking.
Request to refetch Booking
Endpoint
POST

https://connect-sandbox.su-api.com/SUAPI/jservice/getReservation
Upon Request, system allocates with the booking Json
System is designed to reallocate the same booking to you for maximum of 5 times
Sample Request
{
"hotelid": "JOE",
"bookingid": "1134222_JOE"
}
The request body consists of a bookingid. This is the booking id (channelbookingid_hotelid) as allocated in booking list.
Response
Success Response
{
"reservations": [
{
"booked_at": "2024-02-07",
"commissionamount": "",
"currencycode": "NZD",
"paymenttype": "Hotel Collect",
"hotel_id": "JOE",
"status": "new",
"totalprice": "563.4",
"totaltax": "261.75",
"extrafees": [],
"taxes": []
}
]
}
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?