---
title: "Get the upcoming business hours schedule."
method: GET
path: "/beta/business-hours/schedules/{scheduleId}/upcoming"
tags: ["Business Hours"]
---

# Get the upcoming business hours schedule.

`GET /beta/business-hours/schedules/{scheduleId}/upcoming`

## Request

- Base URL: `https://dev.dixa.io`
- URL: `https://dev.dixa.io/beta/business-hours/schedules/{scheduleId}/upcoming`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/dixa/apis/dixa-api/docs/beta/business-hours/schedules/:scheduleId/upcoming/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the resolved business hours schedule for the next number of days, applying recurring rules and exceptions. Each entry in `businessHours` describes one upcoming day (see its `nextDate`). An entry with `status: Open` lists the intervals during which the business is open on that day; between and outside those intervals it is closed. An entry with `status: Closed` is a day explicitly configured as closed and has no intervals. Days without any configured business hours are omitted from the response entirely, so `businessHours` can be empty when no day in the requested window has configured hours. In short: the business is open only during the intervals of `status: Open` entries, and closed at all other times.

## Path parameters

- `scheduleId` string, uuid, required

## Query parameters

- `days` integer

## Response `200`

- GetUpcomingBusinessHoursScheduleOutput
  - `data` GetUpcomingBusinessHoursScheduleResult, required
    - `schedule` BusinessHoursUpcomingSchedule, required
      - `id` string, required
      - `name` string, required
      - `timezone` string, required
      - `businessHours` BusinessHour[]
        - `name` string, required
        - `dayOfWeek` integer
        - `businessHourType` union, required
          - Exception1
          - Holiday1
          - Regular2
        - `status` union, required
          - Closed1
          - Open1
        - `intervals` TimeInterval1[]
          - `startTime` string, required
          - `endTime` string, required
        - `recurring` Recurring1
          - `dayOfMonth` integer
          - `monthOfYear` integer
          - `holiday` string
        - `startDate` string, required
        - `nextDate` string

## Other responses

- `400`: Invalid value for: path parameter scheduleId, Invalid value for: query parameter days, Invalid value extracted from request context
- `404`: An entity in this request could not be found
- `500`: Internal failure during request processing

---

[API](https://skmtc.dev/dixa/apis/dixa-api.md) - [All operations](https://skmtc.dev/dixa/apis/dixa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dixa/apis/dixa-api/revisions/4c9e4ef864d1?raw)
