API - Inventory Push To Channels
Purpose
Aegis will call your API to push inventory to your system.
Request
Method: POST
Headers
Request Body
{
"hotel_id": "id_of_hotel",
"room": [
{
"id": "DLX",
"date": [
{
"from": "2020-01-01",
"to": "2020-01-01",
"roomstosell"rooms_to_sell": "3"
},
{
"from": "2020-01-02",
"to": "2020-01-02",
"rooms_to_sell": "2"
}
]
},
{
"id": "STD",
"date": [
{
"from": "2020-01-01",
"to": "2020-01-01",
"roomstosell"rooms_to_sell": "3"
},
{
"from": "2020-01-02",
"to": "2020-01-02",
"rooms_to_sell": "2"
}
]
}
]
}
Response
Success
{
"error_code": "0",
"status_code": "200",
"message": ""
}
Error
{
"error_code": "1",
"status_code": "200",
"message": ""
}
- Aegis will repeatedly call your API to until it gets success in response. Success is determined by error_code = 0 in the response.
- Aegis will send token in header as Authorization: Bearer <token>
- <token> is unique for each hotel.