Skip to main content

API - Inventory Push To Channels

Purpose

Aegis will call your API to push inventory to your system.

Request

Method: POST

Headers

  • Authorization: Bearer <token>
  • Content-Type: application/json
Request Body
{
  "hotelid": "id_of_hotel",
  "room": [
    {
      "id": "DLX", 
      "date": [
        {
          "from": "2020-01-01",
          "to": "2020-01-01",
          "roomstosell": "3"
        },
        {
          "from": "2020-01-02",
          "to": "2020-01-02",
          "roomstosell": "2"
        }
      ]
    },
    {
      "id": "STD", 
      "date": [
        {
          "from": "2020-01-01",
          "to": "2020-01-01",
          "roomstosell": "3"
        },
        {
          "from": "2020-01-02",
          "to": "2020-01-02",
          "roomstosell": "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.