Breadcrumb
- Hotel Content
- Hotel Content
- Use Cases
- Alerts - Messages
Alerts - Messages
Alerts - Messages
Return a list of Alerts and Messages for the hotel
Sample Request
Use include=Messages to return a list of Alerts and Messages for the hotel
/v1/api/hotel/13098/details?primaryChannel=WEB&include=Messages
Response (partial)
{
"hotelList": [{
"AlertList": [{
"Details": {
"Description": "Pool Closed due to renovation",
"DetailedDescription": "The pool will be closed for renovation. During this time guests will not be able to enjoy it.",
"Validity": {
"Start": "2020-04-14T00:00:00",
"End": "2021-04-14T00:00:00"
}
},
"Name": "Pool Closed",
"Type": "Hotel"
}]
}]
}
Request Alerts and Messages based on a specified language.
Note: Use Accept-Language to return language specific content.
Response (partial)
{
"hotelList": [{
"AlertList": [{
"Details": {
"Description": "Piscine fermée pour rénovation",
"DetailedDescription": "La piscine sera fermée pour rénovation. Pendant ce temps, les clients ne pourront pas en profiter.",
"Validity": {
"Start": "2020-04-14T00:00:00",
"End": "2021-04-14T00:00:00"
}
},
"Name": "Piscine fermée",
"Type": "Hotel"
}]
}]
}