HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Get Calendar by ID

Return one Calendar and its event definitions by calendarId.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this endpoint to retrieve one calendar and the event definitions attached to it.

When to use this endpoint

Use GET /rest/public/calendars/{calendarId} when you need to:

  • Inspect the events defined on a known calendar.
  • Confirm whether a calendar represents holidays, billing periods, or pricing periods.
  • Review event metadata before querying the actual calendar dates.
  • Filter the calendar's events by a date range.

Required input

ParameterTypeDescription
calendarIdLongThe unique ID of the calendar to retrieve. You can get this value from Get Calendars.

Optional filters

ParameterTypeDescription
fromDateTimeDateTimeReturns events on or after this date.
toDateTimeDateTimeReturns events on or before this date.

Example request

GET /rest/public/calendars/2

Example response

{
  "status": "success",
  "count": 1,
  "type": "Calendar",
  "results": [
    {
      "calendarId": 2,
      "calendarName": "Holidays",
      "calendarType": "HOLIDAY",
      "lseId": 734,
      "events": [
        {
          "calendarEventId": 2,
          "calendarEventName": "New Year's Day",
          "lseId": null,
          "calendarEventType": "HOLIDAY",
          "locale": "US",
          "seededUntil": "2017-01-01"
        }
      ]
    }
  ]
}

Related endpoints

Path Params
int64
required

A unique ID for each calendar

Query Params
date

from date (Optional)

date

from date (Optional)

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json