Properties
Definition
A property is short for Accommodation Property a term that is used to refer to any of the following types of accomodations:
- Hotel
- Apartments
- Studios
- Pensions
- Villas
- Hostel
- Holiday Rentals
- Guest Houses
- B&Bs
- Resorts
- Serviced Apartments
- Homestays
- Boats
- Boutique Hotels
- Golf Hotels
- Country Houses
- Cabins
- Inns
- Eco Hotels
- Motels
- Condo Hotels
- Holiday Cottage
- Botels
- Bed and breakfast
- Chalet
- Lodge
- Aparthotel
- Residence
- Agritourism
- Farm Stay
- Bungalow
- Holiday Homes
The list of definition is based on the definitions of https://opentravel.org/ and extended properties from Booking.com
Retrieve Property List (getProperties)
This method is used to obtain properties. Properties are returned based on the access right of the authenticated user.
Make sure to add the Authorization header as defined in the Authorization
The result of the request above will be a list of properties that the user has access to.
Retrieve a single property
You can retrieve at any given moment a property by passing the property id behind the property.
The result is a full Property Information
In case the request is coming from an unauthenticated user, then the response will be an empty body 401 http status with the header WWW-Authenticate: Bearer error="invalid_token"
Attemptint to access a property that you have no access on, will still return a 401 http error, but we make it explicit by passing a message indicating the error as well:
The response in such case looks like:
If you believe there is an error, it surely is a human error, therefore please contact our team.
Retrieve Property Rooms
Te retrieve all the rooms of a property, you should make a get call at the following endpoint:
- Request
- Response