> ## 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-v3.en.yaml post /v3/transactions/payouts/qr
openapi: 3.0.0
info:
  title: YP API Partner
  description: Integration documentation for YP API partners.
  version: v3
  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: ''
  - name: Client verifications
    description: Las verificaciones que habilitan a un cliente a cobrar a su nombre.
  - name: Virtual accounts
    description: 'Las cuentas de cobro: las del partner y las de sus clientes.'
paths:
  /v3/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: createPayoutQrV3
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePayoutQrV3RequestDoc'
      responses:
        '201':
          description: QR payout created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePayoutQrV3ResponseDoc'
        '400':
          description: >-
            Invalid request, or a field rejected by the payment provider. Always
            a single 400 with the path of each field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorV3ResponseDoc'
              example:
                statusCode: 400
                error: Bad Request
                message:
                  - path:
                      - amount
                    message: An amount is required for this QR code.
        '401':
          description: Missing, invalid, or expired token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponseDoc'
        '404':
          description: The payment provider did not find the QR.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 404
                code: TRANSACTION_NOT_FOUND
                message: The transaction was not found.
        '409':
          description: The payment provider rejected the payment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 409
                code: TRANSACTION_REJECTED
                message: The transaction was rejected and cannot be processed.
        '410':
          description: The QR has expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 410
                code: QR_EXPIRED
                message: The QR code has expired. Generate a new QR code and try again.
        '422':
          description: Insufficient funds or a permanent rejection by the payment provider.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 422
                code: INSUFFICIENT_FUNDS
                message: There are insufficient funds to complete this transaction.
        '500':
          description: Internal error (for example, merchant configuration).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 500
                code: INTERNAL_SERVER_ERROR
                message: >-
                  An unexpected internal server error occurred. Please try again
                  later.
        '503':
          description: >-
            The payment provider did not respond (timeout, outage or 5xx error).
            The request can be retried.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppErrorResponseDoc'
              example:
                statusCode: 503
                code: PAYMENT_PROVIDER_UNAVAILABLE
                message: >-
                  The payment provider is temporarily unavailable. Please try
                  again later.
      security:
        - bearer: []
components:
  schemas:
    CreatePayoutQrV3RequestDoc:
      type: object
      properties:
        assetDeposit:
          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.
        fundingSource:
          type: string
          enum:
            - balance
            - conversion
          example: conversion
          description: Source of funds. When set to conversion, amount is required.
        image:
          type: string
          example: iVBORw0KGgoAAAANSUhEUgAA...
          description: QR image encoded as plain base64, without the data:image prefix.
        externalReference:
          type: string
          example: ORDER-QR-1001
          description: Partner external reference.
          maxLength: 32
        amount:
          type: number
          example: 100
          description: Amount required when fundingSource is conversion.
          minimum: 0
      required:
        - image
        - externalReference
    CreatePayoutQrV3ResponseDoc:
      type: object
      properties:
        externalReference:
          type: string
          example: ORDER-QR-1001
          description: External reference sent in the request.
        amountDeposit:
          type: object
          example: '14.44'
          nullable: true
          description: Crypto amount required to fund the operation.
        depositAddress:
          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/PayoutQrV3TransactionResponseDoc'
      required:
        - externalReference
        - transactions
    ValidationErrorV3ResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        error:
          type: string
          example: Bad Request
        message:
          description: One item per invalid field.
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorPathV3Doc'
      required:
        - statusCode
        - error
        - message
    UnauthorizedResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: Unauthorized
      required:
        - statusCode
        - message
    AppErrorResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 503
        code:
          type: string
          enum:
            - QR_EXPIRED
            - TRANSACTION_REJECTED
            - ACH_PAYMENT_UNAVAILABLE
            - INSUFFICIENT_FUNDS
            - INTERNAL_SERVER_ERROR
            - PAYMENT_PROVIDER_UNAVAILABLE
            - TRANSACTION_NOT_FOUND
            - INTERNAL_ERROR_SERVER
          example: PAYMENT_PROVIDER_UNAVAILABLE
          description: Stable error code the partner can use to handle the case.
        message:
          type: string
          example: >-
            The payment provider is temporarily unavailable. Please try again
            later.
          description: Fixed English message associated with the code.
      required:
        - statusCode
        - code
        - message
    PayoutQrV3TransactionResponseDoc:
      type: object
      properties:
        transactionId:
          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:
        - transactionId
        - status
        - message
    ValidationErrorPathV3Doc:
      type: object
      properties:
        path:
          example:
            - transaction
            - bank_code
          description: Path of the rejected field within the request.
          type: array
          items:
            type: string
        message:
          type: string
          example: The value was rejected by the payment provider.
          description: Reason the field was rejected.
      required:
        - path
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtained from /v2/auth/login or /v3/auth/login

````

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