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

# Ausweisdokument validieren

Validieren Sie die Ausweisdokumente Ihrer Kunden nach Land und Typ, um sicherzustellen, dass sie korrekt formatiert sind. Verwenden Sie diesen Endpunkt, um fehlgeschlagene Transaktionen aufgrund ungültiger oder fehlerhafter Dokumentangaben zu reduzieren.


## OpenAPI

````yaml openapi/de/localpayment.json POST /api/validation/document
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/document:
    post:
      summary: Ausweisdokument validieren
      operationId: validate-identity-document
      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.
                document:
                  type: object
                  description: Dokumentinformationen.
                  properties:
                    id:
                      type: string
                      description: Kennung des Ausweisdokuments, in der Regel eine Nummer.
                    type:
                      type: string
                      description: >-
                        Der
                        [Ausweisdokumenttyp](/de/reference/identity-document-types),
                        der je nach Ausstellungsland variiert.
                  required:
                    - id
                    - type
              required:
                - country
                - document
            examples:
              200 - Valid id and type document.:
                value:
                  document:
                    id: '1791234561009'
                    type: RUC
                  country: ECU
              300 - Invalid params.:
                value:
                  country: ECU
                  document:
                    id: '12345'
                    type: RUC
              501 - Country not found.:
                value:
                  country: EC
                  document:
                    id: '1791234561009'
                    type: RUC
      responses:
        '200':
          description: Gemeinsame Antwort
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Statuscode.
                  description:
                    type: string
                    description: Zusätzliche Antwortdetails.
                x-examples:
                  Example 1:
                    code: '200'
                    description: Valid id and type document
              examples:
                200 - Valid id and type document.:
                  value:
                    code: '200'
                    description: Valid format of id and type document
        '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:
                300 - Invalid param.:
                  value:
                    code: '300'
                    description: >-
                      Invalid param + [document.id] + doesn´t match regex
                      ^[0-9]{13}$
        '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: Ungültige Anfrage.
          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.