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

# Add asset to wallet

> Adds an asset and blockchain to an existing wallet of the authenticated business.



## OpenAPI

````yaml /openapi-v2.en.yaml post /v2/wallets/{id}/assets
openapi: 3.0.0
info:
  title: YP API Partner
  description: Integration documentation for YP API partners.
  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: Queries
    description: ''
  - name: Webhooks
    description: ''
  - name: Fees
    description: ''
  - name: Clients
    description: ''
paths:
  /v2/wallets/{id}/assets:
    post:
      tags:
        - Wallet
      summary: Add asset to wallet
      description: >-
        Adds an asset and blockchain to an existing wallet of the authenticated
        business.
      operationId: addAssetToWallet
      parameters:
        - name: id
          required: true
          in: path
          description: Wallet or vault identifier.
          schema:
            example: 550e8400-e29b-41d4-a716-446655440001
            type: string
      requestBody:
        required: true
        description: Asset and blockchain to add.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddAssetToWalletRequestDoc'
      responses:
        '201':
          description: Asset added to the wallet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletResponseDoc'
        '400':
          description: Invalid request body or wallet not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDoc'
        '401':
          description: Missing, invalid, or expired token.
          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 to add to the wallet.
        blockchain:
          type: string
          enum:
            - Polygon
            - Ethereum
            - TRON
            - Binance
            - Sepolia
          example: Polygon
          description: Blockchain where the asset will be added.
      required:
        - symbol
        - blockchain
    WalletResponseDoc:
      type: object
      properties:
        walletId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440001
          description: Wallet or vault identifier.
        status:
          type: string
          example: ACTIVE
          description: Wallet status.
        createdAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Wallet creation date.
        assets:
          description: Assets configured in the wallet.
          type: array
          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: Internal identifier of the asset associated with the wallet.
        walletAddress:
          type: object
          example: '0x0000000000000000000000000000000000000000'
          nullable: true
          description: Primary deposit address.
        legacyAddress:
          type: object
          example: null
          nullable: true
          description: Legacy address, if applicable to the network.
        symbol:
          type: string
          enum:
            - USDC
            - USDT
          example: USDC
          description: Asset symbol.
        blockchain:
          type: string
          enum:
            - Polygon
            - Ethereum
            - TRON
            - Binance
            - Sepolia
          example: Polygon
          description: Blockchain associated with the asset.
      required:
        - id
        - symbol
        - blockchain
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtained from /v2/auth/login

````