All URIs are relative to https://api.eu.lodgea.io/v1
Method | HTTP request | Description |
---|---|---|
availabilitySearchPost | POST /availability/search | Search for availability |
locationSearchPost | POST /location/search | Search for location |
propertiesGet | GET /properties | List (filtered) properties |
propertiesPropertyIdAvailabilityGet | GET /properties/{propertyId}/availability | Get a properties availability |
propertiesPropertyIdGet | GET /properties/{propertyId} | Get a properties details |
InlineResponse2001 availabilitySearchPost(inlineObject1)
Search for availability
Get availability information based on search criteria.
// Import classes:
import com.lodgea.ApiClient;
import com.lodgea.ApiException;
import com.lodgea.Configuration;
import com.lodgea.auth.*;
import com.lodgea.models.*;
import com.lodgea.controllers.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu.lodgea.io/v1");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi(defaultClient);
InlineObject1 inlineObject1 = new InlineObject1(); // InlineObject1 |
try {
InlineResponse2001 result = apiInstance.availabilitySearchPost(inlineObject1);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#availabilitySearchPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
inlineObject1 | InlineObject1 | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful, a list of available properties matching the given criteria is returned. | - |
400 | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - |
403 | Unauthorized, the api key in the "apiKey" header field is invalid. | - |
InlineResponse200 locationSearchPost(inlineObject)
Search for location
Get a list of locations and their lowest available rate related to a given keyword.
// Import classes:
import com.lodgea.ApiClient;
import com.lodgea.ApiException;
import com.lodgea.Configuration;
import com.lodgea.auth.*;
import com.lodgea.models.*;
import com.lodgea.controllers.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu.lodgea.io/v1");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi(defaultClient);
InlineObject inlineObject = new InlineObject(); // InlineObject |
try {
InlineResponse200 result = apiInstance.locationSearchPost(inlineObject);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#locationSearchPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
inlineObject | InlineObject | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful, a list of locations matching the given location search text is returned. | - |
400 | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - |
403 | Unauthorized, the api key in the "apiKey" header field is invalid. | - |
InlineResponse2002 propertiesGet(keyword, pageToken)
List (filtered) properties
List properties, optionally filtered by a keyword.
// Import classes:
import com.lodgea.ApiClient;
import com.lodgea.ApiException;
import com.lodgea.Configuration;
import com.lodgea.auth.*;
import com.lodgea.models.*;
import com.lodgea.controllers.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu.lodgea.io/v1");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String keyword = "Strandresidenz Sylt"; // String |
String pageToken = "eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ=="; // String |
try {
InlineResponse2002 result = apiInstance.propertiesGet(keyword, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#propertiesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | [optional] | |
pageToken | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful, a list of properties matching the given keyword is returned. | - |
400 | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - |
403 | Unauthorized, the api key in the "apiKey" header field is invalid. | - |
InlineResponse2004 propertiesPropertyIdAvailabilityGet(propertyId, currencyCode)
Get a properties availability
Get detailed availability information for a specific property.
// Import classes:
import com.lodgea.ApiClient;
import com.lodgea.ApiException;
import com.lodgea.Configuration;
import com.lodgea.auth.*;
import com.lodgea.models.*;
import com.lodgea.controllers.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu.lodgea.io/v1");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String propertyId = "strandresidenz-sylt"; // String |
String currencyCode = "EUR"; // String |
try {
InlineResponse2004 result = apiInstance.propertiesPropertyIdAvailabilityGet(propertyId, currencyCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#propertiesPropertyIdAvailabilityGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
propertyId | String | ||
currencyCode | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful, a list of properties matching the given keyword is returned. | - |
400 | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - |
403 | Unauthorized, the api key in the "apiKey" header field is invalid. | - |
InlineResponse2003 propertiesPropertyIdGet(propertyId)
Get a properties details
Get all information about a specific property by its ID.
// Import classes:
import com.lodgea.ApiClient;
import com.lodgea.ApiException;
import com.lodgea.Configuration;
import com.lodgea.auth.*;
import com.lodgea.models.*;
import com.lodgea.controllers.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu.lodgea.io/v1");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String propertyId = "strandresidenz-sylt"; // String |
try {
InlineResponse2003 result = apiInstance.propertiesPropertyIdGet(propertyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#propertiesPropertyIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
propertyId | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful, property found, the whole property object is returned. | - |
400 | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - |
403 | Unauthorized, the api key in the "apiKey" header field is invalid. | - |
404 | The requested resource was not found | - |