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

# Nachweis abrufen

Gibt die Metadaten eines Nachweises sowie eine kurzlebige signierte downloadUrl zum Abrufen der Datei zurück.

* Host, Ablaufzeit und Signatur der downloadUrl sind im Beispiel gekürzt.
* Dateizugriffe werden mit dem Benutzer aus Ihrem Zugriffstoken protokolliert.
* Wenn die URL abläuft, rufen Sie diesen Endpunkt erneut auf, um eine neue zu erhalten.

Fehler werden als `application/problem+json` mit einem stabilen `code` zurückgegeben. 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 GET /api/entity/v1/proofs/{proofId}
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/proofs/{proofId}:
    get:
      summary: Nachweis abrufen
      operationId: get-proof
      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: proofId
          in: path
          description: Nachweis-ID.
          required: true
          schema:
            type: string
            format: uuid
            examples:
              - 2c4c2f74-7179-4113-83fb-f11dbce9e07d
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    examples:
                      - 2c4c2f74-7179-4113-83fb-f11dbce9e07d
                    description: Kennung des Nachweises (proofId).
                  documentId:
                    type: string
                    examples:
                      - 2e16d844-4fa9-4295-9a21-83ec32ef241a
                    format: uuid
                    description: Dokument, das die Datei belegt.
                  proofType:
                    type: string
                    examples:
                      - FRONT
                    enum:
                      - FRONT
                      - BACK
                      - SELFIE
                      - DOCUMENT
                      - OTHER
                    description: FRONT, BACK, SELFIE, DOCUMENT, OTHER.
                  fileName:
                    type: string
                    examples:
                      - id_front.jpg
                    description: >-
                      Dateimetadaten wie hochgeladen. Prüfen Sie nach einem
                      Upload, ob sizeBytes > 0 ist.
                  mimeType:
                    type: string
                    examples:
                      - image/jpeg
                    description: >-
                      Dateimetadaten wie hochgeladen. Prüfen Sie nach einem
                      Upload, ob sizeBytes > 0 ist.
                  sizeBytes:
                    type: integer
                    examples:
                      - 102400
                    description: >-
                      Dateimetadaten wie hochgeladen. Prüfen Sie nach einem
                      Upload, ob sizeBytes > 0 ist.
                  verificationStatus:
                    type: string
                    examples:
                      - PENDING
                    enum:
                      - PENDING
                      - IN_REVIEW
                      - APPROVED
                      - REJECTED
                    description: >-
                      PENDING, IN_REVIEW, APPROVED, REJECTED. Wird von
                      Localpayment Compliance festgelegt.
                  verifiedBy:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Ergebnis der Verifizierung. verificationReason wird bei
                      Ablehnung ausgefüllt.
                  verifiedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      Ergebnis der Verifizierung. verificationReason wird bei
                      Ablehnung ausgefüllt.
                  verificationReason:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Ergebnis der Verifizierung. verificationReason wird bei
                      Ablehnung ausgefüllt.
                  uploadedBy:
                    type: string
                    examples:
                      - '12345'
                    description: >-
                      Benutzer Ihres Kontos, der die Datei hochgeladen hat (aus
                      dem Zugriffstoken), und Zeitpunkt des Uploads.
                  uploadedAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:13Z'
                    format: date-time
                    description: >-
                      Benutzer Ihres Kontos, der die Datei hochgeladen hat (aus
                      dem Zugriffstoken), und Zeitpunkt des Uploads.
                  status:
                    type: string
                    examples:
                      - CURRENT
                    enum:
                      - CURRENT
                      - SUPERSEDED
                      - DELETED
                    description: >-
                      Lebenszyklus des Nachweises: CURRENT (aktiv), SUPERSEDED
                      (durch einen neueren Upload desselben proofType ersetzt)
                      oder DELETED. Unabhängig von verificationStatus.
                  supersededAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Gesetzt, wenn der Nachweis ersetzt wurde.
                  supersededBy:
                    type:
                      - string
                      - 'null'
                    description: Gesetzt, wenn der Nachweis ersetzt wurde.
                  replacedByProofId:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    description: Gesetzt, wenn der Nachweis ersetzt wurde.
                  deletedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Gesetzt, wenn der Nachweis gelöscht wurde.
                  deletedBy:
                    type:
                      - string
                      - 'null'
                    description: Gesetzt, wenn der Nachweis gelöscht wurde.
                  inVerification:
                    type: boolean
                    examples:
                      - true
                    description: >-
                      true, solange der Nachweis Teil einer laufenden Prüfung
                      ist (Entität IN_REVIEW); er kann dann nicht ersetzt oder
                      gelöscht werden.
                  downloadUrl:
                    type: string
                    examples:
                      - >-
                        https://files.example.com/<object-path>?expires=600&signature=<redacted>
                    description: >-
                      Signierte URL, 10 Minuten gültig. Fordern Sie sie direkt
                      vor dem Herunterladen an; speichern Sie sie nicht.
              examples:
                Example 1:
                  value:
                    id: 2c4c2f74-7179-4113-83fb-f11dbce9e07d
                    documentId: 2e16d844-4fa9-4295-9a21-83ec32ef241a
                    proofType: FRONT
                    fileName: id_front.jpg
                    mimeType: image/jpeg
                    sizeBytes: 102400
                    verificationStatus: PENDING
                    verifiedBy: null
                    verifiedAt: null
                    verificationReason: null
                    uploadedBy: '12345'
                    uploadedAt: '2024-01-15T17:03:13Z'
                    status: CURRENT
                    supersededAt: null
                    supersededBy: null
                    replacedByProofId: null
                    deletedAt: null
                    deletedBy: null
                    inVerification: true
                    downloadUrl: >-
                      https://files.example.com/<object-path>?expires=600&signature=<redacted>
        '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/proofs/2c4c2f74-7179-4113-83fb-f11dbce9e07d
                    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/proofs/2c4c2f74-7179-4113-83fb-f11dbce9e07d
                    code: UNAUTHORIZED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '404':
          description: >-
            Nicht gefunden. PROOF_NOT_FOUND: Der Nachweis 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 - PROOF_NOT_FOUND:
                  value:
                    type: about:blank
                    title: Not found
                    status: 404
                    detail: The proof does not exist or belongs to another merchant.
                    instance: /api/entity/v1/proofs/2c4c2f74-7179-4113-83fb-f11dbce9e07d
                    code: PROOF_NOT_FOUND
                    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.