POST
/
rest
/
v1
/
hotel
/
search
curl --request POST \
  --url https://sandbox.travel.selfbook.com/rest/v1/hotel/search \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "stay_info": {
    "check_in_date": "2024-11-20",
    "check_out_date": "2024-11-21",
    "guests": {
      "adults": 1
    }
  },
  "filter": {
    "location": {
      "type": "iata_code",
      "details": {
        "iata_code": "ORD"
      },
      "radius": {
        "value": 5,
        "type": "mi"
      }
    }
  }
}'

Authorizations

Authorization
string
headerrequired

Basic authentication where:

  • user-id is a partner account ID
  • user-password is an API key token associated with the partner account

Body

application/json
stay_info
object

Parameters related to stay duration and guest count

filter
object

Parameters related to filtering by location or hotel information

pagination
object

Response

200 - application/json
pagination
object
results
object[]