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

# Vincular un UBO

Vincula una entidad INDIVIDUAL como beneficiario final (UBO) de una entidad COMPANY, con el porcentaje de participación y el rol de control. Ambas entidades deben existir previamente.

* Se permite vincular mientras la empresa esté en PENDING\_KYC o ACTIVE. Mientras esté en IN\_REVIEW devuelve 409 ENTITY\_IN\_REVIEW; no se permite cuando está en CLOSED, BLOCKED o REJECTED.
* Hasta 50 vínculos UBO activos por empresa. La misma persona no puede vincularse dos veces mientras haya un vínculo activo.
* Después de vincular, Obtener una entidad sobre la empresa devuelve uboCount y uboRequirementMet.

Los errores usan `application/problem+json` con un `code` estable. Catálogo completo: [Estados de entidades y códigos de error](https://docs.localpayment.com/es/reference/entity-statuses-and-error-codes.md).


## OpenAPI

````yaml openapi/es/localpayment.json POST /api/entity/v1/entities/{companyId}/ubos
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:
    post:
      summary: Vincular un UBO
      operationId: link-ubo
      parameters:
        - name: Authorization
          in: header
          description: >-
            Token de acceso Bearer para la autenticación. Este token se obtiene
            de los endpoints [Get Access Token](/es/reference/get-token) o
            [Refresh Access Token](/es/reference/refresh-token). Tu cuenta de
            comerciante y el usuario que actúa se determinan a partir de él.
          required: true
          schema:
            type: string
            examples:
              - Bearer <your_access_token>
        - name: X-Correlation-ID
          in: header
          description: >-
            Identificador de seguimiento (UUID). Se incluye en la respuesta;
            Localpayment lo genera si no está presente.
          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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                personId:
                  type: string
                  format: uuid
                  description: internalId del INDIVIDUAL.
                  examples:
                    - c1e384f5-ae1c-475e-9e64-a0abe533a96f
                ownershipPercentage:
                  type:
                    - number
                    - 'null'
                  description: >-
                    De 0 a 100, con hasta dos decimales. Envía null cuando se
                    desconozca el porcentaje, y 0 para un representante legal
                    que no posee participación accionaria.
                  examples:
                    - 60
                controlRole:
                  type: string
                  description: >-
                    Rol de la persona, uno de los 24 códigos. Distingue
                    mayúsculas y minúsculas: director devuelve 422
                    INVALID_CONTROL_ROLE. Usa LEGAL_REPRESENTATIVE para el
                    representante legal y AUTHORIZED_SIGNATORY para una persona
                    que firma en virtud de un poder notarial.
                  examples:
                    - CEO
                  enum:
                    - CEO
                    - CFO
                    - COO
                    - CTO
                    - PRESIDENT
                    - VICE_PRESIDENT
                    - DIRECTOR
                    - MANAGING_DIRECTOR
                    - MANAGING_PARTNER
                    - GENERAL_PARTNER
                    - PARTNER
                    - SECRETARY
                    - TREASURER
                    - CHAIRMAN
                    - BOARD_MEMBER
                    - AUTHORIZED_SIGNATORY
                    - GENERAL_COUNSEL
                    - OWNER
                    - FOUNDER
                    - MANAGER
                    - MEMBER
                    - COMPTROLLER
                    - CHIEF_COMPLIANCE_OFFICER
                    - LEGAL_REPRESENTATIVE
                validFrom:
                  type: string
                  format: date
                  description: 'AAAA-MM-DD. Predeterminado: hoy.'
                  examples:
                    - '2024-01-15'
                validTo:
                  type: string
                  format: date
                  description: >-
                    AAAA-MM-DD, en o después de validFrom. Omitir para un enlace
                    abierto.
                  examples:
                    - '2025-01-15'
              required:
                - personId
                - ownershipPercentage
            examples:
              Example 1:
                value:
                  personId: c1e384f5-ae1c-475e-9e64-a0abe533a96f
                  ownershipPercentage: 60
                  controlRole: CEO
      responses:
        '201':
          description: Creado.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    examples:
                      - 4584b476-ccc6-4e98-be40-0c5082748e35
                    description: Identificador de enlace UBO (uboId).
                  companyId:
                    type: string
                    examples:
                      - 7c9e6679-7425-40de-944b-e07fc1f90ae7
                    format: uuid
                    description: La entidad COMPAÑÍA.
                  personId:
                    type: string
                    examples:
                      - c1e384f5-ae1c-475e-9e64-a0abe533a96f
                    format: uuid
                    description: >-
                      La entidad INDIVIDUAL. Aquí no se devuelve ningún dato
                      personal de la persona.
                  ownershipPercentage:
                    type:
                      - number
                      - 'null'
                    examples:
                      - 60
                    description: >-
                      De 0 a 100, con hasta dos decimales. null cuando se
                      desconoce el porcentaje.
                  controlRole:
                    type: string
                    examples:
                      - CEO
                    description: >-
                      Cargo en mayúsculas, por ejemplo CEO, PARTNER, DIRECTOR,
                      LEGAL_REPRESENTATIVE. Nulo cuando no se informa.
                  validFrom:
                    type: string
                    examples:
                      - '2024-01-15'
                    format: date
                    description: >-
                      Validez del enlace. validTo es nulo mientras el enlace
                      está activo.
                  validTo:
                    type:
                      - string
                      - 'null'
                    format: date
                    description: >-
                      Validez del enlace. validTo es nulo mientras el enlace
                      está activo.
                  createdAt:
                    type: string
                    examples:
                      - '2024-01-15T17:20:47Z'
                    format: date-time
                    description: Tiempo de creación.
              examples:
                Example 1:
                  value:
                    id: 4584b476-ccc6-4e98-be40-0c5082748e35
                    companyId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                    personId: c1e384f5-ae1c-475e-9e64-a0abe533a96f
                    ownershipPercentage: 60
                    controlRole: CEO
                    validFrom: '2024-01-15'
                    validTo: null
                    createdAt: '2024-01-15T17:20:47Z'
        '400':
          description: >-
            Solicitud incorrecta. VALIDATION_ERROR: Falta un campo, encabezado,
            ruta o parámetro de consulta, es desconocido o no válido. details[]
            muestra el campo y el problema.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Detalles del problema según RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve resumen del problema.
                  status:
                    type: integer
                    description: Código de estado HTTP.
                  detail:
                    type: string
                    description: Explicación comprensible para el ser humano.
                  instance:
                    type: string
                    description: Ruta de solicitud.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Basa tu
                      lógica de ramificación en este valor.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificador de la solicitud. Indícalo cuando te pongas
                      en contacto con el servicio de asistencia.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campos problemáticos, cuando corresponda.
                    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/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: VALIDATION_ERROR
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details:
                      - field: externalId
                        issue: REQUIRED
        '401':
          description: >-
            No autorizado. UNAUTHORIZED: Falta el token de acceso o no es
            válido.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Detalles del problema según RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve resumen del problema.
                  status:
                    type: integer
                    description: Código de estado HTTP.
                  detail:
                    type: string
                    description: Explicación comprensible para el ser humano.
                  instance:
                    type: string
                    description: Ruta de solicitud.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Basa tu
                      lógica de ramificación en este valor.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificador de la solicitud. Indícalo cuando te pongas
                      en contacto con el servicio de asistencia.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campos problemáticos, cuando corresponda.
                    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
                    code: UNAUTHORIZED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '404':
          description: >-
            No encontrado. ENTITY_NOT_FOUND: La entidad no existe o pertenece a
            otro comerciante.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Detalles del problema según RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve resumen del problema.
                  status:
                    type: integer
                    description: Código de estado HTTP.
                  detail:
                    type: string
                    description: Explicación comprensible para el ser humano.
                  instance:
                    type: string
                    description: Ruta de solicitud.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Basa tu
                      lógica de ramificación en este valor.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificador de la solicitud. Indícalo cuando te pongas
                      en contacto con el servicio de asistencia.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campos problemáticos, cuando corresponda.
                    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
                    code: ENTITY_NOT_FOUND
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '409':
          description: >-
            Conflicto. ENTITY_IN_REVIEW: La entidad está IN_REVIEW: sus datos,
            documentos, archivos y vínculos UBO están congelados hasta que
            Localpayment Compliance lo resuelva. UBO_ALREADY_LINKED: La persona
            ya tiene un vínculo UBO activo con esta empresa. UBO_LIMIT_EXCEEDED:
            La empresa ya tiene 50 vínculos UBO activos.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Detalles del problema según RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve resumen del problema.
                  status:
                    type: integer
                    description: Código de estado HTTP.
                  detail:
                    type: string
                    description: Explicación comprensible para el ser humano.
                  instance:
                    type: string
                    description: Ruta de solicitud.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Basa tu
                      lógica de ramificación en este valor.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificador de la solicitud. Indícalo cuando te pongas
                      en contacto con el servicio de asistencia.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campos problemáticos, cuando corresponda.
                    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
                    code: ENTITY_IN_REVIEW
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 2 - UBO_ALREADY_LINKED:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: Conflict
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: UBO_ALREADY_LINKED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 3 - UBO_LIMIT_EXCEEDED:
                  value:
                    type: about:blank
                    title: Conflict
                    status: 409
                    detail: The company already has 50 active UBO links.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: UBO_LIMIT_EXCEEDED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '422':
          description: >-
            Entidad no procesable. INVALID_ENTITY_TYPE: companyId debe ser una
            COMPANY y personId un INDIVIDUAL. ENTITY_NOT_ACTIVE: La empresa (o
            la persona) está CLOSED, BLOCKED o REJECTED. INVALID_PERCENTAGE:
            ownershipPercentage está fuera del rango de 0 a 100 o tiene más de
            dos decimales. INVALID_CONTROL_ROLE: controlRole no es uno de los
            códigos de rol enumerados en Link a UBO. Los códigos distinguen
            entre mayúsculas y minúsculas: director devuelve este error.
            INVALID_VALIDITY_RANGE: validTo es anterior a validFrom.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Detalles del problema según RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve resumen del problema.
                  status:
                    type: integer
                    description: Código de estado HTTP.
                  detail:
                    type: string
                    description: Explicación comprensible para el ser humano.
                  instance:
                    type: string
                    description: Ruta de solicitud.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Basa tu
                      lógica de ramificación en este valor.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificador de la solicitud. Indícalo cuando te pongas
                      en contacto con el servicio de asistencia.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campos problemáticos, cuando corresponda.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - INVALID_ENTITY_TYPE:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: companyId must be a COMPANY and personId an INDIVIDUAL.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: INVALID_ENTITY_TYPE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 2 - ENTITY_NOT_ACTIVE:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: >-
                      The company (or the person) is CLOSED, BLOCKED or
                      REJECTED.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: ENTITY_NOT_ACTIVE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 3 - INVALID_PERCENTAGE:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: >-
                      ownershipPercentage is outside 0 to 100 or has more than
                      two decimals.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: INVALID_PERCENTAGE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 4 - INVALID_CONTROL_ROLE:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: >-
                      controlRole is not one of the role codes listed in Link a
                      UBO. Codes are case-sensitive: director returns this
                      error.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: INVALID_CONTROL_ROLE
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
                Example 5 - INVALID_VALIDITY_RANGE:
                  value:
                    type: about:blank
                    title: Unprocessable entity
                    status: 422
                    detail: validTo is earlier than validFrom.
                    instance: >-
                      /api/entity/v1/entities/7c9e6679-7425-40de-944b-e07fc1f90ae7/ubos
                    code: INVALID_VALIDITY_RANGE
                    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.