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 |
Description |
|
Content-Type |
application/json |
|
|
APIKEY |
|
|
|
AFFILIATECODE |
|
For Affiliate only. Not required for Tenant |
|
TENANTCODE |
|
For Tenants only. Not required for affiliate |
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 |
boolean |
|
true/false |
|
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: iPhone web sites made easy