All partners can access the White Label API using the API Key provided by CV Villas. It is a GET request that returns XML by default and can be accessed at the following endpoint:
Endpoint
https://www.cvvillas.com/umbraco/api/Travel/GetTravelItems/
Parameters
| Key | Type | Example Value | Requirement |
|---|
| apiKey | GUID string | 97a30c39-4d62-4849-abef-d52d7b7044ae | required |
| startDate | string | 2020-09-20 | optional |
| endDate | string | 2020-09-30 | optional |
Endpoint
https://www.cvvillas.com/umbraco/api/Travel/v2/GetGeography/
Parameters
| Key | Type | Example Value | Requirement |
|---|
| apiKey | GUID string | 97a30c39-4d62-4849-abef-d52d7b7044ae | required |
New to version 2
To access version 2 of the API you need to add "/v2" segment to the url. e.g. "/umbraco/api/Travel/v2/GetTravelItems/"
Changes:
https://www.cvvillas.com/umbraco/api/Travel/v2/GetTravelItems/
"Accommodation", "Facilities", "LocationFeatures" and "ServiceAndStaffing" fields now have more structured data that includes tooltip information if present.
These lists now return "Item2" field with "Text" containing the previously returned values and "Tooltip" returning tooltip text if present for that item.
https://cvvillas.com/umbraco/api/travel/v2/GetAvailability/
Duration list now returns an updated "DurationItemv2" field that contains both Min and Max price fields.
Accessing as JSON
If you wish to receive a JSON response from the API instead of an XML response, pass in the Accept header with a value of application/json.
Notes: For testing, we recommend that the partner use a tool such as Postman and does not attempt to load the API in their browser, as it will likely crash due to the browser attempting to format the large amount of XML, even though it’s loaded the API.