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

# Crear cliente del business

> Crea un cliente para el business autenticado e inicia su proceso de onboarding en Persona.



## OpenAPI

````yaml /openapi-v2.yaml post /v2/business-clients
openapi: 3.0.0
info:
  title: YP API Partner
  description: Documentación de integración para partners de YP API.
  version: v2
  contact: {}
servers:
  - url: https://sandbox-rampa.mesadepagos.com/api
    description: Sandbox
security: []
tags:
  - name: Auth
    description: ''
  - name: Quotes
    description: ''
  - name: Payin
    description: ''
  - name: Payout
    description: ''
  - name: Wallet
    description: ''
  - name: Consultas
    description: ''
  - name: Webhooks
    description: ''
  - name: Fees
    description: ''
  - name: Clients
    description: ''
paths:
  /v2/business-clients:
    post:
      tags:
        - Clients
      summary: Crear cliente del business
      description: >-
        Crea un cliente para el business autenticado e inicia su proceso de
        onboarding en Persona.
      operationId: createBusinessClient
      parameters: []
      requestBody:
        required: true
        description: Datos del cliente a crear.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBusinessClientRequestDoc'
      responses:
        '201':
          description: Cliente creado y onboarding iniciado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateBusinessClientResponseDoc'
        '400':
          description: Body invalido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDoc'
        '401':
          description: Token ausente, invalido o expirado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponseDoc'
      security:
        - bearer: []
components:
  schemas:
    CreateBusinessClientRequestDoc:
      type: object
      properties:
        name:
          type: string
          example: Acme Bolivia
          description: Nombre del cliente.
        email:
          type: string
          example: cliente@example.com
          description: Correo electronico del cliente.
          format: email
        type:
          type: string
          enum:
            - individual
            - company
          example: company
          description: Tipo de cliente.
        country:
          type: string
          example: BO
          description: Codigo de pais del cliente, de 2 a 4 caracteres.
          minLength: 2
          maxLength: 4
      required:
        - name
        - email
        - type
        - country
    CreateBusinessClientResponseDoc:
      type: object
      properties:
        clientId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          description: Identificador interno del cliente.
          format: uuid
        clientLink:
          type: string
          example: https://withpersona.com/verify/example
          description: Enlace de un solo uso para completar el onboarding en Persona.
          format: uri
      required:
        - clientId
        - clientLink
    ValidationErrorResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: Validation failed
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
    UnauthorizedResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: Unauthorized
      required:
        - statusCode
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtenido desde /v2/auth/login

````