Check Availability


Check Availability Sample

Last Update Date 12.12.2019

Request Sample


v1/search/checkAvailability
└──offerId              ───> You can find the Offer Id from in "HotelSearch" response (String)

{"offerId":"206d0428-48fe-4f23-ac85-e5bc8953c10a"}

Response

Important Notes


Showing "Room Type" and "Board Type" to your endpoint is mandatory .

Response Sample


├── rooms            ───> Array
│    ├── id               ───> Room Id(String)
│    ├── type             ───> Room Type(String) e.g Deluxe Room, Jetted Tub - 1 double and 1 twin bed
│    ├── categories       ───> Categories Array(String[])
│    ├── promotions       ───> Promotions Array(String[])
│    └── travellers            ───> Travellers Array
│        ├── type                   ───> Traveller Type(String) e.g "adult","child"
│        ├── age                    ───> Traveller Age(Int32)
│        └── nationality            ───> Traveller Nationality(String) e.g "TR"
├── id                  ───> Offer Id(String)
├── expiresOn           ───> Expires On (DateTime)
├── searchId            ───> Search Id (String)
├── checkinDate         ───> Checkin Date (DateTime)
├── checkoutDate        ───> Checkout Date(DateTime)
├── hotelId             ───> Hotel Id(String)
├── board               ───> Board Type(String) e.g "All Inclusive"
├── price
│   ├── amount               ───> Amount(Decimal)
│   └── currency             ───> Currency(String) e.g "EUR"
├─── priceBreakdown     ───>      Array
│    ├── roomId              ───> Room Id(String)
│    ├── date                ───> Date(DateTime)
│    └── price
│        ├── amount               ───> Amount(Decimal)
│        └── currency             ───> Currency(String) e.g "EUR"
├── cancellationPolicies    ───> Array
    ├── fee
    │   ├── amount           ───> Amount(Decimal)
    │   ├── currency         ───> Currency(String) e.g "EUR"
    └── afterDate       ───> After Date(DateTime)
├── supplements      ───> Array
    ├── name      ───> name(String)
    ├── price      ───> Array
        ├── amount               ───> Amount(Decimal)
        └── currency             ───> Currency(String) e.g "EUR"
    ├── paidAtHotel      ───> Boolean (true/false)
├── isSpecial        ───> is Special (true/false)
├── isAvailable      ───> is Avaible (true/false)
├── notes            ───> Array  (String[])
└── warnings         ───> Array  (String[])

{
  "rooms": [
    {
      "id": "4059da97-9128-4e8a-8bad-3ad4b17aadb5",
      "type": "IQSP.e9c84bae-e2aa-4cab-957f-70ab3ac2f376:Deluxe Room, Jetted Tub - 1 double and 1 twin bed",
      "promotions": [],
      "travellers": [
        {
          "type": "adult",
          "age": 0,
          "nationality": "TR"
        },
        {
          "type": "adult",
          "age": 0,
          "nationality": "TR"
        }
      ]
    }
  ],
  "id": "206d0428-48fe-4f23-ac85-e5bc8953c10a",
  "expiresOn": "2015-11-25T08:07:04.2944042Z",
  "searchId": "0ec5c3c8-2390-4dab-8511-e573116f7b7a",
  "checkinDate": "2015-11-26T07:51:56.9111627Z",
  "checkoutDate": "2015-11-27T07:51:56.9111627Z",
  "hotelId": "100122",
  "board": "All Inclusive",
  "price": {
    "amount": 140.00,
    "currency": "EUR"
  },
  "priceBreakdown": [
    {
      "roomId": "4059da97-9128-4e8a-8bad-3ad4b17aadb5",
      "date": "2015-11-26T00:00:00Z",
      "price": {
        "amount": 140.00000000000000000000000000,
        "currency": "EUR"
      }
    }
  ],
  "cancellationPolicies": [
    {
      "fee": {
        "amount": 140.00000000000000000000000000,
        "currency": "EUR"
      },
      "afterDate": "2015-11-25T00:00:00Z"
    }
  ],
  "supplements": [],
  "isSpecial": false,
  "isAvailable": true,
  "notes": [],
  "warnings": []
}