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

# Validate Clearing Data

> Validate clearing data completeness for a clearing period.

Checks that: - All expected settlement days have MSCONS data - The required EDIFACT messages are present - The clearing period status allows submission

Returns a `valid` flag, counts of settlements/messages vs expected, and a list of human-readable `issues` describing any gaps found.



## OpenAPI

````yaml /openapi.json get /schedule-management/v1/mabis/clearing-periods/{uid}/validate
openapi: 3.1.0
info:
  title: Engrate API
  version: 1.0.0
servers:
  - url: https://api.engrate.io
security:
  - apiKeyAuth: []
paths:
  /schedule-management/v1/mabis/clearing-periods/{uid}/validate:
    get:
      tags:
        - mabis
      summary: Validate Clearing Data
      description: >-
        Validate clearing data completeness for a clearing period.


        Checks that: - All expected settlement days have MSCONS data - The
        required EDIFACT messages are present - The clearing period status
        allows submission


        Returns a `valid` flag, counts of settlements/messages vs expected, and
        a list of human-readable `issues` describing any gaps found.
      operationId: >-
        validate_clearing_data_schedule_management_v1_mabis_clearing_periods__uid__validate_get
      parameters:
        - description: Clearing period unique identifier.
          in: path
          name: uid
          required: true
          schema:
            description: Clearing period unique identifier.
            format: uuid
            title: Uid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ValidationResponse:
      description: >-
        Validation result for a clearing period, checking data completeness and
        consistency.
      properties:
        bilanzierungsmonat:
          description: Settlement month in ISO 8601 format.
          examples:
            - '2026-01-01'
          title: Bilanzierungsmonat
          type: string
        clearing_period_uid:
          description: >-
            Validated [Clearing
            Period](/api-reference/settlement-management/models/clearing-period)
            identifier.
          title: Clearing Period Uid
          type: string
        expected_days:
          description: Number of days expected for this settlement month.
          examples:
            - 31
          title: Expected Days
          type: integer
        issues:
          description: List of validation issues found. Empty when `valid` is `true`.
          examples:
            - - Missing settlement data for 2026-01-15
              - MSCONS message count mismatch
          items:
            type: string
          title: Issues
          type: array
        message_count:
          description: Number of EDIFACT messages processed for this period.
          examples:
            - 5
          title: Message Count
          type: integer
        settlement_count:
          description: Number of daily settlement records present.
          examples:
            - 31
          title: Settlement Count
          type: integer
        status:
          description: Current clearing period status.
          examples:
            - preliminary
          title: Status
          type: string
        valid:
          description: Whether the clearing period data passes all validation checks.
          title: Valid
          type: boolean
      required:
        - bilanzierungsmonat
        - clearing_period_uid
        - expected_days
        - issues
        - message_count
        - settlement_count
        - status
        - valid
      title: ValidationResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    apiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````