Fetches a location.
Security
oAuth2ClientCredentials
GET
import requests
location_id = "YOUR_location_id_PARAMETER"
url = "https://api.qargo.com/v1/locations/location/" + location_id
headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Successful Response
Any of:
Whether the location can be selected on the customer portal.
boolean
Any of:
Technical code for integrations/mapping logic; should be treated as stable once set.
string
Any of:
Human-readable label for a location in operational views.
string
Any of:
Identifier from an external (master data) system.
string
Any of:
Second address line of the location
string
Response
{ "latitude": 51.0543, "longitude": 3.7174, "description": "string", "selectable_on_customer_portal": true, "code": "LOC123", "display_name": "Main Office", "external_id": "string", "address": "Gaston Crommenlaan 4", "address_second_line": "", "city": "Ghent", "state": "", "country": "BE", "postal_code": "9050", "name": "Qargo HQ", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "opening_hours": { "monday": { … }, "tuesday": { … }, "wednesday": { … }, "thursday": { … }, "friday": { … }, "saturday": { … }, "sunday": { … } } }