POST
/hotelinfoSearch by Hotel Code
This API call utilizes the hotelcode obtained from the POST/hotels endpoint to retrieve a list of sources available for a specific hotel. If a source you wish to retrieve rates for is not configured with the hotel, please send the request using POST /sourcemaprequest endpoint. We will make efforts to add the source to our database within 24 to 72 business hours.
POST
/hotelinfoMandatory Fields
- hotelcode or hotelcodes
Optional Fields
- body
Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | hotelinfo | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | schemahotelinforesp |
| 400 | Bad Request | Bad Request | |
| 401 | Unauthorized | Authentication Failed or Account validity expired | |
| 500 | Internal Server Error | Internal server error | |
Example Request
# You can also use wget
curl -X POST /hotelinfo \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Body parameter
{
"hotelcode": 2005,
"hotelcodes": [0]
}
Example responses
200 Response
{
"hotelcode": 0,
"hotelname": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"country": "string",
"starrating": "string",
"lat": 0,
"long": 0,
"sources": {
"websitecode": 0,
"websitename": "string",
"url": "string",
"channeltype": "string",
"snapshotavailable": true
}
}
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.