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

# Actualizar vendedor

> Reemplaza por completo los detalles de un vendedor y las configuraciones de métodos de pago

Reemplaza por completo los detalles del vendedor y las configuraciones de métodos de pago de un vendedor determinado.

> [!WARNING]
>
> **Importante**
>
> Esta es una operación de reemplazo total. Debes incluir todos los campos que quieras conservar. Los campos opcionales omitidos se establecerán en `null`.


## OpenAPI

````yaml openapi/es/sellers/sellers-api.json PUT /sellers/{merchant_seller_id}
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/{merchant_seller_id}:
    parameters:
      - name: merchant_seller_id
        in: path
        required: true
        schema:
          type: string
      - name: public-api-key
        in: header
        required: true
        schema:
          type: string
      - name: private-secret-key
        in: header
        required: true
        schema:
          type: string
    put:
      tags:
        - Sellers
      summary: Actualizar vendedor
      description: >-
        Reemplaza por completo los detalles del vendedor y las configuraciones
        de métodos de pago. `merchant_seller_id` se toma de la ruta de la URL;
        `account_id` debe enviarse en el cuerpo de la solicitud.
      operationId: update-seller
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SellerUpdate'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Seller'
              examples:
                MultipleProviders:
                  summary: Updated seller with multiple providers
                  value:
                    seller_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    merchant_seller_id: FRANCHISE_STORE_001
                    name: Franchise Store Los Angeles
                    email: null
                    phone:
                      code: null
                      number: null
                    document:
                      type: null
                      number: null
                    address:
                      line_1: null
                      line_2: null
                      city: null
                      state: null
                      country: null
                      zip_code: null
                    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
                      - provider_id: APPLE_PAY
                        payment_method_type: APPLE_PAY
                        merchant_id: null
                        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
                    created_at: '2026-05-07T10:00:00Z'
                    updated_at: '2026-05-07T14:30:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    SellerUpdate:
      type: object
      required:
        - account_id
      properties:
        account_id:
          type: string
          format: uuid
        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.
        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
    NotFound:
      description: No encontrado
      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.