---
title: "GET Calendar in JSON Format"
url: "https://apiportal.six-group.com/apis/sic-clearing-day-calendar-api-v1-ch-v1/versions/0f2fee1c-ce1f-4323-8b82-cfed13b6e3f3/operations/getClearingDayCalendarJson"
---

> Full API specification: https://apiportal.six-group.com/apis/sic-clearing-day-calendar-api-v1-ch-v1/versions/0f2fee1c-ce1f-4323-8b82-cfed13b6e3f3.md

# GET Calendar in JSON Format

`GET` `/calendar`

Operation ID: `getClearingDayCalendarJson`

Returns the clearing day calendar data as a JSON object.

## Query parameters

- `calendarDay` (string, date, optional) - Calendar day (according to ISO 8601) that should be returned by the API call. If not specified all available, future entries are returned.
- `serviceIdentification` (string, optional) - Service identification that should be returned by the API call. If not specified all available services are returned.

## Responses

- `200` - Clearing day calendar in JSON format
- `default` - Unexpected error.

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Clearing Day Calendar v1
  version: 1.0 (generated 2024-03-27T17:02:01Z)
servers:
  - url: https://api.six-group.com/api/epcd/clearingday/v1
  - url: https://api.p2p.six-group.com/api/epcd/clearingday/v1
  - url: https://api.fip.six-group.com/api/epcd/clearingday/v1
paths:
  /calendar:
    parameters:
      - $ref: "#/components/parameters/query_calendarDay"
      - $ref: "#/components/parameters/query_serviceIdentification"
    get:
      tags:
        - calendar
      summary: GET Calendar in JSON Format
      description: Returns the clearing day calendar data as a JSON object.
      operationId: getClearingDayCalendarJson
      responses:
        "200":
          description: Clearing day calendar in JSON format
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ClearingDayCalendarJsonResponse"
        default:
          description: Unexpected error.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Problem"
