> ## 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.

# List deadline occurrences

> Returns every occurrence of every non-deleted deadline of the tenant, active or not, whose day falls between start_date and end_date, both inclusive. The day is the civil day in the deadline's timezone, and the series starts at the deadline's first occurrence, so nothing before it is answered. The status is the one GET /v1/deadlines gives an occurrence: delivered when the deadline's delivered mark settles it, overdue when it is unsettled and its day has ended, pending otherwise. Items are ordered by day and then by deadline id; there is no pagination, and the window of at most 42 days is the ceiling.



## OpenAPI

````yaml /es/openapi/v3-current/reporter.yaml get /v1/deadlines/occurrences
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    Reporter generates regulatory, accounting and operational reports from
    templates over your data sources.
  license:
    name: Lerian Studio General License
  title: Reporter API
  version: 4.0.0
servers:
  - url: https://reporter.sandbox.lerian.net
security:
  - BearerAuth: []
tags:
  - description: Generated report instances and their lifecycle.
    name: Reports
  - description: Reusable report definitions.
    name: Templates
  - description: Interactive construction of report templates.
    name: Template Builder
  - description: Scheduled report due-date tracking.
    name: Deadlines
  - description: Configured inputs that feed report data.
    name: Data Sources
  - description: Configured file transports that deliver datasets.
    name: File Sources
  - description: Datasets read from file sources and the schedule of their days.
    name: File Datasets
  - description: Aggregated reporting metrics.
    name: Metrics
  - description: Published business event catalog and delivery policies.
    name: Streaming
paths:
  /v1/deadlines/occurrences:
    get:
      tags:
        - Deadlines
      summary: List deadline occurrences
      description: >-
        Returns every occurrence of every non-deleted deadline of the tenant,
        active or not, whose day falls between start_date and end_date, both
        inclusive. The day is the civil day in the deadline's timezone, and the
        series starts at the deadline's first occurrence, so nothing before it
        is answered. The status is the one GET /v1/deadlines gives an
        occurrence: delivered when the deadline's delivered mark settles it,
        overdue when it is unsettled and its day has ended, pending otherwise.
        Items are ordered by day and then by deadline id; there is no
        pagination, and the window of at most 42 days is the ceiling.
      operationId: listDeadlineOccurrences
      parameters:
        - description: >-
            First day of the window, in YYYY-MM-DD format, inclusive. A civil
            day compared with each occurrence's day in the deadline's own
            timezone. Required.
          example: '2027-01-20'
          explode: false
          in: query
          name: start_date
          required: true
          schema:
            description: >-
              First day of the window, in YYYY-MM-DD format, inclusive. A civil
              day compared with each occurrence's day in the deadline's own
              timezone. Required.
            format: date
            type: string
        - description: >-
            Last day of the window, in YYYY-MM-DD format, inclusive. On or after
            start_date, at most 42 days in all, and no more than 10 years after
            today (UTC). Required.
          example: '2027-03-02'
          explode: false
          in: query
          name: end_date
          required: true
          schema:
            description: >-
              Last day of the window, in YYYY-MM-DD format, inclusive. On or
              after start_date, at most 42 days in all, and no more than 10
              years after today (UTC). Required.
            format: date
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadlineOccurrenceListHumaBody'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Forbidden
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
components:
  schemas:
    DeadlineOccurrenceListHumaBody:
      additionalProperties: false
      properties:
        items:
          description: >-
            Occurrences whose day falls in the window, ordered by day and then
            by deadline id. Empty when none does.
          items:
            $ref: '#/components/schemas/Occurrence'
          type:
            - array
            - 'null'
      required:
        - items
      type: object
    Detail:
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          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
          examples:
            - - location: body.templateId
                message: expected string to match 'uuid' format
                value: not-a-uuid
          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
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    Occurrence:
      additionalProperties: false
      properties:
        day:
          description: Calendar day of the occurrence in the deadline's timezone.
          examples:
            - '2027-02-28'
          format: date
          type: string
        deadlineId:
          description: >-
            Identifier of the deadline this occurrence belongs to, the id GET
            /v1/deadlines answers.
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        filingId:
          description: >-
            The report that gives filingState, the id GET /v1/reports/{id}
            answers. Absent with none.
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        filingState:
          description: >-
            State of the filing of the period: approved when a final not marked
            excluded stands, draft when a draft can still be approved,
            generating while one is processing, failed when the last generation
            failed, none otherwise.
          enum:
            - none
            - generating
            - failed
            - draft
            - approved
          examples:
            - draft
          type: string
        period:
          description: >-
            Filing period the occurrence covers, in the form of the linked
            document: YYYY-MM for a month document, YYYY-MM-DD for a
            business-day document. Absent for a document with no filing period
            and when filingError is present.
          examples:
            - 2026-11
          type: string
        status:
          description: >-
            State of the occurrence at request time: delivered when the
            effective mark settles it, overdue when unsettled and its day has
            ended in the deadline's timezone, pending otherwise.
          enum:
            - pending
            - overdue
            - delivered
          examples:
            - overdue
          type: string
      required:
        - deadlineId
        - day
        - status
      type: object
    ErrorDetail:
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          examples:
            - body.templateId
          type: string
        message:
          description: Error message text
          examples:
            - expected string to match 'uuid' format
          type: string
        value:
          description: The value at the given location
          examples:
            - not-a-uuid
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.