POST / Hotel List
The GetListHotels provides the HotelID has and Name list
HOW TO USE?
The GetListHotels data is typically requested at the start of the use case.
HEADERS TO USE FOR REQUEST
|
Parameter |
Value |
|
Content-Type |
application/json |
|
APIKEY |
|
|
TENANTCODE |
|
BODY PARAMETERS
|
Name |
Type |
Description |
Example |
|
TenantCode |
String |
Provide Tenant code |
Code Provided Separately |
UAT URL: https://uat.breakaway.ie/api/HotelBooking/GetListHotels
RESPONSE PARAMETERS
|
Name |
Type |
Description |
Example |
|
Result |
String |
Provide Tenant code |
ETST |
|
Message |
String |
|
|
|
Object |
Array of Objects |
List of available Hotels. |
|
|
.HotelID |
int |
Id of hotel |
|
|
.HotelName |
String |
Name of the hotel |
|
|
IsTimeout |
boolean |
|
|
|
ErrorCode |
|
|
|
ERROR CODES
|
HTTP Status |
Type |
|
500 |
INTERNAL_SERVER_ERROR |
SAMPLE REQUEST
{
"TenantCode": "CODE"
}
SAMPLE RESPONSE
{
"Result": true,
"ResultMessage": null,
"Object": [
{
"HotelID": 37,
"HotelName": "Santa fe"
}
],
"ExtraObject": null,
"IsTimeout": false,
"HttpResponseCode": 200,
"ErrorCode": null
}
Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator