> ## Documentation Index
> Fetch the complete documentation index at: https://bmpdocs.moneyp.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# 15 - Consult QR Code on Hybrid Bill

> <p>Scopes:</p>
<b>api.pix api.qrcode.consultar</b>

Through this endpoint, the partner can consult a QR code that has already been made available on a given bill. In this case, it is a bill that allows hybrid payment, that is, both by barcode and QR Code.


## OpenAPI

````yaml get /api/QRCode/ConsultarByCodigoBoleto/{codigoBoleto}
openapi: 3.0.1
info:
  title: Api Externa BMP SPI
  description: '<p><strong>Build Number: </strong>#0.0</p>'
  version: v1
servers:
  - url: https://api.ext.pix.dbs.moneyp.com.br/
    description: Localhost
security:
  - Bearer: []
paths:
  /api/QRCode/ConsultarByCodigoBoleto/{codigoBoleto}:
    get:
      tags:
        - QRCode
      summary: Consulta um QR Code de Pagamento PIX associado a um Boleto Bancário.
      description: "<p>Scopes:</p>\r\n<b>api.pix api.qrcode.consultar</b>"
      parameters:
        - name: codigoBoleto
          in: path
          description: >-
            Identificador UUID do Boleto Bancário em que o QR Code deve ser
            consultado.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BMPSPB.Domain.Messaging.API.Pix.QRCode.ConsultarPorCodigoBoleto.ConsultarPorCodigoBoletoResponse
        '400':
          description: Erro de negócio
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
        '500':
          description: Erro interno do servidor
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
components:
  schemas:
    BMPSPB.Domain.Messaging.API.Pix.QRCode.ConsultarPorCodigoBoleto.ConsultarPorCodigoBoletoResponse:
      type: object
      properties:
        codigo:
          type: string
          format: uuid
        origemRegistro:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.ApiOrigem'
        dtInclusao:
          type: string
          format: date-time
        txId:
          type: string
          nullable: true
        dtVencimento:
          type: string
          format: date-time
        validadeAposVencimento:
          type: integer
          format: int32
        expiracao:
          type: integer
          format: int32
        chave:
          type: string
          nullable: true
        valor:
          type: number
          format: double
        solicitacaoPagador:
          type: string
          nullable: true
        cpfRecebedor:
          type: string
          nullable: true
        cnpjRecebedor:
          type: string
          nullable: true
        nomeRecebedor:
          type: string
          nullable: true
        nomeFantasiaRecebedor:
          type: string
          nullable: true
        logradouroRecebedor:
          type: string
          nullable: true
        cidadeRecebedor:
          type: string
          nullable: true
        ufRecebedor:
          type: string
          nullable: true
        cepRecebedor:
          type: string
          nullable: true
        cpfDevedor:
          type: string
          nullable: true
        cnpjDevedor:
          type: string
          nullable: true
        nomeDevedor:
          type: string
          nullable: true
        emailDevedor:
          type: string
          nullable: true
        logradouroDevedor:
          type: string
          nullable: true
        cidadeDevedor:
          type: string
          nullable: true
        ufDevedor:
          type: string
          nullable: true
        cepDevedor:
          type: string
          nullable: true
        nomeComerciante:
          type: string
          nullable: true
        cidadeComerciante:
          type: string
          nullable: true
        emv:
          type: string
          nullable: true
        url:
          type: string
          nullable: true
        imagem:
          type: string
          nullable: true
        situacao:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.SituacaoQRCode'
          nullable: true
      additionalProperties: false
    BMPSPB.Infra.Enums.ApiOrigem:
      enum:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 99
      type: integer
      description: ''
      format: int32
    BMPSPB.Infra.Enums.SituacaoQRCode:
      enum:
        - 1
        - 2
        - 3
      type: integer
      description: ''
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Copie 'Bearer ' + token
      name: Authorization
      in: header

````