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

# Agregar asset a wallet

> Agrega un asset y blockchain a una wallet existente del business autenticado.



## OpenAPI

````yaml /openapi.yaml post /v2/wallets/{id}/assets
openapi: 3.0.0
info:
  title: YP API Partner
  description: Documentación de integración para partners de YP API.
  version: 2.2.0
  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: ''
paths:
  /v2/wallets/{id}/assets:
    post:
      tags:
        - Wallet
      summary: Agregar asset a wallet
      description: >-
        Agrega un asset y blockchain a una wallet existente del business
        autenticado.
      operationId: addAssetToWallet
      parameters:
        - name: id
          required: true
          in: path
          description: Identificador de la wallet/vault.
          schema:
            example: 550e8400-e29b-41d4-a716-446655440001
            type: string
      requestBody:
        required: true
        description: Asset y blockchain a agregar.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddAssetToWalletRequestDoc'
      responses:
        '201':
          description: Asset agregado a la wallet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletResponseDoc'
        '400':
          description: Body inválido o wallet no encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDoc'
        '401':
          description: Token ausente, inválido o expirado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponseDoc'
      security:
        - bearer: []
components:
  schemas:
    AddAssetToWalletRequestDoc:
      type: object
      properties:
        symbol:
          type: string
          enum:
            - USDC
            - USDT
          example: USDC
          description: Asset que se agregará a la wallet.
        blockchain:
          type: string
          enum:
            - Polygon
            - Ethereum
            - TRON
            - Binance
          example: Polygon
          description: Blockchain donde se agregará el asset.
      required:
        - symbol
        - blockchain
    WalletResponseDoc:
      type: object
      properties:
        walletId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440001
          description: Identificador de la wallet/vault.
        status:
          type: string
          example: ACTIVE
          description: Estado de la wallet.
        createdAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Fecha de creación de la wallet.
        assets:
          type: array
          description: Assets configurados en la wallet.
          items:
            $ref: '#/components/schemas/WalletAssetResponseDoc'
      required:
        - walletId
        - status
        - createdAt
        - assets
    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
    WalletAssetResponseDoc:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          description: Identificador interno del asset asociado a la wallet.
        walletAddress:
          type: object
          example: '0x0000000000000000000000000000000000000000'
          nullable: true
          description: Dirección principal de depósito.
        legacyAddress:
          type: object
          example: null
          nullable: true
          description: Dirección legacy, si aplica para la red.
        symbol:
          type: string
          enum:
            - USDC
            - USDT
          example: USDC
          description: Símbolo del asset.
        blockchain:
          type: string
          enum:
            - Polygon
            - Ethereum
            - TRON
            - Binance
          example: Polygon
          description: Blockchain asociada al asset.
      required:
        - id
        - symbol
        - blockchain
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtenido desde /v2/auth/login

````