> ## 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 a day of a file dataset

> Returns one day as the ledger keeps it, with its revisions and last attempt; 404 when the ledger holds none.



## OpenAPI

````yaml /en/openapi/v3-current/reporter.yaml get /v1/file-datasets/{fileDatasetId}/days/{referenceDate}
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/file-datasets/{fileDatasetId}/days/{referenceDate}:
    get:
      tags:
        - File Datasets
      summary: Get a day of a file dataset
      description: >-
        Returns one day as the ledger keeps it, with its revisions and last
        attempt; 404 when the ledger holds none.
      operationId: getFileDatasetDay
      parameters:
        - description: Unique file dataset identifier.
          example: 00000000-0000-0000-0000-000000000000
          in: path
          name: fileDatasetId
          required: true
          schema:
            description: Unique file dataset identifier.
            type: string
        - description: Reference date of the day, yyyy-MM-dd.
          example: '2026-02-09'
          in: path
          name: referenceDate
          required: true
          schema:
            description: Reference date of the day, yyyy-MM-dd.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Day'
          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
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Not Found
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
components:
  schemas:
    Day:
      additionalProperties: false
      properties:
        checkedAt:
          description: Last time a fetch looked at the source, in UTC
          examples:
            - '2026-02-01T09:00:00Z'
          format: date-time
          type: string
        createdAt:
          description: When the day entered the ledger, in UTC
          examples:
            - '2026-01-01T00:00:00Z'
          format: date-time
          type: string
        datasetId:
          description: Dataset the day belongs to
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        id:
          description: Day identifier
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        lastAttempt:
          $ref: '#/components/schemas/Attempt'
          description: The last fetch attempt of the day
        noDelivery:
          description: >-
            True when the current revision is an operator's no-delivery
            declaration
          examples:
            - false
          type: boolean
        overdue:
          description: True when the due time passed and no revision is accepted
          examples:
            - false
          type: boolean
        referenceDate:
          description: Reference date of the day, yyyy-MM-dd
          examples:
            - '2026-01-31'
          type: string
        revisions:
          description: Accepted revisions of the day, oldest first; append-only
          items:
            $ref: '#/components/schemas/Revision'
          type:
            - array
            - 'null'
        state:
          description: 'Where the day stands: waiting, accepted, refused or failed'
          examples:
            - accepted
          type: string
        updatedAt:
          description: When the day last changed, in UTC
          examples:
            - '2026-02-01T09:00:00Z'
          format: date-time
          type: string
      required:
        - id
        - datasetId
        - referenceDate
        - state
        - overdue
        - noDelivery
        - revisions
        - createdAt
        - updatedAt
      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
    Attempt:
      additionalProperties: false
      properties:
        at:
          description: When the attempt ran, in UTC
          examples:
            - '2026-02-01T09:00:00Z'
          format: date-time
          type: string
        error:
          description: Why a failed attempt failed; never a host, a path or a secret
          examples:
            - connect failed
          type: string
        findings:
          description: Findings of the check, refusals and warnings
          items:
            $ref: '#/components/schemas/Finding'
          type:
            - array
            - 'null'
        outcome:
          description: How the attempt ended
          examples:
            - accepted
          type: string
        trigger:
          description: 'What started the attempt: schedule or manual'
          examples:
            - schedule
          type: string
      required:
        - at
        - trigger
        - outcome
      type: object
    Revision:
      additionalProperties: false
      properties:
        acceptedAt:
          description: When the revision was accepted, in UTC
          examples:
            - '2026-02-01T09:00:00Z'
          format: date-time
          type: string
        contractVersion:
          description: Contract version the revision was accepted under
          examples:
            - 1
          format: int64
          type: integer
        files:
          description: Files the revision holds; empty on a no-delivery declaration
          items:
            $ref: '#/components/schemas/StoredFile'
          type:
            - array
            - 'null'
        noDeliveryBy:
          description: Who declared the day empty; only on a no-delivery revision
          examples:
            - operator
          type: string
        number:
          description: Revision number, from 1
          examples:
            - 1
          format: int64
          type: integer
        sourceRevision:
          description: The sender's own revision number, from the manifest
          examples:
            - 2
          format: int64
          type: integer
        warnings:
          description: Findings that did not refuse the day
          items:
            $ref: '#/components/schemas/Finding'
          type:
            - array
            - 'null'
      required:
        - number
        - contractVersion
        - files
        - acceptedAt
      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
    Finding:
      additionalProperties: false
      properties:
        control:
          description: Name of the declared control, or of the built-in check.
          examples:
            - file-sha256
          type: string
        message:
          description: >-
            What was found, with a count and up to ten line numbers; never a
            value of a row.
          examples:
            - '3 rows: amount is not a decimal (lines 12, 40, 41)'
          type: string
        refuses:
          description: True when the finding refuses the day; false for a warning.
          examples:
            - true
          type: boolean
        table:
          description: Table the finding is about; absent when it is about the whole day.
          examples:
            - entries
          type: string
      required:
        - control
        - message
        - refuses
      type: object
    StoredFile:
      additionalProperties: false
      properties:
        bytes:
          description: Size of the file as it arrived
          examples:
            - 2048
          format: int64
          type: integer
        name:
          description: File name in the day's folder
          examples:
            - entries.csv
          type: string
        rows:
          description: Rows the file holds
          examples:
            - 120
          format: int64
          type: integer
        sha256:
          description: Hex SHA-256 of the stored file
          examples:
            - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
          type: string
        table:
          description: Table the file feeds
          examples:
            - entries
          type: string
      required:
        - table
        - name
        - bytes
        - rows
        - sha256
      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.