---
title: "Retrieve Business Hours"
method: GET
path: "/locations/{locationId}/businesshours"
tags: ["AfterHours"]
---

# Retrieve Business Hours

`GET /locations/{locationId}/businesshours`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/locations/{locationId}/businesshours`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/locations/:locationId/businesshours/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns opening and closing hours from Monday to Sunday for the specified location.

## Path parameters

- `locationId` integer, required

## Response `200`

Business hours are in the response.

- ServiceChannelServicesMessagingAfterHoursBusinessHoursApiResponse: Business hours object.
  - `TimeZoneShortDescription` string: Location’s timezone abbreviation.
  - `BusinessHours` ServiceChannelServicesMessagingAfterHoursBusinessHourApiResponse[]
    - `DayOfWeek` string: Day of the week.
    - `OpenTime` string: Location opening hours.
    - `CloseTime` string: Location closing hours.
    - `ClosedAllDay` boolean: Defines whether the location is closed on the specified day.

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 601 — Location is not found
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `500`: The server was unable to complete the request due to an internal error.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
