> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Crear Cliente vía Link

> Create a customer via the hosted onboarding link flow. Returns a KYC link and its expiry.

Usa este endpoint para crear un cliente y generar un link KYC alojado en una sola solicitud. En lugar de crear primero el cliente y luego solicitar un link por separado, proporcionas aquí el tipo, email, teléfono y dirección del cliente, y la respuesta devuelve el ID del nuevo cliente junto con una URL de verificación alojada con tiempo limitado. Redirige al cliente a esta URL para completar sus verificaciones de identidad con el proveedor de verificación.

> [!NOTE]
>
> Los enlaces de verificación alojados recopilan datos KYC y KYB de EEA+ automáticamente cuando aplica. Los integradores que usan enlaces alojados no necesitan cambios de API para esos requisitos. Consulta [Región EEA+](https://docs.spherepay.co/es/concepts/onboarding/overview.md#eea-region).

> [!WARNING]
>
> Los clientes creados mediante este flujo de link de incorporación solo pueden gestionarse con los endpoints de links de incorporación — no son compatibles con los flujos directos de incorporación de la API. Del mismo modo, los clientes incorporados a través de los otros flujos de la API no pueden usarse con los endpoints de links de incorporación.

> [!NOTE]
>
> La URL devuelta expira en el momento indicado por `expiresAt` — por defecto, 4 semanas (28 días) después de su creación. Este valor por defecto puede cambiar sin previo aviso, así que confía siempre en `expiresAt` en lugar de asumir una duración fija. Si el link expira antes de que el cliente complete la verificación, genera uno nuevo con [Regenerar Link KYC](https://docs.spherepay.co/es/api-reference/customer/kyc.md) usando el `customerId` de esta respuesta.


## OpenAPI

````yaml openapi/spherepay.yaml POST /v2/customer/kyc-link
openapi: 3.0.0
info:
  contact: {}
  description: The Sphere REST API for payments, transfers, and accounts.
  title: Sphere API
  version: '2'
servers:
  - description: Production
    url: https://api.spherepay.co
security:
  - bearer: []
tags: []
paths:
  /v2/customer/kyc-link:
    post:
      summary: Create Customer via Link
      description: >-
        Create a customer via the hosted onboarding link flow. Returns a KYC
        link and its expiry.
      operationId: postV2CustomerKycLink
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomerKycLinkDto'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateKycUrlResponseDto'
          description: ''
        '400':
          content:
            application/json:
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: address/invalid
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Invalid request parameters
                    status: 400
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Bad Request
        '404':
          content:
            application/json:
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: resource/not-found
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Resource not found
                    status: 404
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Not Found
        '422':
          content:
            application/json:
              examples:
                Validation Error:
                  summary: Validation Error
                  value:
                    code: validation/failed
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Validation failed
                    errors:
                      - detail: Invalid email format
                        pointer: /email
                      - detail: Name is required
                        pointer: /name
                    status: 422
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Unprocessable Entity - Validation Error
components:
  schemas:
    CreateCustomerKycLinkDto:
      properties:
        address:
          description: >-
            The customer's address. For individual customers this is the
            residential address; for business customers this is the registered
            business address.
          properties:
            city:
              description: The city name
              example: Chicago
              maxLength: 100
              minLength: 1
              type: string
            country:
              description: >-
                The ISO3166-1 Alpha-3 country code (e.g., USA, GBR, CAN). See
                [Country Codes](/concepts/reference/supported-countries).
              example: USA
              type: string
            line1:
              description: The first line of the street address
              example: 233 South Wacker Drive
              maxLength: 100
              minLength: 1
              type: string
            line2:
              description: The second line of the street address (apartment, suite, etc.)
              example: Suite 4700
              maxLength: 100
              type: string
            postalCode:
              description: >-
                The postal or ZIP code. Required for countries that use postal
                codes
              example: '60606'
              type: string
            state:
              description: >-
                The state or province code (ISO3166-2 subdivision code).
                Required for countries that have states/provinces. See State
                Codes.
              example: IL
              type: string
          required:
            - line1
            - city
            - country
          type: object
        email:
          description: The customer email address.
          example: jane.smith@example.com
          format: email
          maxLength: 254
          type: string
        enabledVerificationProfiles:
          description: >-
            Restricts which verification profile families this customer may
            onboard through. Must be a subset of the families enabled on your
            application; supplying one that is not enabled is rejected with a
            422. Omit the field to inherit the application's setting.
          example:
            - a
            - c
          items:
            enum:
              - a
              - b
              - c
              - d
            type: string
          minItems: 1
          type: array
        phone:
          description: The customer phone number in E.164 format.
          example: '+14155550123'
          pattern: ^\+(?:[0-9]){6,14}[0-9]$
          type: string
        type:
          description: The type of customer to onboard.
          enum:
            - individual
            - business
          example: individual
          type: string
      required:
        - type
        - email
        - phone
        - address
      type: object
    GenerateKycUrlResponseDto:
      properties:
        customerId:
          description: The ID of the customer the KYC link belongs to
          example: customer_b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7
          type: string
        expiresAt:
          description: >-
            ISO 8601 formatted date and time of the KYC URL expiration. By
            default, links expire 4 weeks (28 days) after creation, but this
            default may change without notice - always rely on this field rather
            than assuming a fixed duration.
          example: '2026-03-09T20:46:31.305Z'
          type: string
        url:
          description: Hosted KYC URL
          example: https://in.sumsub.com/websdk/p/sbx_uq30ag1ov7oHZhmx
          type: string
      required:
        - customerId
        - url
        - expiresAt
      type: object
    ProblemDetailsDto:
      properties:
        code:
          type: string
        correlationId:
          type: string
        detail:
          type: string
        errors:
          items:
            properties:
              detail:
                type: string
              header:
                type: string
              parameter:
                type: string
              pointer:
                type: string
            required:
              - detail
            type: object
          type: array
        status:
          type: integer
        title:
          type: string
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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