Rate Plan Listing
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.
Endpoint
POST

https://connect-sandbox.su-api.com/SUAPI/jservice/ratedetails
Attributes
hotelid
string (Required)
Hotel id for which you want to retrieve the list of rate plans.
Sample Request
{
"hotelid": "new1"
}
Response
Sample Success Response
{
"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"
}]
}
Response Model — No Rate Plan Found
In this case there is no Rate Plan available for provider based on the parameters provided.
Sample Error Response (939)
{
"Status": "Fail",
"Errors": {
"Code": "939",
"ShortText": "No rates found"
}
}
Error
Errors Due to Invalid Parameters
This error 400 will be received if allocated with incorrect Hotel/Client id.
Sample Error Response (400)
{
"Status": "Fail",
"Errors": {
"Code": "400",
"ShortText": "Invalid HotelCode (new)"
}
}
Last updated
Was this helpful?