It is possible to retrieve all information about enquiries that have been made through our system. This service is only applicable for properties running in enquiry mode. The enquiry mode enables guests to only send an e-mal enquiry without the possibility to instantly book a property.
The general URL of this service is https://connect.travanto.de/service/enquiries. GET is the only available method in this case to retrieve all relevant information abouts potential guests, travel dates and prices.
The basic response scheme for the enquiry service provide you with a sound idea of how to use it.
There is two ways to authorize in order to fetch information about enquiries.
After an enquiry has been made (or at any other point in time), you are able to retrieve all neccessary information using GET method. You can either fetch information about once specific enquiry, for all enquiries of an entire property or all enquiries for properties authorized through your API key.
| Method | URL | Description | Authorization |
|---|---|---|---|
| GET | /service/enquiries/ | Get information about all enquiries related to your API key | API key only |
| GET | /service/enquiries/?object_id=$object_id | Get information about all enquiries for one specific property | API key & Token |
| GET | /service/enquiries/$enquiry_id | Get information for one single enquiry | API Key & Token |
The following example will give you an idea about the response you can expect using this service.
Requested URL:
/service/enquiries/203306
Response:
{
"OK": 1,
"Request": {
"Method": "GET",
"Path": "/service/enquiries/203306"
},
"EnquiriesServiceResult": [
{
"enquiry_id": 203306,
"object_id": 1000857,
"stamp": "2017-04-25T13:33:42+02:00",
"message": "Dear landlord,\nI have found your beautiful property and would like to rent it during these days.\nThank you for your reply.",
"prices": {
"total": 2077.5
},
"stay": {
"arrival": "2017-10-06",
"departure": "2017-10-13",
"nights": 7,
"persons": 2,
"children": 2
},
"guest": {
"language": "DE",
"first_name": "Tim",
"last_name": "Hochmuth",
"address": "Teststraße, 5",
"location": "Hamburg",
"phone": "017123456789",
"email": "t.hochmuth@travanto.de"
}
}
]
}