Skip to content
ajar.Get started

Hotel get

booking.hotel.get

View connector

Load hotel photos, description, reviews and available rooms for a search

POST /v1/operations/booking.hotel.get

Headers

Authorization: Bearer YOUR_CONNECTOR_TOKEN
x-connection-ref: YOUR_CONNECTION_REF
Content-Type: application/json

Use your connector bearer token and guest connection_ref in x-connection-ref. Replace search_ref and property_ref with values from the same search response. Dates, guests and currency come from that search.

Inputs

ParameterExample typeExample value
search_refstring"00000000-0000-0000-0000-000000000000"
property_refstring"00000000-0000-0000-0000-000000000000"

Example input

{
  "search_ref": "00000000-0000-0000-0000-000000000000",
  "property_ref": "00000000-0000-0000-0000-000000000000"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/booking/hotel-get.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "property_ref": {
      "format": "uuid",
      "type": "string"
    },
    "review_offset": {
      "maximum": 10000,
      "minimum": 0,
      "type": "integer"
    },
    "search_ref": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "search_ref",
    "property_ref"
  ],
  "title": "Booking.com hotel-get input",
  "type": "object"
}