The Rate Plan Listing call is used to retrieve the list of Rate Plans created for existing property. Response data contains information on rate plan's Name, Id, Meal Plan Id and Status.
POST
hotelid string (Required)
Hotel id for which you want to retrieve the list of rate plans.
In this case there is no Rate Plan available for provider based on the parameters provided.
Errors Due to Invalid Parameters
This error 400 will be received if allocated with incorrect Hotel/Client id.
https://connect-sandbox.su-api.com/SUAPI/jservice/ratedetails
{
"hotelid": "new1"
}{
"rateplans": [{
"rateplanid": "BAR",
"rateplanname": "Early Booker Rate",
"mealplanid": "2",
"description": "Description of the rate plan",
"status": "Active"
}, {
"rateplanid": "NRF",
"rateplanname": "Non Refundable Rate",
"mealplanid": "2",
"description": "Description of the rate plan",
"status": "Active"
}]
}{
"Status": "Fail",
"Errors": {
"Code": "939",
"ShortText": "No rates found"
}
}{
"Status": "Fail",
"Errors": {
"Code": "400",
"ShortText": "Invalid HotelCode (new)"
}
}