> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the business-day calendar

> The honored national holiday calendar for a year plus the verified BCB-artifact provenance (source, retrieval instant, sha256, covered years), projected verbatim from the compiled artifact (D-4). year defaults to the current year; a year outside the artifact's coverage returns a clean 404.



## OpenAPI

````yaml en/openapi/v3-current/siloc.yaml get /api/v1/siloc/schedule/calendar
openapi: 3.1.0
info:
  description: >-
    OpenAPI 3.1 surface for Lerian SILOC, the participant-side rail connecting
    the institution to Núclea's SILOC deferred-net interbank settlement. It
    covers settlement-coverage capabilities, participant registry and
    operational status, regulated-certificate lifecycle, the card-domain message
    relay and its status, administrative replay of parked relay failures, OT
    settlement cycles and recálculo rounds, settlement instructions, ROC
    ingestion, operational alerts, contingency schedule changes, business-day
    calendar reads, and the audit trail.
  title: Lerian SILOC API
  version: 1.0.0
servers:
  - url: http://localhost:9820
security: []
paths:
  /api/v1/siloc/schedule/calendar:
    get:
      tags:
        - Schedule
      summary: Get the business-day calendar
      description: >-
        The honored national holiday calendar for a year plus the verified
        BCB-artifact provenance (source, retrieval instant, sha256, covered
        years), projected verbatim from the compiled artifact (D-4). year
        defaults to the current year; a year outside the artifact's coverage
        returns a clean 404.
      operationId: getBusinessDayCalendar
      parameters:
        - description: Calendar year (defaults to the current year).
          explode: false
          in: query
          name: year
          schema:
            description: Calendar year (defaults to the current year).
            format: int64
            maximum: 2100
            minimum: 2000
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BusinessDayCalendarResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    BusinessDayCalendarResponse:
      additionalProperties: false
      properties:
        holidays:
          description: The year's national holidays, ascending by date (never null).
          items:
            $ref: '#/components/schemas/HolidayResponse'
          type:
            - array
            - 'null'
        provenance:
          $ref: '#/components/schemas/CalendarProvenanceResponse'
          description: The verified BCB-artifact provenance.
        year:
          description: The calendar year served.
          format: int64
          type: integer
      required:
        - year
        - holidays
        - provenance
      type: object
    Detail:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    HolidayResponse:
      additionalProperties: false
      properties:
        date:
          description: National holiday date (YYYY-MM-DD).
          format: date
          type: string
        name:
          description: Holiday name, verbatim from the artifact.
          type: string
      required:
        - date
        - name
      type: object
    CalendarProvenanceResponse:
      additionalProperties: false
      properties:
        coveredYears:
          description: The years the calendar authoritatively covers (ascending).
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        retrievedAt:
          description: When the artifact was retrieved.
          format: date-time
          type: string
        sha256:
          description: Canonical SHA-256 over the artifact's holiday body.
          type: string
        sourceName:
          description: The artifact's declared source (BCB national bank holidays).
          type: string
        sourceUrl:
          description: The source URL the artifact was retrieved from.
          type: string
      required:
        - sourceName
        - sourceUrl
        - retrievedAt
        - sha256
        - coveredYears
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````