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

# Import a TSO's confirmation report

> A confirmation report as the TSO sent it - for when Engrate does
not serve the message. Stored with the day; what was sent is read back
from Engrate. A report already held is replaced by the same. Raises
the TSO-change alert where a trade series differs. Sends nothing.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/delivery-days/{delivery_day}/bestaetigungen
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Internal API
  version: 0.4.0
  description: >-
    Internal API of the n:lead scheduling bridge: the process endpoints that
    drive the day-ahead pipeline (aggregate, publish the open position, submit
    schedules, generate forecasts, orchestrate), the operator console endpoints,
    and the read-only operator-app endpoints under /v1/mobile. The process and
    console endpoints require the process API key, /v1/mobile a device key of
    the mobile scope; not for customer use.
servers:
  - url: https://{host}
    description: Deployed service
    variables:
      host:
        default: api.energy.nlead.ch
        description: >-
          The service hostname - n:lead provides it (see the Base URL on the API
          introduction page)
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/delivery-days/{delivery_day}/bestaetigungen:
    post:
      summary: Import a TSO's confirmation report
      description: |-
        A confirmation report as the TSO sent it - for when Engrate does
        not serve the message. Stored with the day; what was sent is read back
        from Engrate. A report already held is replaced by the same. Raises
        the TSO-change alert where a trade series differs. Sends nothing.
      operationId: >-
        post_bestaetigung_import_v1_process_delivery_days__delivery_day__bestaetigungen_post
      parameters:
        - name: delivery_day
          in: path
          required: true
          schema:
            type: string
            format: date
            title: Delivery Day
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BestaetigungImportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Post Bestaetigung Import V1 Process Delivery Days 
                  Delivery Day  Bestaetigungen Post
        '422':
          description: No confirmation report for this day.
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    BestaetigungImportRequest:
      properties:
        xml:
          type: string
          maxLength: 5000000
          minLength: 1
          title: Xml
          description: The XML
      type: object
      required:
        - xml
      title: BestaetigungImportRequest
      description: |-
        A TSO's confirmation report (ESS ``ConfirmationReport``) as the TSO
        sent it - a CNI, the CNF-DA or the final CNF.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````

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