Getting of permanent unloading and loading list locations. Users of shipper accounts can use the list of ten places they often use. Saved locations can be changed and used for loading or unloading.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/suggestions-api/v1/suggestions/spots
- Method: GET
Headers:
- Content-type: application/json
- Accept: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api_key}
Authorization
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
Response
Sample of response for getting list of saved location.
{
"has_next_page": true,
"page": 1,
"page_size": 5,
"suggestions": [
{
"account_id": 12345678,
"company_id": 7654321,
"counter": 45,
"data": {
"country": "NL",
"latitude": 52.37403,
"locality": "Amsterdam",
"longitude": 4.8936041,
"name": "Nazwa firmy, lokalizacja 1",
"number": "12",
"postalCode": "1012",
"street": "Ulica",
"details": "some details"
},
"id": "af44e8d9-9604-48b0-af40-21663431663f"
},
{
"next_suggestion": "next_suggestion"
}
]
}
Paging
When calling GET method, page should be added as parameter in the URL, for example: https://api.platform.trans.eu/ext/suggestions-api/v1/suggestions/spots?page=4