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

# QR Payout

> Processes a payout QR code. The response depends on the QR provider and may vary.



## OpenAPI

````yaml /openapi-v2.en.yaml post /v2/transactions/payouts/qr
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/transactions/payouts/qr:
    post:
      tags:
        - Payout
      summary: QR Payout
      description: >-
        Processes a payout QR code. The response depends on the QR provider and
        may vary.
      operationId: createPayoutQrV2
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePayoutQrRequestDoc'
      responses:
        '201':
          description: QR payout created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePayoutQrResponseDoc'
        '400':
          description: Invalid request.
          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:
    CreatePayoutQrRequestDoc:
      type: object
      properties:
        asset_deposit:
          type: string
          enum:
            - USDC
            - USDT
          default: USDC
          example: USDC
          description: Crypto asset required to fund the operation.
        blockchain:
          type: string
          enum:
            - Polygon
            - Ethereum
            - TRON
          default: Polygon
          example: Polygon
          description: Blockchain of the deposit asset.
        funding_source:
          type: string
          enum:
            - balance
            - conversion
          example: conversion
          description: Source of funds. When set to conversion, amount is required.
        image:
          type: string
          example: qr-text-or-image-payload
          description: QR code content to process.
        external_reference:
          type: string
          example: ORDER-QR-1001
          description: Partner external reference.
          maxLength: 32
        amount:
          type: number
          example: 100
          description: Amount required when funding_source is conversion.
          minimum: 0
      required:
        - image
        - external_reference
    CreatePayoutQrResponseDoc:
      type: object
      properties:
        external_reference:
          type: string
          example: ORDER-QR-1001
          description: External reference sent in the request.
        amount_deposit:
          type: object
          example: '14.44'
          nullable: true
          description: Crypto amount required to fund the operation.
        deposit_address:
          type: object
          example: '0x0000000000000000000000000000000000000000'
          nullable: true
          description: Crypto address to fund, if applicable.
        transactions:
          description: Transaction associated with the QR flow.
          allOf:
            - $ref: '#/components/schemas/PayoutQrTransactionResponseDoc'
      required:
        - external_reference
        - transactions
    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
    PayoutQrTransactionResponseDoc:
      type: object
      properties:
        transaction_id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440002
          description: Associated transaction identifier.
        status:
          type: string
          example: pending_transaction
          description: Transaction status.
        message:
          type: string
          example: Payout QR processed successfully
          description: Result description.
      required:
        - transaction_id
        - status
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtained from /v2/auth/login

````