Retrieve a Business
const url = 'https://api.upvio.com/v1/businesses/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 \ --header 'Authorization: Bearer <token>'Retrieve a Business
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Business ID
Responses
Section titled “Responses”Business
object
All resources are contained within a Business.
object
Unique identifier across the platform.
Time when the resource was created (ISO 8601 format).
Time when the resource was last updated (ISO 8601 format).
Unique business alias across the platform. Used for forms and public booking pages.
The name of the Business.
Email address.
URL to the logo image.
A configuration to define active hours.
object
A group of active hours for a single day.
A group of active hours for a single day.
A group of active hours for a single day.
A group of active hours for a single day.
A group of active hours for a single day.
A group of active hours for a single day.
A group of active hours for a single day.
Disabled businesses prevent any staff from using the platform.
Timezone string.
Example
{ "data": { "alias": "acme", "name": "ACME Corp", "logoURL": "https://account.upvio.com/upvio.favicon.png", "defaultStaffWorkingHours": { "monday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "tuesday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "wednesday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "thursday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "friday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "saturday": [ [ 900, 1200 ], [ 1300, 1700 ] ], "sunday": [ [ 900, 1200 ], [ 1300, 1700 ] ] }, "timezone": "UTC" }}The request is invalid.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Business ID does not match API key" }}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 Business does not exist.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "BusinessNotFoundError", "title": "Business not found" }}