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

Autorisieren Sie einen Payout, um die Gelder an Ihren Begünstigten freizugeben, indem Sie seinen Status auf `Received` setzen. Dieser Endpunkt dient zur Freigabe von Payouts mit dem Status `pending` oder `on-hold`.

Sie können den zu autorisierenden Payout auf eine der folgenden Arten identifizieren:

* **Über `internalId`:** die eindeutige Transaktionskennung von Localpayment.

* **Über `externalId`:** Ihre eigene eindeutige Referenz für die Transaktion.

* **Über einen Datumsbereich:** Autorisieren Sie alle berechtigten Payouts innerhalb eines bestimmten Zeitraums.

Bei einer erfolgreichen Anfrage wird der Payout-Status auf `Received` gesetzt und die Überweisung der Gelder eingeleitet. Die Antwort bestätigt den Autorisierungsstatus oder liefert die entsprechenden Fehlerdetails.


## OpenAPI

````yaml openapi/de/localpayment.json POST /api/payout/authorize
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/authorize:
    post:
      summary: Payout autorisieren
      operationId: authorize-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:
        content:
          application/json:
            schema:
              type: object
              anyOf:
                - type: object
                  properties:
                    dateFrom:
                      type: string
                      description: Erster Tag im Format `yyyy-mm-dd`.
                    dateTo:
                      type: string
                      description: Letzter Tag im Format `yyyy-mm-dd`.
                  required:
                    - dateFrom
                    - dateTo
                - 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.
                  required:
                    - externalId
                - type: object
                  properties:
                    internalId:
                      type: string
                      description: Localpayment-Transaktionskennung.
                  required:
                    - internalId
              x-examples:
                Example 1:
                  dateFrom: '2025-01-09'
                  dateTo: '2025-01-09'
            examples:
              Date:
                value:
                  dateFrom: '2025-01-09'
                  dateTo: '2025-01-09'
              externalID:
                description: Localpayment transaction identifier.
                value:
                  externalId: 1939b376-2aed-4c7a-bc2b-1157702f00b0
              internalId:
                description: >-
                  A unique identifier generated by your system to track the
                  transaction (alphanumeric and hyphens). We recommend using
                  UUID4 to ensure uniqueness.
                value:
                  internalID: 7d7f7fca-e411-4ba6-b46f-b9fed4d5f3d0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    description: "Statuscode.\r\n\r\n"
                  message:
                    type: string
                    description: Meldung mit zusätzlichen Informationen.
                required:
                  - status
                  - message
                x-examples:
                  Example 1:
                    status: 200
                    message: The request will be processed.
              examples:
                The request will be processed:
                  value:
                    status: 200
                    message: The request will be processed.
        '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:
                Example 1:
                  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:
                anyOf:
                  - type: object
                    properties:
                      errors:
                        type: object
                        description: Fehlerinformationen.
                        properties:
                          payOutBy:
                            type: array
                            items:
                              type: string
                          '[0].internalId':
                            type: array
                            items:
                              type: string
                      type:
                        type: string
                      title:
                        type: string
                        description: "Zusätzliche Informationen zur Antwort.\r\n\r\n"
                      status:
                        type: integer
                        description: Statuscode.
                      traceId:
                        type: string
                        description: Trace-Kennung des Fehlers.
                    required:
                      - errors
                      - type
                      - title
                      - status
                      - traceId
                  - 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
                x-examples:
                  Example 1:
                    errors:
                      payOutBy:
                        - The payOutBy field is required.
                      '[0].internalId':
                        - >-
                          Error converting value
                          "7d7f7fca-e411-4ba6-b4f-b9fed4d5f3d2" to type
                          'System.Guid'. Path '[0].internalId', line 1, position
                          53.
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.1
                    title: One or more validation errors occurred.
                    status: 400
                    traceId: 00-6af59d173e66ad4eb215987cd15d57af-bea3981476c0f347-00
              examples:
                The payOutBy field is required:
                  value:
                    errors:
                      payOutBy:
                        - The payOutBy field is required.
                      '[0].internalId':
                        - >-
                          Error converting value
                          "7d7f7fca-e411-4ba6-b4f-b9fed4d5f3d2" to type
                          'System.Guid'. Path '[0].internalId', line 1, position
                          53.
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.1
                    title: One or more validation errors occurred.
                    status: 400
                    traceId: 00-6af59d173e66ad4eb215987cd15d57af-bea3981476c0f347-00
      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.