components:
  parameters:
    query_calendarDay:
      name: calendarDay
      in: query
      description: Calendar day (according to ISO 8601) that should be returned by the
        API call. If not specified all available, future entries are returned.
      required: false
      style: form
      explode: true
      schema:
        type: string
        format: date
    query_serviceIdentification:
      name: serviceIdentification
      in: query
      description: Service identification that should be returned by the API call. If
        not specified all available services are returned.
      required: false
      style: form
      explode: true
      schema:
        type: string
  schemas:
    ClearingDayCalendarJsonResponse:
      required:
        - entries
        - metaData
      type: object
      properties:
        metaData:
          $ref: "#/components/schemas/ClearingDayCalendarMetaData"
        entries:
          type: array
          items:
            $ref: "#/components/schemas/ClearingDayCalendarJsonResponseEntry"
      description: Toplevel element that contains metadata and clearing day calendar
        entries.
    Problem:
      required:
        - detail
        - status
        - title
      type: object
      properties:
        type:
          type: string
          description: >
            An absolute URI that identifies the problem type.

            We may provide human-readable documentation for the problem type in
            the future, when the URI is dereferenced.
          format: uri
          example: /problems/REQUEST_PARAMETER_VALIDATION_FAILED
          default: about:blank
        title:
          type: string
          description: |
            A short, human readable summary of the problem type.
          example: Request parameter has missing or invalid values
        status:
          maximum: 600
          exclusiveMaximum: true
          minimum: 100
          type: integer
          description: >
            The HTTP status code generated by the origin server for this
            occurrence

            of the problem.
          format: int32
          example: 400
        detail:
          type: string
          description: |
            A human readable explanation specific to this occurrence of the
            problem.
          example: The submitted request contains invalid or missing request parameters
            which cannot be processed.
        instance:
          type: string
          description: >
            An absolute URI that identifies the specific occurrence of the
            problem.

            It may or may not yield further information if dereferenced.
          format: uri
          example: /api/epcd/bankmaster/v3/public/errors/EPCD0090000001/provided-D
        metadata:
          $ref: "#/components/schemas/GenericObject"
    ClearingDayCalendarMetaData:
      required:
        - createdStamp
      type: object
      properties:
        createdStamp:
          type: string
          description: Date and time (according to ISO 8601) at which this response was
            created.
          format: date-time
          example: 2024-12-21T10:52:05.1904957+01:00
      description: Information about the validity and creation stamp.
    ClearingDayCalendarJsonResponseEntry:
      required:
        - calendarDay
        - dayOfWeek
        - services
      type: object
      properties:
        calendarDay:
          type: string
          description: Calendar day (according to ISO 8601) of the record. All dependent
            information can be found as child elements.
          format: date
          example: 2024-12-23
        dayOfWeek:
          maxLength: 15
          minLength: 1
          type: string
          description: Day of week of the current record in english. This redundant
            information is only available to support readability.
          example: Wednesday
        services:
          type: array
          items:
            $ref: "#/components/schemas/Service"
      description: Contains clearing day information for a specific calendar date.
    GenericObject:
      required:
        - "@type"
        - data
      type: object
      properties:
        "@type":
          type: string
          description: >
            The field "@type" contains a URI/name identifying the type. Example:
            "@type": "types.example.com/standard/id".
        data:
          type: object
          properties: {}
          description: |
            An object of type @type containing custom fields.
      description: |
        Structured type that contains an object and its type.
      example: >
        When associated with a 'Problem', it typically contains values which
        caused the failure and similar. May not contain sensitive CID.
    Service:
      required:
        - clearingDay
        - serviceDescription
        - serviceIdentification
      type: object
      properties:
        serviceIdentification:
          maxLength: 10
          minLength: 1
          type: string
          description: |
            Values for Production Services: PCR_P; PER_P; PCI_P 
            Values for Test environments:
            - SIC RTGS service: XCR_E; XCR_P; ACR_E; ACR_P 
            - SIC IP service: XCI_E; ACI_E; XCI_P; ACI_P; VCI_E; VCI_P
            - euroSIC RTGS service: XER_E; XER_P; AER_E; AER_P
          example: PCR_P
        serviceDescription:
          maxLength: 250
          minLength: 1
          type: string
          description: Additional information to the serviceIdentification. No predefined
            values.
          example: "SIC-RTGS-Service: External test environment for tests with production
            data and the current development status of the next release"
        clearingDay:
          type: string
          description: The clearing day that is active on the start (00:00) of the related
            calendar day.
          format: date
          example: 2024-12-23
        scheduledDowntimes:
          type: array
          description: Planned downtime(s) of the service on this calendar day. If a
            downtime does not end by midnight, the end is 24:00 and the downtime
            continues at 00:00 on the next calendar day.
          items:
            $ref: "#/components/schemas/Duration"
        scheduledClearingDayChange:
          $ref: "#/components/schemas/ScheduledClearingDayChange"
      description: Clearing day information for a specific service (e.g. SIC RTGS
        service or SIC IP service). This always includes the currently valid
        clearing day and may include planned downtimes and planned clearing day
        changes - if any.
    Duration:
      required:
        - endDateTime
        - startDateTime
      type: object
      properties:
        startDateTime:
          type: string
          description: Start date and time of the duration.
          format: date-time
          example: 2024-12-23T12:00:00+01:00
        endDateTime:
          type: string
          description: End date and time of the duration.
          format: date-time
      description: A duration composed of start and end. The date-time fields are
        structured according to RFC3339, section 5.6 in ISO 8601 with timezone
        and milliseconds.
    ScheduledClearingDayChange:
      required:
        - nextClearingDay
      type: object
      properties:
        scheduledClearingStop1:
          type: string
          description: Clearing stop 1 date and time.
          format: date-time
          example: 2024-12-23T17:00:00+01:00
        scheduledClearingStop2:
          type: string
          description: Clearing stop 2 date and time.
          format: date-time
          example: 2024-12-23T18:00:00+01:00
        scheduledClearingStop3:
          type: string
          description: Clearing stop 3 date and time.
          format: date-time
          example: 2024-12-23T18:15:00+01:00
        scheduledCutOff1:
          type: string
          description: Cut off 1 date and time.
          format: date-time
          example: 2024-12-23T16:30:00+01:00
        scheduledCutOff2:
          type: string
          description: Cut off 2 date and time.
          format: date-time
          example: 2024-12-23T17:30:00+01:00
        nextClearingDay:
          type: string
          description: The clearing day that starts after day end processing (SIC and
            euroSIC RTGS service) or after day change (SIC IP service).
          format: date
          example: 2024-12-24
      description: >
        Used if a clearing day change is scheduled for the calendar date.
        Depending on the service certain child-elements are available:


        a) clearing stops (SIC RTGS and euroSIC RTGS service)

        b) cut-offs for euroSIC RTGS service

        c) the next clearing day scheduled


        The date-time fields are structured according to RFC3339, section 5.6 in
        ISO 8601 with timezone and milliseconds.
```
