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

# Bankkonto validieren

Vermeiden Sie fehlgeschlagene Transaktionen, indem Sie das Format von Bankkonten anhand länderspezifischer Regeln validieren. Dieser Endpunkt stellt die Richtigkeit der Angaben sicher, bevor Sie eine Überweisung veranlassen.


## OpenAPI

````yaml openapi/de/localpayment.json POST /api/validation/bank
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/validation/bank:
    post:
      summary: Bankkonto validieren
      operationId: validate-bank-account
      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
              properties:
                country:
                  type: string
                  enum:
                    - ARG
                    - BOL
                    - BRA
                    - CHL
                    - COL
                    - CRI
                    - DOM
                    - GTM
                    - HND
                    - MEX
                    - PAN
                    - PRY
                    - PER
                  description: >-
                    [Land des Dokuments](/de/docs/global-coverage). ISO 3166-1
                    alpha-3.
                bank:
                  type: object
                  description: Bankinformationen.
                  properties:
                    code:
                      type: string
                      description: '[Bankcode](/de/reference/get-bank-codes).'
                      examples:
                        - '000'
                    account:
                      type: object
                      description: Informationen zum zu validierenden Bankkonto.
                      properties:
                        number:
                          type: string
                          description: Die Bankkontonummer.
                        type:
                          type: string
                          enum:
                            - C
                            - S
                            - M
                            - V
                            - R
                            - D
                            - P
                          description: |-
                            [Bankkontotyp](/de/reference/validate-bank-account).

                            * `C`: Girokonto
                            * `S`: Sparkonto
                            * `M`: Hauptkonto
                            * `V`: VISA-Konto
                            * `R`: RUT
                            * `D`: Debitkonto
                            * `P`: Telefon
                      required:
                        - number
                        - type
                    branch:
                      type: object
                      description: Nur für brasilianische Bankkonten erforderlich.
                      properties:
                        code:
                          type: string
                          description: >-
                            Das Format des Filialcodes [hängt von der Bank
                            ab](/de/reference/get-bank-codes).
                  required:
                    - code
                    - account
              required:
                - country
                - bank
              x-examples:
                Example 1:
                  country: ARG
                  bank:
                    code: '426'
                    account:
                      number: '4260004000100091408081'
                      type: s
            examples:
              200 - Valid bank code and account number.:
                value:
                  country: ARG
                  bank:
                    code: '191'
                    account:
                      number: '1910119655111901676653'
                      type: S
              200 - Brazil bank account validation:
                value:
                  country: BRA
                  bank:
                    code: '341'
                    branch:
                      code: '6393'
                    account:
                      number: '217309'
                      type: S
              501 - Country not found.:
                value:
                  country: AR
                  bank:
                    code: '191'
                    account:
                      number: '1910119655111901676653'
                      type: s
              400 - Invalid bank account number.:
                value:
                  country: ARG
                  bank:
                    code: '191'
                    account:
                      number: '9910119655111901676653'
                      type: S
              701 - Bank code not found.:
                value:
                  country: ARG
                  bank:
                    code: '19'
                    account:
                      number: '1910119655111901676653'
                      type: S
              701 - InvalidAccountNumber does not exist.:
                value:
                  country: ARG
                  bank:
                    code: '191'
                    account:
                      type: S
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Statuscode.
                  description:
                    type: string
                    description: Zusätzliche Antwortdetails.
              examples:
                200 - Valid bank code and account number.:
                  value:
                    code: '200'
                    description: Valid bank code and account number
        '400':
          description: Ungültige Anfrage.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Statuscode.
                  description:
                    type: string
                    description: Zusätzliche Antwortdetails.
              examples:
                701 - Invalid bank branch code:
                  value:
                    code: '701'
                    description: Invalid bank branch code
        '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
        '501':
          description: Nicht implementiert
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Statuscode.
                  description:
                    type: string
                    description: Zusätzliche Antwortdetails.
              examples:
                501 - Country not found.:
                  value:
                    code: '501'
                    description: Country not found
      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.