Retrieve Rateplan
This endpoint allows you to retrieve all rateplan, active rateplan and deactivated rateplan list.
Endpoint
POST
Header
app-id
string
Yes
Your application ID. Required for authentication.
Authorization
string
Yes
Your API key. for authorization. Required for authentication.
Content-Type
string
Yes
Must be set to application/json.
Attributes
hotel_id string (Required)
The unique property ID as assigned by the provider upon creation of the property.
channel_hotel_id string (Required)
The unique id for the hotel on the specific channel.
status string (Required)
Specifies the status of the rate plans you want to retrieve.
Sample Requests
Response
Sample Success Response 1
Success Response Body Elements
Status string
Indicates the result of the API call.
Data array
An array of charge data, each item containing details about associated information.
name string
Name of the rate plan.
channel_rate_id string
The unique id of the rate plan in the channel’s system.
rate_relation string
Indicates if the rate plan has a relationship with another rate plan.
status string
Represents the availability status of the rate plan.
"0""1"
Message string
A message receives within the response body. This will generally be an empty string if no additional information is needed.
Ruid string
Specifies the unique request ID.
Errors
Sample Error Response 1
Sample Error Response 2
Error Response Body Elements
Status string
Indicates the result of the API call, which will be always "Fail" in case of an error response.
Error array
Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:
Code string
Specific error code that helps identify the type of error.
ShortText string
A short description of the error.
Message string
A message providing more information about the error.
Ruid string
Specifies the unique request ID.
Last updated
Was this helpful?