Skip to main content
GET
/
api
/
v1
/
report
/
hours
TypeScript
import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";

const api = new MtnManagerApi(
	new Configuration({
		basePath: "https://your-resort.mtnmanager.com",
	})
);

try {
    const data = await api.getHours();
    console.log(data);
} catch (error) {
    console.error(error);
}
{
  "schedules": [
    {
      "days_string": "Saturday & Sunday",
      "days_of_week": [
        "Sunday",
        "Saturday"
      ],
      "time_string": "9:00 a.m. to 4:00 p.m.",
      "opens_at": "09:00",
      "closes_at": "16:00",
      "in_effect": true,
      "effective_string": "November 1, 2024 to April 15, 2025",
      "effective_from": "2024-11-01",
      "effective_to": "2025-04-15"
    }
  ],
  "calendar_days": [
    {
      "date": "2024-12-25",
      "day_of_week": "Wednesday",
      "is_open": true,
      "opens_at": "09:00",
      "closes_at": "16:00",
      "amenities": [
        {
          "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "name": "Tube Park",
          "category": "recreation",
          "opens_at": "10:00",
          "closes_at": "16:00"
        }
      ]
    }
  ],
  "amenity_schedules": [
    {
      "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Tube Park",
      "category": "recreation",
      "schedules": [
        {
          "days_string": "Saturday & Sunday",
          "days_of_week": [
            "Sunday",
            "Saturday"
          ],
          "time_string": "9:00 a.m. to 4:00 p.m.",
          "opens_at": "09:00",
          "closes_at": "16:00",
          "in_effect": true,
          "effective_string": "November 1, 2024 to April 15, 2025",
          "effective_from": "2024-11-01",
          "effective_to": "2025-04-15"
        }
      ]
    }
  ]
}

Response

Resort's operating hours, including the recurring schedule, and list of individual calendar days.

schedules
object[]
required

Recurring operating schedules currently in effect or upcoming. Excludes single-day overrides and past schedules.

calendar_days
object[]
required

List of all days the resort is open (or a closure override). Ordered chronologically, spanning from the earliest scheduled date to the latest scheduled date in the currently defined operating hours.

amenity_schedules
object[]

Per-amenity operating schedules. Only included when amenity hours are configured.