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

# Entität erstellen

Registriert eine natürliche Person (INDIVIDUAL) oder eine juristische Person (COMPANY) mit ihrem Identifikationsdokument. Die Entität wird mit dem Status PENDING\_KYC und ohne Dateien erstellt. Laden Sie die unterstützenden Dateien anschließend mit „Nachweis hochladen“ hoch.

* Die KYC-Mindestdaten werden bei der Erstellung validiert: name und lastname für INDIVIDUAL, name für COMPANY. Andernfalls gibt die API 422 INCOMPLETE\_KYC\_DATA zurück.
* Unbekannte Eigenschaften werden mit 400 VALIDATION\_ERROR abgelehnt. Legen Sie zusätzliche Daten in attributes ab.
* Ländercodes müssen im Format ISO 3166-1 alpha-3 angegeben werden (BRA, nicht BR).
* Eine Steuernummer (CPF, CNPJ, CUIT, RFC, …) ist ein Dokument und kein Feld der Entität. Senden Sie sie in document. documents\[] wird bei der Erstellung nicht akzeptiert (400 VALIDATION\_ERROR).
* Fügen Sie die weiteren Dokumente (Ausweisdokument, Adressnachweis, Gesellschaftsvertrag) mit „Dokument hinzufügen“ hinzu.
* Bewahren Sie document.documentId aus der Antwort auf: Dies ist die docId, mit der Sie Dateien zum primären Dokument hochladen.

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
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:
    post:
      summary: Entität erstellen
      operationId: create-entity
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                externalId:
                  type: string
                  description: >-
                    Ihre eigene Kennung für die Entität. Eindeutig pro Händler,
                    1 bis 64 Zeichen.
                  examples:
                    - f47ac10b-58cc-4372-a567-0e02b2c3d479
                type:
                  type: string
                  description: >-
                    INDIVIDUAL (natürliche Person) oder COMPANY (juristische
                    Person).
                  enum:
                    - INDIVIDUAL
                    - COMPANY
                  examples:
                    - COMPANY
                name:
                  type: string
                  description: >-
                    Vorname (INDIVIDUAL) oder Firmenname (COMPANY). Bis zu 255
                    Zeichen.
                  examples:
                    - Example Company S.A.
                lastname:
                  type: string
                  description: Nachname. Erforderlich für INDIVIDUAL. Bis zu 255 Zeichen.
                  examples:
                    - Doe
                birthdate:
                  type: string
                  format: date
                  description: YYYY-MM-DD. Empfohlen für INDIVIDUAL.
                  examples:
                    - '1990-01-15'
                gender:
                  type: string
                  description: MALE, FEMALE, OTHER oder UNDISCLOSED.
                  enum:
                    - MALE
                    - FEMALE
                    - OTHER
                    - UNDISCLOSED
                  examples:
                    - FEMALE
                nationality:
                  type: string
                  description: Code nach ISO 3166-1 alpha-3 (BRA, ARG, MEX).
                  examples:
                    - BRA
                birthCountry:
                  type: string
                  description: Code nach ISO 3166-1 alpha-3.
                  examples:
                    - BRA
                residenceCountry:
                  type: string
                  description: >-
                    Code nach ISO 3166-1 alpha-3. Bei COMPANY das Land der
                    steuerlichen Ansässigkeit.
                  examples:
                    - BRA
                occupation:
                  type: string
                  description: Beruf der Person. Bis zu 100 Zeichen.
                  examples:
                    - Engineer
                isPep:
                  type: boolean
                  description: Politisch exponierte Person. Standardwert false.
                  examples:
                    - false
                incorporationDate:
                  type: string
                  format: date
                  description: YYYY-MM-DD. Nur bei COMPANY.
                  examples:
                    - '2020-01-15'
                incorporationCountry:
                  type: string
                  description: Code nach ISO 3166-1 alpha-3. Nur bei COMPANY.
                  examples:
                    - BRA
                website:
                  type: string
                  description: Website des Unternehmens. Bis zu 255 Zeichen.
                  examples:
                    - https://www.example.com
                legalRepresentativeName:
                  type: string
                  description: >-
                    Name des gesetzlichen Vertreters (COMPANY). Bis zu 255
                    Zeichen.
                  examples:
                    - Jane Doe
                email:
                  type: string
                  description: Kontakt-E-Mail-Adresse. Bis zu 255 Zeichen.
                  examples:
                    - test@example.com
                phone:
                  type: object
                  description: Kontakttelefon, in jedem Teil nur Ziffern.
                  properties:
                    countryCode:
                      type: string
                      description: Ländervorwahl ohne + (55), 1 bis 4 Ziffern.
                      examples:
                        - '55'
                    areaCode:
                      type: string
                      description: Vorwahl (11), 1 bis 5 Ziffern.
                      examples:
                        - '11'
                    number:
                      type: string
                      description: >-
                        Lokale Rufnummer (999990001), 4 bis 15 Ziffern.
                        Erforderlich, wenn phone gesendet wird.
                      examples:
                        - '999990000'
                address:
                  type: object
                  description: >-
                    Postanschrift. Wenn sie gesendet wird, ist country
                    erforderlich.
                  properties:
                    street:
                      type: string
                      description: Straßenname, bis zu 256 Zeichen.
                      examples:
                        - Rua Exemplo
                    number:
                      type: string
                      description: Hausnummer, bis zu 20 Zeichen.
                      examples:
                        - '100'
                    line2:
                      type: string
                      description: >-
                        Zusätzliche Adresszeile (Wohnung, Etage, Suite), bis zu
                        256 Zeichen.
                      examples:
                        - Sala 100
                    line3:
                      type: string
                      description: Zweite zusätzliche Adresszeile, bis zu 256 Zeichen.
                      examples:
                        - Torre A
                    city:
                      type: string
                      description: Stadt, bis zu 100 Zeichen.
                      examples:
                        - São Paulo
                    state:
                      type: string
                      description: >-
                        Bundesstaat oder Provinz, bis zu 100 Zeichen. Verwenden
                        Sie den Code nach ISO 3166-2 (SP).
                      examples:
                        - SP
                    zipCode:
                      type: string
                      description: Postleitzahl, bis zu 20 Zeichen.
                      examples:
                        - 01310-100
                    country:
                      type: string
                      description: >-
                        Code nach ISO 3166-1 alpha-3. Erforderlich, wenn address
                        gesendet wird.
                      examples:
                        - BRA
                    comment:
                      type: string
                      description: >-
                        Zusätzliche Adressangaben (Etage, Wohnung, Hinweise),
                        bis zu 255 Zeichen.
                      examples:
                        - Sala 100
                attributes:
                  type: object
                  description: >-
                    Benutzerdefinierte Felder gemäß Ihrem Schema für
                    benutzerdefinierte Felder (siehe Benutzerdefinierte Felder).
                    Bis zu 64 KB.
                document:
                  type: object
                  description: >-
                    Das Identifikationsdokument der Entität (Steuernummer oder
                    Ausweisdokument). Es wird zum primären Dokument. Weitere
                    Dokumente werden anschließend mit „Dokument hinzufügen“
                    hinzugefügt.
                  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:
                        - CNPJ
                    id:
                      type: string
                      description: >-
                        Dokumentnummer wie ausgestellt, 1 bis 30 Zeichen.
                        Zusammen mit type in Ihrem Händlerkonto eindeutig.
                      examples:
                        - '00000000000100'
                    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: >-
                        YYYY-MM-DD. Ein Datum in der Vergangenheit kennzeichnet
                        das Dokument als EXPIRED.
                      examples:
                        - '2034-01-15'
                    metadata:
                      type: object
                      description: Freie Metadaten für das Dokument.
                  required:
                    - type
                    - id
              required:
                - externalId
                - type
                - name
                - document
            examples:
              Example 1 - INDIVIDUAL:
                value:
                  externalId: 550e8400-e29b-41d4-a716-446655440000
                  type: INDIVIDUAL
                  name: Jane
                  lastname: Doe
                  birthdate: '1990-01-15'
                  nationality: BRA
                  birthCountry: BRA
                  residenceCountry: BRA
                  isPep: false
                  email: jane.doe@example.com
                  phone:
                    countryCode: '55'
                    areaCode: '11'
                    number: '999990001'
                  address:
                    street: Rua Exemplo
                    number: '123'
                    city: São Paulo
                    state: SP
                    zipCode: 01310-100
                    country: BRA
                  document:
                    type: CPF
                    id: '00000000000'
                    issuingCountry: BRA
              Example 2 - COMPANY example:
                value:
                  externalId: f47ac10b-58cc-4372-a567-0e02b2c3d479
                  type: COMPANY
                  name: Example Company S.A.
                  incorporationCountry: BRA
                  incorporationDate: '2020-01-15'
                  website: https://www.example.com
                  email: test@example.com
                  phone:
                    countryCode: '55'
                    areaCode: '11'
                    number: '999990000'
                  legalRepresentativeName: Jane Doe
                  isPep: false
                  address:
                    street: Rua Exemplo
                    number: '100'
                    city: São Paulo
                    state: SP
                    zipCode: 01310-100
                    country: BRA
                    line2: Sala 100
                    line3: Torre A
                  document:
                    type: CNPJ
                    id: '00000000000100'
                    issuingCountry: BRA
                  attributes:
                    reasonForAccountOpening: receive_payments_for_goods_and_services
                    sourceOfFundsAndIncome: sales_of_goods_and_services
                    numberOfEmployees: 11-50
                    estimatedAnnualRevenueUsd: 1m_to_10m
                    estimatedMonthlyVolumeUsd: '50000'
                    businessActivityDescription: >-
                      Online retail of home goods. Receives payments from end
                      customers in Brazil via PIX.
                    countryTaxResidence: BRA
                    socialMedia: https://www.linkedin.com/company/example
                    emailPixKey: test@example.com
      responses:
        '201':
          description: Erstellt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  internalId:
                    type: string
                    examples:
                      - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    format: uuid
                    description: >-
                      Localpayment-Kennung der Entität. Verwenden Sie sie in
                      allen anderen Entities-Endpunkten.
                  externalId:
                    type: string
                    examples:
                      - 550e8400-e29b-41d4-a716-446655440000
                    description: Ihre Kennung, wie gesendet.
                  type:
                    type: string
                    examples:
                      - INDIVIDUAL
                    enum:
                      - INDIVIDUAL
                      - COMPANY
                    description: INDIVIDUAL oder COMPANY.
                  status:
                    type: string
                    examples:
                      - PENDING_KYC
                    enum:
                      - PENDING_KYC
                      - IN_REVIEW
                      - ACTIVE
                      - REJECTED
                      - BLOCKED
                      - CLOSED
                    description: >-
                      Status der Entität. Siehe „Entitätsstatus und
                      Fehlercodes“.
                  name:
                    type: string
                    examples:
                      - Jane
                  lastname:
                    type: string
                    examples:
                      - Doe
                  birthdate:
                    type: string
                    examples:
                      - '1990-01-15'
                    format: date
                  gender:
                    type:
                      - string
                      - 'null'
                  nationality:
                    type: string
                    examples:
                      - BRA
                  birthCountry:
                    type: string
                    examples:
                      - BRA
                  residenceCountry:
                    type: string
                    examples:
                      - BRA
                  occupation:
                    type:
                      - string
                      - 'null'
                  isPep:
                    type: boolean
                    examples:
                      - false
                  incorporationDate:
                    type:
                      - string
                      - 'null'
                    format: date
                  incorporationCountry:
                    type:
                      - string
                      - 'null'
                  website:
                    type:
                      - string
                      - 'null'
                  legalRepresentativeName:
                    type:
                      - string
                      - 'null'
                  email:
                    type: string
                    examples:
                      - jane.doe@example.com
                  phone:
                    type: object
                    properties:
                      countryCode:
                        type: string
                        examples:
                          - '55'
                      areaCode:
                        type: string
                        examples:
                          - '11'
                      number:
                        type: string
                        examples:
                          - '999990001'
                  address:
                    type: object
                    properties:
                      street:
                        type: string
                        examples:
                          - Rua Exemplo
                      city:
                        type: string
                        examples:
                          - São Paulo
                      state:
                        type: string
                        examples:
                          - SP
                      zipCode:
                        type: string
                        examples:
                          - 01310-100
                      number:
                        type: string
                        examples:
                          - '123'
                      comment:
                        type:
                          - string
                          - 'null'
                      country:
                        type: string
                        examples:
                          - BRA
                      line2:
                        type:
                          - string
                          - 'null'
                      line3:
                        type:
                          - string
                          - 'null'
                  attributes:
                    type:
                      - object
                      - 'null'
                  documentationStatus:
                    type: string
                    examples:
                      - NO_FILES
                    enum:
                      - NO_FILES
                      - PARTIAL
                      - COMPLETE
                    description: >-
                      NO_FILES, PARTIAL oder COMPLETE: ob keines, einige oder
                      alle deklarierten Dokumente mindestens eine Datei haben.
                      Gemessen wird das Vorhandensein von Dateien, nicht die
                      Genehmigung.
                  document:
                    type: object
                    properties:
                      documentId:
                        type: string
                        examples:
                          - 2e16d844-4fa9-4295-9a21-83ec32ef241a
                        format: uuid
                      entityId:
                        type: string
                        examples:
                          - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                        format: uuid
                      type:
                        type: string
                        examples:
                          - CPF
                        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: INDIVIDUAL oder COMPANY.
                      id:
                        type: string
                        examples:
                          - '00000000000'
                      issuingCountry:
                        type: string
                        examples:
                          - BRA
                      issueDate:
                        type:
                          - string
                          - 'null'
                        format: date
                      expirationDate:
                        type:
                          - string
                          - 'null'
                        format: date
                      isPrimary:
                        type: boolean
                        examples:
                          - true
                      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'
                      proofs:
                        type: array
                        items:
                          type: object
                      createdAt:
                        type: string
                        examples:
                          - '2024-01-15T17:03:10Z'
                        format: date-time
                        description: UTC-Zeitstempel nach ISO 8601.
                      updatedAt:
                        type: string
                        examples:
                          - '2024-01-15T17:03:10Z'
                        format: date-time
                        description: UTC-Zeitstempel nach ISO 8601.
                    description: >-
                      Das primäre Dokument mit seiner documentId (zum Hochladen
                      von Dateien erforderlich), dem abgeleiteten Status und den
                      aktuellen proofs[].
                  documents:
                    type: array
                    items:
                      type: object
                    description: >-
                      Die übrigen deklarierten Dokumente (das primäre befindet
                      sich nur in document), mit derselben Struktur.
                  version:
                    type: integer
                    examples:
                      - 0
                    description: >-
                      Version der Entität. Entspricht dem ETag-Header; senden
                      Sie sie bei PATCH als If-Match zurück.
                  createdAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:10Z'
                    format: date-time
                    description: UTC-Zeitstempel nach ISO 8601.
                  updatedAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:10Z'
                    format: date-time
                    description: UTC-Zeitstempel nach ISO 8601.
                  customFieldSchemaVersion:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      Version des Schemas für benutzerdefinierte Felder, mit dem
                      attributes validiert wurde, oder null.
              examples:
                Example 1:
                  value:
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    externalId: 550e8400-e29b-41d4-a716-446655440000
                    type: INDIVIDUAL
                    status: PENDING_KYC
                    name: Jane
                    lastname: Doe
                    birthdate: '1990-01-15'
                    gender: null
                    nationality: BRA
                    birthCountry: BRA
                    residenceCountry: BRA
                    occupation: null
                    isPep: false
                    incorporationDate: null
                    incorporationCountry: null
                    website: null
                    legalRepresentativeName: null
                    email: jane.doe@example.com
                    phone:
                      countryCode: '55'
                      areaCode: '11'
                      number: '999990001'
                    address:
                      street: Rua Exemplo
                      city: São Paulo
                      state: SP
                      zipCode: 01310-100
                      number: '123'
                      comment: null
                      country: BRA
                      line2: null
                      line3: null
                    attributes: null
                    documentationStatus: NO_FILES
                    document:
                      documentId: 2e16d844-4fa9-4295-9a21-83ec32ef241a
                      entityId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                      type: CPF
                      id: '00000000000'
                      issuingCountry: BRA
                      issueDate: null
                      expirationDate: null
                      isPrimary: true
                      status: PENDING
                      metadata: null
                      proofs: []
                      createdAt: '2024-01-15T17:03:10Z'
                      updatedAt: '2024-01-15T17:03:10Z'
                    documents: []
                    version: 0
                    createdAt: '2024-01-15T17:03:10Z'
                    updatedAt: '2024-01-15T17:03:10Z'
                    customFieldSchemaVersion: null
          headers:
            ETag:
              description: >-
                Version der Entität. Senden Sie sie bei „Entität aktualisieren“
                als If-Match zurück.
              schema:
                type: string
                examples:
                  - '"0"'
        '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. CUSTOM_FIELDS_INVALID: attributes entspricht
            nicht Ihrem Schema für benutzerdefinierte Felder. 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
                    code: VALIDATION_ERROR
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details:
                      - field: externalId
                        issue: REQUIRED
                Example 2 - CUSTOM_FIELDS_INVALID:
                  value:
                    type: about:blank
                    title: Validation error
                    status: 400
                    detail: >-
                      attributes does not satisfy your custom-fields schema.
                      details[] lists field and issue.
                    instance: /api/entity/v1/entities
                    code: CUSTOM_FIELDS_INVALID
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details:
                      - field: numberOfEmployees
                        issue: NOT_IN_OPTIONS
        '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
                    code: UNAUTHORIZED
                    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.
          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
                    code: DUPLICATE_ENTITY
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '413':
          description: >-
            Nutzdaten zu groß. PAYLOAD_TOO_LARGE: attributes überschreitet 64
            KB.
          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 - PAYLOAD_TOO_LARGE:
                  value:
                    type: about:blank
                    title: Payload too large
                    status: 413
                    detail: attributes exceeds 64 KB.
                    instance: /api/entity/v1/entities
                    code: PAYLOAD_TOO_LARGE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '415':
          description: >-
            Nicht unterstützter Medientyp. UNSUPPORTED_MEDIA_TYPE: Der
            Content-Type der Anfrage entspricht nicht dem vom Endpunkt
            erwarteten (application/json bzw. multipart/form-data für Uploads).
          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 - UNSUPPORTED_MEDIA_TYPE:
                  value:
                    type: about:blank
                    title: Unsupported media type
                    status: 415
                    detail: >-
                      The request Content-Type is not the one the endpoint
                      expects (application/json, or multipart/form-data for
                      uploads).
                    instance: /api/entity/v1/entities
                    code: UNSUPPORTED_MEDIA_TYPE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '422':
          description: >-
            Nicht verarbeitbare Entität. INCOMPLETE_KYC_DATA: KYC-Mindestdaten
            fehlen: name und lastname für INDIVIDUAL, name für COMPANY.
          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 - INCOMPLETE_KYC_DATA:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: >-
                      Minimum KYC data is missing: name and lastname for
                      INDIVIDUAL, name for COMPANY.
                    instance: /api/entity/v1/entities
                    code: INCOMPLETE_KYC_DATA
                    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.