Authentication
Authentication
Basic Auth Scheme
Open APIs use the HTTP basic authentication scheme. This means in every request you need to pass hotel code and authentication key.
End Point URL
Header
Prameter
Name | Data Type | Description | Example |
---|---|---|---|
HotelCode* | Integer | Unique Hotel code | 1175 |
AuthCode* | String | Unique Authentication code | 79b2cc29a84bd97daa376a17f8e |
RoomType.RoomTypeID* | String | Unique Room Type ID | 1175000000012 |
RoomType.FromDate* | String | From date where you want to update inventory | 2020-04-01 |
Request
{ "Authentication": { "HotelCode": 8, "AuthCode": "d51c182a5a38cda3041c6e34d680f79b" }, "RoomType": [ { "RoomTypeID": "800000000000001", "FromDate": "2020-09-21", "ToDate": "2020-09-22", "Availability": "9" }, { "RoomTypeID": "800000000000002", "FromDate": "2020-09-21", "ToDate": "2020-09-22", "Availability": "4" } ] }
Returns
Code | Description |
---|---|
200 | Success |
300 | Authentication fail |
400 | Request Error |
5000 | Internal Error |
Success Response
{ "Success": { "SuccessMsg": "Room Inventory Successfully Updated" }, "Errors": { "ErrorCode": "0", "ErrorMessage": "Success" } }
Error Response
{ "Errors": { "ErrorCode": "301", "ErrorMessage": "Unauthorized Request. Please check hotel code and authentication code" } }