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

# Post Quittung Manuell

> Record a bilateral acknowledgment given as prose - "wir bestätigen
hiermit bilateral den Empfang der PARTIN, die Daten sind hinterlegt" -
for a partner whose MaKo could not send the APERAK. Bound to our
message like an imported acknowledgment; the mail's gist is kept as
the reason text and the source is marked as manually recorded.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/edifact/quittung-manuell
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) and the operator console
    endpoints. Requires the process API key; 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/edifact/quittung-manuell:
    post:
      summary: Post Quittung Manuell
      description: |-
        Record a bilateral acknowledgment given as prose - "wir bestätigen
        hiermit bilateral den Empfang der PARTIN, die Daten sind hinterlegt" -
        for a partner whose MaKo could not send the APERAK. Bound to our
        message like an imported acknowledgment; the mail's gist is kept as
        the reason text and the source is marked as manually recorded.
      operationId: post_quittung_manuell_v1_process_edifact_quittung_manuell_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuittungManuellRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuittungImportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    QuittungManuellRequest:
      properties:
        mp_id:
          type: string
          pattern: ^\d{13}$
          title: Mp Id
          description: The partner's MP-ID
        bezug:
          type: string
          maxLength: 14
          minLength: 1
          title: Bezug
          description: Datenaustauschreferenz of OUR message being acknowledged
        verdict:
          type: string
          enum:
            - positiv
            - negativ
          title: Verdict
        grund:
          type: string
          maxLength: 250
          minLength: 5
          title: Grund
          description: 'The mail''s gist: who confirmed what, when'
        datum:
          type: string
          title: Datum
          description: When the confirmation was given (ISO 8601); empty = now
          default: ''
      type: object
      required:
        - mp_id
        - bezug
        - verdict
        - grund
      title: QuittungManuellRequest
      description: |-
        Record a bilateral acknowledgment that came as prose (a partner
        confirms by mail that our PARTIN is registered, or refuses it) without
        an EDIFACT file. Stored as a synthesized APERAK through the same ledger
        as an imported file, bound to our message by ``bezug``.
    QuittungImportResponse:
      properties:
        referenz:
          type: string
          title: Referenz
          description: Datenaustauschreferenz of the acknowledgment
        edi_type:
          type: string
          title: Edi Type
        sender:
          type: string
          title: Sender
        recipient:
          type: string
          title: Recipient
        date:
          type: string
          title: Date
        bezug:
          type: string
          title: Bezug
          description: The interchange it answers
        verdict:
          type: string
          title: Verdict
          description: '`positiv` or `negativ`'
        grund:
          type: string
          title: Grund
          default: ''
        nachrichten:
          type: integer
          title: Nachrichten
          description: Messages (UNH) in the interchange
        neu:
          type: boolean
          title: Neu
          description: False when this reference was already imported
      type: object
      required:
        - referenz
        - edi_type
        - sender
        - recipient
        - date
        - bezug
        - verdict
        - nachrichten
        - neu
      title: QuittungImportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````