All pages
Powered by GitBook
1 of 1

Loading...

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


Attributes

hotelid string (Required)

Hotel id for which you want to retrieve the list of rate plans.

Maximum 20 characters allowed.

Sample Request


Response

Sample Success Response

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)

Error

Errors Due to Invalid Parameters

This error 400 will be received if allocated with incorrect Hotel/Client id.

Sample Error Response (400)

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)"
  }
}