POST
/hotelratesCreate Hotelrates
This API call allows you to make a granular request to receive the rates data for a single day. It accepts the parameters listed below and retrieves the rate data. Due to its limitations, this API should be used exclusively for demo or quality control purposes.
- •hotelcode: The code for the hotel to be shopped.
- •checkin: The desired check-in date.
- •checkout: The desired check-out date.
- •guests: The number of guests occupying the room.
- •currency: The preferred currency for the rate.
- •websitecode: The source ID assigned to the source being shopped.
- •pos: This parameter determines the region from which the call is made. By default, use '0'. If a specific POS is required, please contact our support team.
POST
/hotelratesParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | Required | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authentication Failed or Account validity expired | None |
| 429 | Too Many Requests | You have exceeded your access limit | None |
| 500 | Internal Server Error | Internal server error | None |
Example Request
# You can also use wget
curl -X POST /hotelrates \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Body parameter
{
"hotelcode": 2005,
"checkin": "2019-08-24",
"checkout": "2019-08-24",
"guests": 1,
"currency": "USD",
"websitecode": 2,
"pos": 0,
"snapshot": false
}
Example responses
200 Response
{
"hotelcode": 0,
"websitecode": 0,
"dtcollected": "2019-08-24",
"ratedate": "2019-08-24",
"los": 0,
"guests": 0,
"roomtype": "string",
"onsiterate": 0,
"netrate": 0,
"currency": "string",
"ratedescription": "string",
"sourceurl": "string",
"roomamenities": "string",
"maxoccupancy": 0,
"ispromo": true,
"closed": "string",
"checkin": "2019-08-24",
"checkout": "2019-08-24",
"discount": 0,
"promoname": "string",
"searchkeyword": "string",
"roomtypecode": 0,
"conditionscode": 0,
"mealplancode": 0,
"taxstatus": 0,
"taxtype": "string",
"taxamount": 0,
"pos": 0,
"requestorigin": "string",
"israteperstay": "string",
"status_code": 0,
"snapshoturl": "string"
}
Example Request
{
"hotelcode": 30388,
"checkin": "2024-09-25",
"checkout": "2024-09-26",
"guests": 1,
"currency": "USD",
"websitecode": 1,
"pos": 0,
"snapshot": false
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.