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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Crear vendedor

> Crea un mapeo de vendedor de franquicia asociado a una cuenta de comercio

Crea un nuevo mapeo de vendedor de franquicia. Un vendedor se crea bajo un `account_code` específico, pero está disponible en toda la organización.

> [!NOTE]
>
> Cada combinación `(provider.id, payment_method_type)` debe ser única dentro del arreglo `payment_method`.


## OpenAPI

````yaml openapi/es/sellers/sellers-api.json POST /sellers
openapi: 3.1.0
info:
  title: Sellers (Franchise) API
  description: >-
    The Sellers API allows franchise merchants to register per-provider seller
    identities so the correct `merchant_id` is automatically resolved at payment
    time.
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security: []
paths:
  /sellers:
    post:
      tags:
        - Sellers
      summary: Crear vendedor
      description: Crea una nueva asignación de vendedor de franquicia.
      operationId: create-seller
      parameters:
        - name: public-api-key
          in: header
          required: true
          schema:
            type: string
        - name: private-secret-key
          in: header
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SellerCreate'
            examples:
              CardProvider:
                summary: Seller with card provider
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_001
                  name: Franchise Store New York
                  email: store001@franchise.com
                  phone:
                    code: '+1'
                    number: '2125550100'
                  document:
                    type: EIN
                    number: 12-3456789
                  address:
                    line_1: 350 Fifth Avenue
                    line_2: Suite 101
                    city: New York
                    state: NY
                    country: US
                    zip_code: '10118'
                  country: US
                  merchant_category_code: '5812'
                  payment_methods:
                    - provider_id: STRIPE
                      payment_method_type: CARD
                      merchant_id: acct_1A2B3C4D5E
              MultipleProviders:
                summary: Seller with multiple providers (card + wallet)
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_001
                  name: Franchise Store Los Angeles
                  country: US
                  merchant_category_code: '5812'
                  payment_methods:
                    - provider_id: STRIPE
                      payment_method_type: CARD
                      merchant_id: acct_1A2B3C4D5E
                    - provider_id: APPLE_PAY
                      payment_method_type: APPLE_PAY
                      wallet_details:
                        payment_processing_key: <base64-encoded .pem content>
                        payment_processing_certificate: <base64-encoded .pem content>
                        merchant_identity_key: <base64-encoded .pem content>
                        merchant_identity_certificate: <base64-encoded .pem content>
                        merchant_identity_password: password123
              MinimalSeller:
                summary: Minimal seller (no payment methods yet)
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_002
                  name: Franchise Store Chicago
      responses:
        '201':
          description: Creado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Seller'
              examples:
                CardProvider:
                  summary: Seller created with card provider
                  value:
                    seller_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    merchant_seller_id: FRANCHISE_STORE_001
                    name: Franchise Store New York
                    email: store001@franchise.com
                    phone:
                      code: '+1'
                      number: '2125550100'
                    document:
                      type: EIN
                      number: 12-3456789
                    address:
                      line_1: 350 Fifth Avenue
                      line_2: Suite 101
                      city: New York
                      state: NY
                      country: US
                      zip_code: '10118'
                    country: US
                    website: null
                    industry: null
                    merchant_category_code: '5812'
                    payment_methods:
                      - provider_id: STRIPE
                        payment_method_type: CARD
                        merchant_id: acct_1A2B3C4D5E
                        wallet_details: null
                    created_at: '2026-05-07T10:00:00Z'
                    updated_at: '2026-05-07T10:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
components:
  schemas:
    SellerCreate:
      type: object
      required:
        - account_id
        - merchant_seller_id
      properties:
        account_id:
          type: string
          format: uuid
        merchant_seller_id:
          type: string
          minLength: 1
          maxLength: 255
        name:
          type: string
          minLength: 1
          maxLength: 255
        email:
          type: string
          format: email
        phone:
          $ref: '#/components/schemas/Phone'
        document:
          $ref: '#/components/schemas/Document'
        address:
          $ref: '#/components/schemas/Address'
        country:
          type: string
          minLength: 2
          maxLength: 2
          description: Código de país ISO 3166-1 alpha-2.
        website:
          type: string
        industry:
          type: string
        merchant_category_code:
          type: string
          minLength: 4
          maxLength: 4
        payment_methods:
          type: array
          items:
            $ref: '#/components/schemas/PaymentMethodConfig'
    Seller:
      type: object
      properties:
        seller_id:
          type: string
          format: uuid
        merchant_seller_id:
          type: string
        name:
          type: string
        email:
          type: string
        phone:
          $ref: '#/components/schemas/Phone'
        document:
          $ref: '#/components/schemas/Document'
        address:
          $ref: '#/components/schemas/Address'
        country:
          type: string
          minLength: 2
          maxLength: 2
        website:
          type: string
        industry:
          type: string
        merchant_category_code:
          type: string
          minLength: 4
          maxLength: 4
        payment_methods:
          type: array
          items:
            $ref: '#/components/schemas/PaymentMethodConfig'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Phone:
      type: object
      properties:
        code:
          type: string
          description: Código de marcación del país (por ejemplo, +1, +57).
        number:
          type: string
    Document:
      type: object
      properties:
        type:
          type: string
        number:
          type: string
    Address:
      type: object
      properties:
        line_1:
          type: string
        line_2:
          type: string
        city:
          type: string
        state:
          type: string
        country:
          type: string
        zip_code:
          type: string
    PaymentMethodConfig:
      type: object
      description: >-
        Cada par (provider_id, payment_method_type) debe ser único dentro del
        arreglo.
      required:
        - provider_id
        - payment_method_type
      properties:
        provider_id:
          type: string
        payment_method_type:
          type: string
        merchant_id:
          type: string
        wallet_details:
          $ref: '#/components/schemas/WalletDetails'
    WalletDetails:
      type: object
      properties:
        payment_processing_key:
          type: string
        payment_processing_certificate:
          type: string
        merchant_identity_key:
          type: string
        merchant_identity_certificate:
          type: string
        merchant_identity_password:
          type: string
  responses:
    BadRequest:
      description: Solicitud incorrecta
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
    Unauthorized:
      description: No autorizado
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
    Conflict:
      description: Conflicto
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
              message:
                type: string

````

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