Retrieve a Location
const url = 'https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Retrieve a specific location by its ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Business ID
Location ID
Responses
Section titled “Responses”The requested location.
object
A physical or virtual location where services can be provided
object
Unique identifier across the platform.
The name of the location
A description of the location
Instructions for finding or accessing the location
The physical address of the location
Latitude of the location
Longitude of the location
The timezone of the location
Phone number of the location
Email address of the location
URL of the location’s picture
Services offered at the location
object
Unique identifier across the platform.
Name of the service
Timestamp of when the location was created
Timestamp of when the location was last updated
Example
{ "data": { "name": "Downtown Office", "description": "Our main office in the city center", "instructions": "Enter through the main entrance and take the elevator to the 5th floor", "address": "123 Main St, New York, NY 10001", "timezone": "America/New_York" }}The location ID is malformed.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Invalid platformId format." }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}The location does not exist or has been deleted.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "NotFoundError", "title": "Location not found" }}