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

# Statushistorie abrufen

Gibt die Historie der Statusübergänge der Entität zurück, mit dem Akteur, dem Grund und der Korrelations-ID jeder Änderung.

* Die Einträge sind chronologisch sortiert.
* Von Localpayment durchgeführte Übergänge (IN\_REVIEW, ACTIVE, REJECTED, BLOCKED und die Rückkehr zu PENDING\_KYC für Korrekturen) erscheinen hier mit ihrem Grund.

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 GET /api/entity/v1/entities/{entityId}/status-history
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}/status-history:
    get:
      summary: Statusverlauf abrufen
      operationId: get-entity-status-history
      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
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    fromStatus:
                      type: string
                      examples:
                        - PENDING_KYC
                      enum:
                        - PENDING_KYC
                        - IN_REVIEW
                        - ACTIVE
                        - REJECTED
                        - BLOCKED
                        - CLOSED
                      description: Übergang.
                    toStatus:
                      type: string
                      examples:
                        - IN_REVIEW
                      enum:
                        - PENDING_KYC
                        - IN_REVIEW
                        - ACTIVE
                        - REJECTED
                        - BLOCKED
                        - CLOSED
                      description: Übergang.
                    reason:
                      type: string
                      examples:
                        - Review started
                      description: >-
                        Vom Akteur angegebener Grund (bei REJECTED und BLOCKED
                        immer vorhanden).
                    changedBy:
                      type: string
                      examples:
                        - '12345'
                      description: >-
                        Benutzer, der die Änderung vorgenommen hat: ein Benutzer
                        Ihres Kontos (aus dem Zugriffstoken) oder ein Benutzer
                        von Localpayment Compliance.
                    correlationId:
                      type: string
                      examples:
                        - b68165b9-1d60-4f9d-9919-7fee12411714
                      format: uuid
                      description: >-
                        Korrelations-ID der Anfrage, die die Änderung verursacht
                        hat.
                    createdAt:
                      type: string
                      examples:
                        - '2024-01-15T17:03:15Z'
                      format: date-time
                      description: Zeitpunkt des Ereignisses.
              examples:
                Example 1:
                  value:
                    - fromStatus: PENDING_KYC
                      toStatus: IN_REVIEW
                      reason: Review started
                      changedBy: '12345'
                      correlationId: b68165b9-1d60-4f9d-9919-7fee12411714
                      createdAt: '2024-01-15T17:03:15Z'
                    - fromStatus: IN_REVIEW
                      toStatus: ACTIVE
                      reason: KYC approved
                      changedBy: '67890'
                      correlationId: b07a3416-11fb-48d8-8671-be471694f0a2
                      createdAt: '2024-01-15T17:03:22Z'
        '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/status-history
                    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/status-history
                    code: ENTITY_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.