{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"804bf1a9-9bfc-4d8c-8e00-651eae59d7cf","name":"5 Anker Connect","description":"# Authentication\n\nTo fully access the api for your current access role in your team, you need to have an access token. You can create one in [your Profile](http://connect.5-anker.com/settings/api).  \nFor authorization, define an authorization header field containing your access token.\n\n`Authorization: Bearer YOUR_ACCESS_TOKEN`\n\n# Response\n\nTo retrieve responses in the correct format, please set the `Accept` Header to `application/json`\n\n# REST API Usage\n\n`API v3` is a simplified API and usually the main one you will be using.  \nIf you are using this API for the first time or you are performing a fresh reimport of all data, it is recommended to import the data in the following order:\n\n## Import order\n\n*   `Partner: List Partners`\n*   `Boat type: List boat types`\n*   `Regions: List regions`\n*   `Manufacturer: List manufacturers & models`\n*   `Basement: List basements`\n*   `Extra: List extras`\n*   `Boats: List boats`\n    \n\n## How to retrieve cruises/availabilities?\n\nDepending on how you want to process the data, it makes sense to use the API in different ways. The **two** most commonly used methods are explained below:\n\n### Default or bulk import\n\nThis scenario is useful when you want to build your own way of displaying data. There are two endpoints to import the cruises/availabilities.\n\n1.  `Cruise: List cruise` (default)\n2.  `Availability: CSV` (bulk) **PREFERED**\n    \n\n`1` will list all available cruises/availabilities filtered by the specified parameters.\n\n`2` can be used for a bulk import of cruises/availabilities data. This endpoint costs less requests and you dont need to paginate to the whole set of data.\n\n**ATTENTION:** The value `total_price` and `total_discount` are generated values from the catalogs of the providers or have been imported from external APIs. They have to be confirmed with either the `Cruise: Get cruise` or `Cruise: Get cruise price` endpoints. More information is provided on the respective endpoint.\n\n### Live search\n\nUsed when you dont want to store all the cruises/availabilities in your database and only require current information on specific parameters. For example a live search. Here we recommend using `Search: Search cruises` or `Search: Count cruises` if you are just looking for the amount of results.\n\n## How to set the localization\n\nAs all database content is translated, you can set the header field `Accept-Language` to one of the following languages and you will receive the correct translation:\n\n`'de': German`  \n`'en': English`  \n`'fr': French`  \n`'es': Spanish`  \n`'it': Italian`  \n`'pl': Polish`  \n`'ru': Russian`  \n`'hr': Croatian`\n\n# The API Field\n\n| Description | Example |\n| --- | --- |\n| between | btw:1,4 |\n| in | in:1,3,4,6 |\n| equals | 6 |\n| greater than | gt:5 |\n| greater than equals | gte:3 |\n| lower than | lt:5 |\n| lower than equals | lte:4 |\n| like | lk:%test% |\n| like with placeholders | lkp:test |\n| date range | range:Y-m-d,Y-m-d |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5099791","team":131281,"collectionId":"804bf1a9-9bfc-4d8c-8e00-651eae59d7cf","publishedId":"RWTmuHtC","public":true,"publicUrl":"https://documenter-api.postman.tech/view/5099791/RWTmuHtC","privateUrl":"https://go.postman.co/documentation/5099791-804bf1a9-9bfc-4d8c-8e00-651eae59d7cf","customColor":{"top-bar":"FFFFFF","right-sidebar":"113555","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2020-10-06T11:50:28.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"ADAC","id":"4551ce62-156c-471e-9f71-ec86dcea92ea","owner":"5099791","values":[{"key":"apiUrl","value":"https://connect.5-anker.com","enabled":true},{"key":"apiToken","value":"","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/de5834ae6c66531d1536b0cf27944fc7fe4fa3a3f71048c9bf7d6f53383e0027","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"ADAC","value":"5099791-4551ce62-156c-471e-9f71-ec86dcea92ea"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/RWTmuHtC"}