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

# Payout stornieren

Stornieren Sie einen Payout, um die Überweisung der Gelder zu verhindern. Verwenden Sie diesen Endpunkt, um Transaktionen zu stoppen, die versehentlich erstellt wurden oder korrigiert werden müssen.

> **Hinweis**
>
> Sie können nur Payouts mit dem Status **Locked** oder **On Hold** stornieren. Details zu den Statusübergängen finden Sie in der Dokumentation [Payout-Übersicht](https://docs.localpayment.com/de/reference/create-a-payout.md).

Dieser Endpunkt schützt Ihre Transaktionen, indem er sicherstellt, dass keine Gelder an den falschen Empfänger oder in falscher Höhe gesendet werden.


## OpenAPI

````yaml openapi/de/localpayment.json PATCH /api/payout/cancel
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/payout/cancel:
    patch:
      summary: Payout stornieren
      operationId: void-a-payout
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer-Zugriffstoken zur Authentifizierung. Dieses Token erhalten
            Sie über die Endpunkte [Zugriffstoken
            abrufen](/de/reference/get-token) oder [Zugriffstoken
            aktualisieren](/de/reference/refresh-token).
          required: true
          schema:
            type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              type: object
              properties:
                externalId:
                  type: string
                  description: ID der zu stornierenden Transaktion.
              required:
                - externalId
              x-examples:
                Example 1:
                  externalId: '1736488554'
            examples:
              Void a payout:
                value:
                  externalId: '1736488554'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  externalId:
                    type: string
                    description: >-
                      Eine von Ihrem System generierte eindeutige Kennung zur
                      Nachverfolgung der Transaktion (alphanumerische Zeichen
                      und Bindestriche). Wir empfehlen UUID4, um die
                      Eindeutigkeit sicherzustellen.
                  internalId:
                    type: string
                    description: Localpayment-Transaktionskennung.
                  status:
                    type: object
                    title: status
                    description: Status des Vorgangs.
                    properties:
                      code:
                        type: string
                        description: >-
                          [Statuscode](/de/reference/transaction-status-error-codes).
                      description:
                        type: string
                        description: >-
                          [Statusbeschreibung](/de/reference/transaction-status-error-codes).
                      detail:
                        type: string
                        description: Zusätzliche Statusinformationen.
                required:
                  - externalId
                  - internalId
                  - status
                x-examples:
                  Example 1:
                    externalId: '1736488510'
                    internalId: 3d36811d-1c02-41ea-a576-68df62c4603a
                    status:
                      code: '900'
                      description: Cancelled
                      detail: The payout was cancelled
              examples:
                900 - Cancelled:
                  value:
                    externalId: '1736488510'
                    internalId: 3d36811d-1c02-41ea-a576-68df62c4603a
                    status:
                      code: '900'
                      description: Cancelled
                      detail: The payout was cancelled
        '401':
          description: Nicht autorisiert.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Zusätzliche Informationen zur Antwort.
                  code:
                    type: string
                    description: Statuscode.
                  messages:
                    type: array
                    description: Liste der Meldungen.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token-Klasse.
                        token_type:
                          type: string
                          description: Token-Typ.
                        message:
                          type: string
                          description: Meldung mit zusätzlichen Informationen.
                x-examples:
                  Example 1:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
              examples:
                401 - Token is invalid or expired:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
        '404':
          description: Nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  Status:
                    type: integer
                    description: Statuscode.
                  Message:
                    type: string
                    description: Meldung mit zusätzlichen Informationen.
                  TraceId:
                    type: string
                    description: Trace-Kennung.
                required:
                  - Status
                  - Message
                  - TraceId
                x-examples:
                  Example 1:
                    Status: 404
                    Message: This transacion does not exists.
                    TraceId: d11cea70-7f14-4f11-b66e-13f5f56c2e56
              examples:
                404 - Transaction does not exists:
                  value:
                    Status: 404
                    Message: This transacion does not exists.
                    TraceId: dae2d1cb-7e9e-48a5-8530-980f38b31712
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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