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

# QS Check EICR Excel Report

> Upload an Electrical Installation Condition Report (EICR) Excel workbook (`.xlsx` or `.xlsm`) to perform automated Qualified Supervisor (QS) audit validation.

### How it works
- **Audit & Validation:** Validates schedules of inspections, test results, circuit calculations, dates, and outcome classifications against electrical compliance standards.
- **Annotated Report:** Returns a modified, validated Excel workbook stream where discrepancy cells are highlighted with comments, corrective actions, and recommended values.
- **Direct Download:** The response is returned directly as a downloadable binary spreadsheet attachment.

### Supported files
- **Formats:** `.xlsx`, `.xlsm`
- **Max file size:** 25 MB
- **Content type:** `multipart/form-data` under the `file` field




## OpenAPI

````yaml /api/api-reference/validate-report.yml post /qs-check-excel
openapi: 3.0.3
info:
  title: Field Sight API
  version: 1.0.0
  description: Field Sight electrical board analysis API.
servers:
  - url: https://api.novumlogictechnologies.com
security:
  - ApiKeyAuth: []
paths:
  /qs-check-excel:
    post:
      tags:
        - QS Validation
      summary: QS Check EICR Excel Report
      description: >
        Upload an Electrical Installation Condition Report (EICR) Excel workbook
        (`.xlsx` or `.xlsm`) to perform automated Qualified Supervisor (QS)
        audit validation.


        ### How it works

        - **Audit & Validation:** Validates schedules of inspections, test
        results, circuit calculations, dates, and outcome classifications
        against electrical compliance standards.

        - **Annotated Report:** Returns a modified, validated Excel workbook
        stream where discrepancy cells are highlighted with comments, corrective
        actions, and recommended values.

        - **Direct Download:** The response is returned directly as a
        downloadable binary spreadsheet attachment.


        ### Supported files

        - **Formats:** `.xlsx`, `.xlsm`

        - **Max file size:** 25 MB

        - **Content type:** `multipart/form-data` under the `file` field
      operationId: qsCheckExcel
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: The EICR Excel workbook to validate (.xlsx or .xlsm).
      responses:
        '200':
          description: >-
            Validation completed successfully. Returns the annotated Excel
            workbook with highlighted errors and suggestions.
          headers:
            Content-Disposition:
              schema:
                type: string
                example: attachment; filename="report.xlsx"
              description: Indicates the response is a downloadable file attachment.
            Content-Type:
              schema:
                type: string
                example: >-
                  application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
              description: OpenXML spreadsheet MIME type.
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
                description: The binary byte stream of the validated Excel file.
        '400':
          description: Bad request (missing multipart file field or malformed input).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: BAD_REQUEST
                error: missing or invalid 'file' field in multipart body
        '401':
          description: Missing, invalid, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: UNAUTHORIZED
                error: API key not found or no longer valid
        '402':
          description: No active subscription or token balance exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: TOKENS_EXHAUSTED
                error: Available usage was just used up.
        '413':
          description: File size exceeds the 25MB limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: FILE_TOO_LARGE
                error: file size exceeds 25MB limit
        '415':
          description: Unsupported file type or corrupt Excel workbook.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: INVALID_FILE_CONTENT
                error: file content is not a valid Excel workbook
        '422':
          description: >-
            Unprocessable entity (QS verification engine failed to parse the
            workbook).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: UNPROCESSABLE_ENTITY
                error: Unprocessable entity
        '429':
          description: Too many requests in progress.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: TOO_MANY_PENDING_REQUESTS
                error: Too many requests in progress. Please wait a moment and retry.
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: INTERNAL_ERROR
                error: Something went wrong while processing the file
components:
  schemas:
    Error:
      type: object
      required:
        - code
        - error
      properties:
        code:
          type: string
          description: Standardized error code identifier.
          example: UNAUTHORIZED
        error:
          type: string
          description: Human-readable error description.
          example: API key not found or no longer valid
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Field Sight API key.

````