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

# Dokument hinzufügen

Meldet ein zusätzliches Dokument für eine bestehende Entität an: einen Adressnachweis, einen Gesellschaftsvertrag, eine Vollmacht oder ein anderes unterstützendes Dokument. Die Dateien werden anschließend mit „Nachweis hochladen“ hochgeladen.

* Das primäre Dokument ist immer das Dokument, das beim Erstellen der Entität gesendet wurde. Wenn Sie hier isPrimary: true senden, gibt die API 400 VALIDATION\_ERROR zurück.
* Die Entität darf nicht den Status IN\_REVIEW, REJECTED, BLOCKED oder CLOSED haben.

Fehler verwenden `application/problem+json` mit einem stabilen `code`. Vollständiger Katalog: [Entitätsstatus und Fehlercodes](https://docs.localpayment.com/de/reference/entity-statuses-and-error-codes.md).


## OpenAPI

````yaml openapi/de/localpayment.json POST /api/entity/v1/entities/{entityId}/documents
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/entity/v1/entities/{entityId}/documents:
    post:
      summary: Dokument hinzufügen
      operationId: add-entity-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). Ihr Händlerkonto und
            der handelnde Benutzer werden daraus ermittelt.
          required: true
          schema:
            type: string
            examples:
              - Bearer <your_access_token>
        - name: X-Correlation-ID
          in: header
          description: >-
            Trace-Kennung (UUID). Wird in der Antwort zurückgegeben; fehlt sie,
            generiert Localpayment eine.
          required: false
          schema:
            type: string
            examples:
              - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
        - name: entityId
          in: path
          description: internalId der Entität.
          required: true
          schema:
            type: string
            examples:
              - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Siehe „Dokument- und Nachweistypen“.
                  enum:
                    - DNI
                    - NATIONAL_ID
                    - DRIVER_LICENSE
                    - PASSPORT
                    - CE
                    - CC
                    - CUIT
                    - CUIL
                    - RFC
                    - CURP
                    - CPF
                    - CNPJ
                    - RUC
                    - NIT
                    - TAX_ID
                    - ARTICLES_OF_INCORPORATION
                    - POWER_OF_ATTORNEY
                    - TAX_CERTIFICATE
                    - PAYSLIP
                    - ARCA_REGISTRATION
                    - PROOF_OF_ADDRESS
                    - PROOF_OF_FUNDS
                    - OTHER
                  examples:
                    - PROOF_OF_ADDRESS
                id:
                  type: string
                  description: >-
                    Dokumentnummer, 1 bis 30 Zeichen. Zusammen mit type in Ihrem
                    Händlerkonto eindeutig. Verwenden Sie für Nachweise ohne
                    amtliche Nummer Ihre eigene Referenz (zum Beispiel
                    POA-0001).
                  examples:
                    - POA-0001
                issuingCountry:
                  type: string
                  description: Code nach ISO 3166-1 alpha-3.
                  examples:
                    - BRA
                issueDate:
                  type: string
                  format: date
                  description: Format YYYY-MM-DD.
                  examples:
                    - '2024-01-15'
                expirationDate:
                  type: string
                  format: date
                  description: Format YYYY-MM-DD.
                  examples:
                    - '2034-01-15'
                metadata:
                  type: object
                  description: Freie Metadaten.
              required:
                - type
                - id
            examples:
              Example 1:
                value:
                  type: PROOF_OF_ADDRESS
                  id: POA-0001
                  issuingCountry: BRA
      responses:
        '201':
          description: Erstellt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  documentId:
                    type: string
                    examples:
                      - e0ea9515-442e-4bc5-bc82-b8d278255c37
                    format: uuid
                    description: >-
                      Dokumentkennung (docId). Verwenden Sie sie, um Nachweise
                      hochzuladen und aufzulisten.
                  entityId:
                    type: string
                    examples:
                      - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    format: uuid
                    description: Zugehörige Entität.
                  type:
                    type: string
                    examples:
                      - PROOF_OF_ADDRESS
                    enum:
                      - DNI
                      - NATIONAL_ID
                      - DRIVER_LICENSE
                      - PASSPORT
                      - CE
                      - CC
                      - CUIT
                      - CUIL
                      - RFC
                      - CURP
                      - CPF
                      - CNPJ
                      - RUC
                      - NIT
                      - TAX_ID
                      - ARTICLES_OF_INCORPORATION
                      - POWER_OF_ATTORNEY
                      - TAX_CERTIFICATE
                      - PAYSLIP
                      - ARCA_REGISTRATION
                      - PROOF_OF_ADDRESS
                      - PROOF_OF_FUNDS
                      - OTHER
                    description: Dokumenttyp.
                  id:
                    type: string
                    examples:
                      - POA-0001
                    description: Dokumentnummer wie angegeben.
                  issuingCountry:
                    type: string
                    examples:
                      - BRA
                    description: Ausstellungsdaten wie angegeben.
                  issueDate:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Ausstellungsdaten wie angegeben.
                  expirationDate:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: Ausstellungsdaten wie angegeben.
                  isPrimary:
                    type: boolean
                    examples:
                      - false
                    description: Identifizierendes Dokument der Entität.
                  status:
                    type: string
                    examples:
                      - PENDING
                    enum:
                      - PENDING
                      - VERIFIED
                      - REJECTED
                      - EXPIRED
                    description: >-
                      Abgeleiteter Dokumentstatus: EXPIRED, wenn expirationDate
                      überschritten ist, REJECTED, wenn ein aktiver Nachweis
                      abgelehnt wurde, VERIFIED, wenn alle aktiven Nachweise
                      genehmigt sind, andernfalls PENDING.
                  metadata:
                    type:
                      - object
                      - 'null'
                    description: Freie Metadaten.
                  proofs:
                    type: array
                    items:
                      type: object
                    description: >-
                      Aktive Nachweise des Dokuments (ersetzte Dateien werden
                      nicht aufgeführt).
                  createdAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:11Z'
                    format: date-time
                  updatedAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:11Z'
                    format: date-time
              examples:
                Example 1:
                  value:
                    documentId: e0ea9515-442e-4bc5-bc82-b8d278255c37
                    entityId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    type: PROOF_OF_ADDRESS
                    id: POA-0001
                    issuingCountry: BRA
                    issueDate: null
                    expirationDate: null
                    isPrimary: false
                    status: PENDING
                    metadata: null
                    proofs: []
                    createdAt: '2024-01-15T17:03:11Z'
                    updatedAt: '2024-01-15T17:03:11Z'
        '400':
          description: >-
            Ungültige Anfrage. VALIDATION_ERROR: Ein Feld, Header, Pfad- oder
            Query-Parameter fehlt, ist unbekannt oder ungültig. details[] listet
            Feld und Problem auf.
          content:
            application/problem+json:
              schema:
                type: object
                description: Problemdetails nach RFC 9457 (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Kurze Zusammenfassung des Problems.
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  detail:
                    type: string
                    description: Verständliche Erläuterung.
                  instance:
                    type: string
                    description: Pfad der Anfrage.
                  code:
                    type: string
                    description: >-
                      Stabiler, maschinenlesbarer Fehlercode. Verzweigen Sie
                      Ihre Logik anhand dieses Werts.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Kennung der Anfrage. Geben Sie sie an, wenn Sie den
                      Support kontaktieren.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Fehlerhafte Felder, falls zutreffend.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - VALIDATION_ERROR:
                  value:
                    type: about:blank
                    title: Validation error
                    status: 400
                    detail: >-
                      A field, header, path or query parameter is missing,
                      unknown or invalid. details[] lists field and issue.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: VALIDATION_ERROR
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details:
                      - field: externalId
                        issue: REQUIRED
        '401':
          description: >-
            Nicht autorisiert. UNAUTHORIZED: Zugriffstoken fehlt oder ist
            ungültig.
          content:
            application/problem+json:
              schema:
                type: object
                description: Problemdetails nach RFC 9457 (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Kurze Zusammenfassung des Problems.
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  detail:
                    type: string
                    description: Verständliche Erläuterung.
                  instance:
                    type: string
                    description: Pfad der Anfrage.
                  code:
                    type: string
                    description: >-
                      Stabiler, maschinenlesbarer Fehlercode. Verzweigen Sie
                      Ihre Logik anhand dieses Werts.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Kennung der Anfrage. Geben Sie sie an, wenn Sie den
                      Support kontaktieren.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Fehlerhafte Felder, falls zutreffend.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - UNAUTHORIZED:
                  value:
                    type: about:blank
                    title: Unauthorized
                    status: 401
                    detail: Missing or invalid access token.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: UNAUTHORIZED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '404':
          description: >-
            Nicht gefunden. ENTITY_NOT_FOUND: Die Entität existiert nicht oder
            gehört zu einem anderen Händler.
          content:
            application/problem+json:
              schema:
                type: object
                description: Problemdetails nach RFC 9457 (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Kurze Zusammenfassung des Problems.
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  detail:
                    type: string
                    description: Verständliche Erläuterung.
                  instance:
                    type: string
                    description: Pfad der Anfrage.
                  code:
                    type: string
                    description: >-
                      Stabiler, maschinenlesbarer Fehlercode. Verzweigen Sie
                      Ihre Logik anhand dieses Werts.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Kennung der Anfrage. Geben Sie sie an, wenn Sie den
                      Support kontaktieren.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Fehlerhafte Felder, falls zutreffend.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - ENTITY_NOT_FOUND:
                  value:
                    type: about:blank
                    title: Not found
                    status: 404
                    detail: The entity does not exist or belongs to another merchant.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: ENTITY_NOT_FOUND
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '409':
          description: >-
            Konflikt. DUPLICATE_ENTITY: externalId oder das Paar type + id eines
            Dokuments existiert in Ihrem Händlerkonto bereits.
            ENTITY_NOT_EDITABLE: Die Entität ist REJECTED, BLOCKED oder CLOSED,
            oder der Vorgang würde das primäre oder das einzige Dokument
            entfernen. ENTITY_IN_REVIEW: Die Entität ist IN_REVIEW: ihre Daten,
            Dokumente, Dateien und UBO-Verknüpfungen sind eingefroren, bis
            Localpayment Compliance sie bearbeitet hat.
          content:
            application/problem+json:
              schema:
                type: object
                description: Problemdetails nach RFC 9457 (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Kurze Zusammenfassung des Problems.
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  detail:
                    type: string
                    description: Verständliche Erläuterung.
                  instance:
                    type: string
                    description: Pfad der Anfrage.
                  code:
                    type: string
                    description: >-
                      Stabiler, maschinenlesbarer Fehlercode. Verzweigen Sie
                      Ihre Logik anhand dieses Werts.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Kennung der Anfrage. Geben Sie sie an, wenn Sie den
                      Support kontaktieren.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Fehlerhafte Felder, falls zutreffend.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - DUPLICATE_ENTITY:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: >-
                      externalId, or the pair type + id of a document, already
                      exists in your merchant.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: DUPLICATE_ENTITY
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 2 - ENTITY_NOT_EDITABLE:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: >-
                      The entity is REJECTED, BLOCKED or CLOSED, or the
                      operation would remove the primary document or the only
                      document.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: ENTITY_NOT_EDITABLE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 3 - ENTITY_IN_REVIEW:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: >-
                      The entity is IN_REVIEW: its data, documents, files and
                      UBO links are frozen until Localpayment Compliance
                      resolves it.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/documents
                    code: ENTITY_IN_REVIEW
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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