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

# Créer une entité

Enregistre une personne physique (INDIVIDUAL) ou une personne morale (COMPANY) avec son document d'identification. L'entité est créée au statut PENDING\_KYC, sans fichier ; téléversez ensuite les fichiers justificatifs avec « Téléverser un justificatif ».

* Les données KYC minimales sont validées à la création : name et lastname pour INDIVIDUAL, name pour COMPANY. Sinon, l'API renvoie 422 INCOMPLETE\_KYC\_DATA.
* Les propriétés inconnues sont rejetées avec 400 VALIDATION\_ERROR. Placez toute donnée supplémentaire dans attributes.
* Les codes pays doivent être au format ISO 3166-1 alpha-3 (BRA, et non BR).
* Un identifiant fiscal (CPF, CNPJ, CUIT, RFC, …) est un document, et non un champ de l'entité. Envoyez-le dans document ; documents\[] n'est pas accepté à la création (400 VALIDATION\_ERROR).
* Ajoutez les autres documents (pièce d'identité, justificatif de domicile, statuts constitutifs) avec « Ajouter un document ».
* Conservez document.documentId de la réponse : c'est le docId utilisé pour téléverser des fichiers sur le document principal.

Les erreurs utilisent `application/problem+json` avec un `code` stable. Catalogue complet : [Statuts des entités et codes d'erreur](https://docs.localpayment.com/fr/reference/entity-statuses-and-error-codes.md).


## OpenAPI

````yaml openapi/fr/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: Créer une entité
      operationId: create-entity
      parameters:
        - name: Authorization
          in: header
          description: >-
            Jeton d'accès Bearer pour l'authentification. Ce jeton s'obtient via
            les endpoints [Obtenir un jeton d'accès](/fr/reference/get-token) ou
            [Actualiser le jeton d'accès](/fr/reference/refresh-token). Il
            permet d'identifier votre compte commerçant et l'utilisateur à
            l'origine de l'action.
          required: true
          schema:
            type: string
            examples:
              - Bearer <your_access_token>
        - name: X-Correlation-ID
          in: header
          description: "Identifiant de trace (UUID). Renvoyé dans la réponse\_; généré par Localpayment s'il est absent."
          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: >-
                    Votre propre identifiant pour l'entité. Unique par
                    commerçant, de 1 à 64 caractères.
                  examples:
                    - f47ac10b-58cc-4372-a567-0e02b2c3d479
                type:
                  type: string
                  description: INDIVIDUAL (personne physique) ou COMPANY (personne morale).
                  enum:
                    - INDIVIDUAL
                    - COMPANY
                  examples:
                    - COMPANY
                name:
                  type: string
                  description: >-
                    Prénom (INDIVIDUAL) ou raison sociale (COMPANY). Jusqu'à 255
                    caractères.
                  examples:
                    - Example Company S.A.
                lastname:
                  type: string
                  description: >-
                    Nom de famille. Obligatoire pour INDIVIDUAL. Jusqu'à 255
                    caractères.
                  examples:
                    - Doe
                birthdate:
                  type: string
                  format: date
                  description: YYYY-MM-DD. Recommandé pour INDIVIDUAL.
                  examples:
                    - '1990-01-15'
                gender:
                  type: string
                  description: MALE, FEMALE, OTHER ou UNDISCLOSED.
                  enum:
                    - MALE
                    - FEMALE
                    - OTHER
                    - UNDISCLOSED
                  examples:
                    - FEMALE
                nationality:
                  type: string
                  description: Code ISO 3166-1 alpha-3 (BRA, ARG, MEX).
                  examples:
                    - BRA
                birthCountry:
                  type: string
                  description: Code ISO 3166-1 alpha-3.
                  examples:
                    - BRA
                residenceCountry:
                  type: string
                  description: >-
                    ISO 3166-1 alpha-3. Pour une COMPANY, pays de résidence
                    fiscale.
                  examples:
                    - BRA
                occupation:
                  type: string
                  description: Profession de la personne. Jusqu'à 100 caractères.
                  examples:
                    - Engineer
                isPep:
                  type: boolean
                  description: "Personne politiquement exposée. Valeur par défaut\_: false."
                  examples:
                    - false
                incorporationDate:
                  type: string
                  format: date
                  description: YYYY-MM-DD. COMPANY uniquement.
                  examples:
                    - '2020-01-15'
                incorporationCountry:
                  type: string
                  description: ISO 3166-1 alpha-3. COMPANY uniquement.
                  examples:
                    - BRA
                website:
                  type: string
                  description: Site web de l'entreprise. Jusqu'à 255 caractères.
                  examples:
                    - https://www.example.com
                legalRepresentativeName:
                  type: string
                  description: Nom du représentant légal (COMPANY). Jusqu'à 255 caractères.
                  examples:
                    - Jane Doe
                email:
                  type: string
                  description: E-mail de contact. Jusqu'à 255 caractères.
                  examples:
                    - test@example.com
                phone:
                  type: object
                  description: >-
                    Téléphone de contact, uniquement des chiffres dans chaque
                    partie.
                  properties:
                    countryCode:
                      type: string
                      description: >-
                        Indicatif téléphonique du pays sans + (55), de 1 à 4
                        chiffres.
                      examples:
                        - '55'
                    areaCode:
                      type: string
                      description: Indicatif régional (11), de 1 à 5 chiffres.
                      examples:
                        - '11'
                    number:
                      type: string
                      description: >-
                        Numéro local (999990001), de 4 à 15 chiffres.
                        Obligatoire lorsque phone est envoyé.
                      examples:
                        - '999990000'
                address:
                  type: object
                  description: >-
                    Adresse postale. Si elle est envoyée, country est
                    obligatoire.
                  properties:
                    street:
                      type: string
                      description: Nom de la rue, jusqu'à 256 caractères.
                      examples:
                        - Rua Exemplo
                    number:
                      type: string
                      description: Numéro de rue, jusqu'à 20 caractères.
                      examples:
                        - '100'
                    line2:
                      type: string
                      description: >-
                        Ligne d'adresse complémentaire (appartement, étage,
                        bureau), jusqu'à 256 caractères.
                      examples:
                        - Sala 100
                    line3:
                      type: string
                      description: >-
                        Deuxième ligne d'adresse complémentaire, jusqu'à 256
                        caractères.
                      examples:
                        - Torre A
                    city:
                      type: string
                      description: Ville, jusqu'à 100 caractères.
                      examples:
                        - São Paulo
                    state:
                      type: string
                      description: >-
                        État ou province, jusqu'à 100 caractères. Utilisez le
                        code ISO 3166-2 (SP).
                      examples:
                        - SP
                    zipCode:
                      type: string
                      description: Code postal, jusqu'à 20 caractères.
                      examples:
                        - 01310-100
                    country:
                      type: string
                      description: >-
                        ISO 3166-1 alpha-3. Obligatoire lorsque l'adresse est
                        envoyée.
                      examples:
                        - BRA
                    comment:
                      type: string
                      description: >-
                        Informations complémentaires sur l'adresse (étage,
                        appartement, repères), jusqu'à 255 caractères.
                      examples:
                        - Sala 100
                attributes:
                  type: object
                  description: >-
                    Champs personnalisés définis par votre schéma de champs
                    personnalisés (voir Champs personnalisés). Jusqu'à 64 Ko.
                document:
                  type: object
                  description: >-
                    Document d'identification de l'entité (identifiant fiscal ou
                    pièce d'identité). Il devient le document principal. Les
                    autres documents s'ajoutent ensuite avec Ajouter un
                    document.
                  properties:
                    type:
                      type: string
                      description: Consultez Types de documents et de justificatifs.
                      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: >-
                        Numéro du document tel qu'émis, de 1 à 30 caractères.
                        Unique, combiné au type, pour votre compte commerçant.
                      examples:
                        - '00000000000100'
                    issuingCountry:
                      type: string
                      description: Code 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. Une date passée marque le document comme
                        EXPIRED.
                      examples:
                        - '2034-01-15'
                    metadata:
                      type: object
                      description: Métadonnées libres du document.
                  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: Créé.
          content:
            application/json:
              schema:
                type: object
                properties:
                  internalId:
                    type: string
                    examples:
                      - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    format: uuid
                    description: >-
                      Identifiant Localpayment de l'entité. Utilisez-le dans
                      tous les autres endpoints d'entités.
                  externalId:
                    type: string
                    examples:
                      - 550e8400-e29b-41d4-a716-446655440000
                    description: Votre identifiant, tel qu'envoyé.
                  type:
                    type: string
                    examples:
                      - INDIVIDUAL
                    enum:
                      - INDIVIDUAL
                      - COMPANY
                    description: INDIVIDUAL ou COMPANY.
                  status:
                    type: string
                    examples:
                      - PENDING_KYC
                    enum:
                      - PENDING_KYC
                      - IN_REVIEW
                      - ACTIVE
                      - REJECTED
                      - BLOCKED
                      - CLOSED
                    description: >-
                      Statut de l'entité. Consultez Statuts et codes d'erreur
                      des entités.
                  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 ou COMPLETE\_: indique si aucun, certains ou tous les documents déclarés ont au moins un fichier. Mesure la présence de fichiers, pas leur approbation."
                  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 ou 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: "Statut dérivé du document\_: EXPIRED si expirationDate est dépassée, REJECTED si un justificatif actif est rejeté, VERIFIED si tous les justificatifs actifs sont approuvés, sinon PENDING."
                      metadata:
                        type:
                          - object
                          - 'null'
                      proofs:
                        type: array
                        items:
                          type: object
                      createdAt:
                        type: string
                        examples:
                          - '2024-01-15T17:03:10Z'
                        format: date-time
                        description: Horodatages UTC au format ISO 8601.
                      updatedAt:
                        type: string
                        examples:
                          - '2024-01-15T17:03:10Z'
                        format: date-time
                        description: Horodatages UTC au format ISO 8601.
                    description: >-
                      Document principal avec son documentId (nécessaire pour
                      envoyer des fichiers), son statut dérivé et ses proofs[]
                      en vigueur.
                  documents:
                    type: array
                    items:
                      type: object
                    description: >-
                      Les autres documents déclarés (le document principal
                      figure uniquement dans document), avec la même structure.
                  version:
                    type: integer
                    examples:
                      - 0
                    description: "Version de l'entité. Équivaut à l'en-tête ETag\_; renvoyez-la dans If-Match lors d'un PATCH."
                  createdAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:10Z'
                    format: date-time
                    description: Horodatages UTC au format ISO 8601.
                  updatedAt:
                    type: string
                    examples:
                      - '2024-01-15T17:03:10Z'
                    format: date-time
                    description: Horodatages UTC au format ISO 8601.
                  customFieldSchemaVersion:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      Version du schéma de champs personnalisés utilisée pour
                      valider attributes, ou 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 de l'entité. Renvoyez-la dans If-Match avec l'endpoint
                Mettre à jour une entité.
              schema:
                type: string
                examples:
                  - '"0"'
        '400':
          description: "Requête incorrecte. VALIDATION_ERROR\_: un champ, un en-tête, un paramètre de chemin ou de requête est manquant, inconnu ou non valide. details[] indique le champ et le problème. CUSTOM_FIELDS_INVALID\_: attributes ne respecte pas votre schéma de champs personnalisés. details[] indique le champ et le problème."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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: "Non autorisé. UNAUTHORIZED\_: jeton d'accès manquant ou invalide."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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: "Conflit. DUPLICATE_ENTITY\_: externalId, ou la paire type + id d'un document, existe déjà pour votre compte commerçant."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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: "Charge utile trop volumineuse. PAYLOAD_TOO_LARGE\_: attributes dépasse 64 Ko."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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: "Type de média non pris en charge. UNSUPPORTED_MEDIA_TYPE\_: le Content-Type de la requête ne correspond pas à celui attendu par l'endpoint (application/json, ou multipart/form-data pour les envois de fichiers)."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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: "Entité non traitable. INCOMPLETE_KYC_DATA\_: des données KYC minimales sont manquantes\_: name et lastname pour INDIVIDUAL, name pour COMPANY."
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Détails du problème selon la RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Bref résumé du problème.
                  status:
                    type: integer
                    description: Code de statut HTTP.
                  detail:
                    type: string
                    description: Explication lisible.
                  instance:
                    type: string
                    description: Chemin de la requête.
                  code:
                    type: string
                    description: >-
                      Code d'erreur stable et lisible par machine. Basez votre
                      logique sur cette valeur.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identifiant de la requête. Indiquez-le lorsque vous
                      contactez le support.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Champs en cause, le cas échéant.
                    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.