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

# Mettre fin à un lien UBO

Met fin à un lien UBO actif en définissant validTo sur la date du jour. Le lien reste visible avec includeEnded=true.

* Mettre fin à un lien déjà terminé renvoie 404 UBO\_NOT\_FOUND. Tant que la société est IN\_REVIEW, la requête renvoie 409 ENTITY\_IN\_REVIEW.

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 DELETE /api/entity/v1/entities/{companyId}/ubos/{uboId}
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/{companyId}/ubos/{uboId}:
    delete:
      summary: Mettre fin à un lien UBO
      operationId: end-ubo-link
      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
        - name: companyId
          in: path
          description: internalId de la COMPANY.
          required: true
          schema:
            type: string
            examples:
              - 7c9e6679-7425-40de-944b-e07fc1f90ae7
            format: uuid
        - name: uboId
          in: path
          description: ID du lien UBO.
          required: true
          schema:
            type: string
            format: uuid
            examples:
              - 4584b476-ccc6-4e98-be40-0c5082748e35
      responses:
        '204':
          description: Aucun contenu. Aucun corps.
        '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/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos/4584b476-ccc6-4e98-be40-0c5082748e35
                    code: UNAUTHORIZED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '404':
          description: "Introuvable. ENTITY_NOT_FOUND\_: l'entité n'existe pas ou appartient à un autre commerçant. UBO_NOT_FOUND\_: le lien UBO n'existe pas, a déjà pris fin ou appartient à un autre 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 - ENTITY_NOT_FOUND:
                  value:
                    type: about:blank
                    title: Not found
                    status: 404
                    detail: The entity does not exist or belongs to another merchant.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos/4584b476-ccc6-4e98-be40-0c5082748e35
                    code: ENTITY_NOT_FOUND
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 2 - UBO_NOT_FOUND:
                  value:
                    type: about:blank
                    title: Not found
                    status: 404
                    detail: >-
                      The UBO link does not exist, has already ended, or belongs
                      to another merchant.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos/4584b476-ccc6-4e98-be40-0c5082748e35
                    code: UBO_NOT_FOUND
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '409':
          description: "Conflit. ENTITY_IN_REVIEW\_: l'entité est IN_REVIEW\_: ses données, documents, fichiers et liens UBO sont gelés jusqu'à ce que l'équipe Conformité de Localpayment la traite."
          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 - ENTITY_IN_REVIEW:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: >-
                      The entity is IN_REVIEW: its data, documents, files and
                      UBO links are frozen until Localpayment Compliance
                      resolves it.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos/37325b16-514f-40f5-afca-a2acd201f629
                    code: ENTITY_IN_REVIEW
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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