Retrieve a Location
GET
/businesses/{businessId}/locations/{locationId}
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 ” businessId
required
string format: uuid
Business ID
locationId
required
string format: uuid
Location ID
Responses
Section titled “ Responses ”The requested location.
Media type application/json
object
data
Location
A physical or virtual location where services can be provided
object
id
required
Unique identifier across the platform.
string format: uuid
name
required
The name of the location
string
description
A description of the location
string
instructions
Instructions for finding or accessing the location
string
address
The physical address of the location
string
lat
Latitude of the location
number format: float
lng
Longitude of the location
number format: float
timezone
The timezone of the location
string
phone
Phone number of the location
string
email
Email address of the location
string format: email
pictureUrl
URL of the location’s picture
string format: uri
services
Services offered at the location
Array<object>
object
id
Unique identifier across the platform.
string format: uuid
name
Name of the service
string
createdAt
Timestamp of when the location was created
string format: date-time
updatedAt
Timestamp of when the location was last updated
string format: date-time
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" }}Location requires authentication
Media type application/json
object
error
object
code
number
title
string
Example
{ "error": { "code": 404, "title": "Not Found" }}Location not found
Media type application/json
object
error
object
code
number
title
string
Example
{ "error": { "code": 404, "title": "Not Found" }}