> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Static QR Code Details

> Use this endpoint to retrieve a static Pix BR Code by its BTG id. The read is institution-wide: any code issued with the institution's BTG credentials is returned, whichever account created it, and `X-Account-Id` is not read.



## OpenAPI

````yaml /pt/openapi/v3-current/indirect-pix.yaml get /v1/brcode/static/{brcode_id}
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    API for Pix Indirect via BTG. It covers DICT keys and claims; MED infraction
    reports, fraud markers, refund requests, and funds recoveries; DICT
    statistics and reconciliation; Pix transfers, refunds, and schedules; static
    QR codes and QR code decoding; immediate and due-date collections; Pix
    Automático for the payer; transaction reports and TemposTransacoes
    statistics; and inbound and outbound webhook records.
  license:
    name: Lerian Studio General License
  title: Pix BTG API
  version: 1.14.0
servers:
  - url: https://api.example.com
    description: >-
      Replace the example host with the URL provided during environment
      onboarding.
security:
  - BearerAuth: []
paths:
  /v1/brcode/static/{brcode_id}:
    get:
      tags:
        - Static QR Codes
      summary: Retrieve Static QR Code Details
      description: >-
        Use this endpoint to retrieve a static Pix BR Code by its BTG id. The
        read is institution-wide: any code issued with the institution's BTG
        credentials is returned, whichever account created it, and
        `X-Account-Id` is not read.
      operationId: brcode-get-static
      parameters:
        - description: Static BR Code identifier
          in: path
          name: brcode_id
          required: true
          schema:
            description: Static BR Code identifier
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StaticBRCodeOutput'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Internal Server Error
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Error
components:
  schemas:
    StaticBRCodeOutput:
      additionalProperties: false
      properties:
        amount:
          description: Fixed payment amount (optional)
          examples:
            - '100.00'
          type: string
        base64:
          description: Base64-encoded QR code image (when requested)
          examples:
            - data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
          type: string
        createdAt:
          description: Timestamp when the BR Code was created
          examples:
            - '2024-01-15T10:30:00Z'
          type: string
        description:
          description: Custom message or description shown to the payer
          examples:
            - 'Payment for order #12345'
          type: string
        emv:
          description: QR code payload in EMV format
          examples:
            - 000201010212...
          type: string
        id:
          description: Unique identifier of the BR Code
          examples:
            - 550e8400-e29b-41d4-a716-446655440010
          type: string
        merchant:
          $ref: '#/components/schemas/StaticBRCodeMerchant'
          description: Merchant metadata for this BR Code
        receiverKey:
          description: Pix key that will receive the payment
          examples:
            - '+5511999999999'
          type: string
        tags:
          description: Array of custom tags for categorization
          examples:
            - - checkout
              - web
          items:
            type: string
          type: array
        txId:
          description: Transaction identification (txid) sent on the payment message
          examples:
            - ORDER-12345
          type: string
      required:
        - id
        - emv
        - receiverKey
        - createdAt
      type: object
    LegacyErrorBody:
      additionalProperties: false
      properties:
        code:
          type: string
        fields:
          additionalProperties:
            type: string
          type: object
        headers:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
        paths:
          additionalProperties:
            type: string
          type: object
        queryParams:
          additionalProperties:
            type: string
          type: object
        raw:
          type: string
        title:
          type: string
      required:
        - code
        - title
        - message
      type: object
    StaticBRCodeMerchant:
      additionalProperties: false
      properties:
        categoryCode:
          description: Merchant category code (MCC)
          examples:
            - '5411'
          type: string
        city:
          description: City where the merchant is located
          examples:
            - São Paulo
          type: string
        name:
          description: Name of the merchant
          examples:
            - Loja ABC
          type: string
        postalCode:
          description: Postal code (CEP) of the merchant
          examples:
            - '01310000'
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

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