---
title: "Check whether the location is open or closed."
method: GET
path: "/locations/CheckIfLocationIsOpen"
tags: ["Locations"]
---

# Check whether the location is open or closed.

`GET /locations/CheckIfLocationIsOpen`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/locations/CheckIfLocationIsOpen`
- 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/CheckIfLocationIsOpen/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns information on the specified location if it is open or closed now. If the `checkTime` parameter is not provided, the location is checked at the current time.
            <br /> Learn about [managing business hours](https://servicechannel.atlassian.net/wiki/spaces/SCU/pages/683507788/Managing+Business+Hours) in ServiceChannel University.

## Query parameters

- `locationId` integer, required
- `checkTime` string, date-time

## Response `200`

The location opening status is in the response.

- ServiceChannelServicesMessagingAfterHoursCheckIfLocationIsOpenResponse: Stores information whether the location is open or closed.
  - `IsOpen` boolean: Defines if the location is open or closed. Possible values: *true*, *false*.

---

[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)
