---
agentTools:
  projectIndex: https://mk-bank.readme.io/llms.txt
---

# Fetch dynamic qr code

This QR code can be used for bill payment purposes. When making a request to this endpoint, the response will return a base64 encoded string. Before generating the QR code, you must decode this string

> ❗ Pay attention!
>
> The response will return a **base64 encoded** string. You should to **decode** it before generating the qr code. You should decode this string before generating the QR code.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "MK Bank Account API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://core-h.mkbank.com.br/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pix/dynamic_qrc/{txid}": {
      "post": {
        "summary": "Fetch dynamic qr code",
        "description": "This QR code can be used for bill payment purposes. When making a request to this endpoint, the response will return a base64 encoded string. Before generating the QR code, you must decode this string",
        "operationId": "fetch-dynamic-qr-code",
        "parameters": [
          {
            "name": "txid",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"encoded_value\": \"MDAwMjAxMDEwMjEyMjY4NDAwMTRici5nb3YuYmNiLnBpeDI1NjJjb3JlLWgubWtiYW5rLmNvbS5ici9hcGkvY29idi9lYmE4YTJiYmM1NzQ0MjA1YjBiMjQ1ZjM3ZmUzMmMwYzUyMDQwMDAwNTMwMzk4NjU4MDJCUjU5MjVCUlVOTyBFRFVBUkRPIEFSQVVKTyBTT1VaNjAwOENVUklUSUJBNjIwNzA1MDMqKio2MzA0ODBGRg==\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "encoded_value": {
                      "type": "string",
                      "example": "MDAwMjAxMDEwMjEyMjY4NDAwMTRici5nb3YuYmNiLnBpeDI1NjJjb3JlLWgubWtiYW5rLmNvbS5ici9hcGkvY29idi9lYmE4YTJiYmM1NzQ0MjA1YjBiMjQ1ZjM3ZmUzMmMwYzUyMDQwMDAwNTMwMzk4NjU4MDJCUjU5MjVCUlVOTyBFRFVBUkRPIEFSQVVKTyBTT1VaNjAwOENVUklUSUJBNjIwNzA1MDMqKio2MzA0ODBGRg=="
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"errors.PIX_CHARGE_NOT_FOUND\",\n    \"code\": \"PIX_CHARGE_NOT_FOUND\",\n    \"data\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "errors.PIX_CHARGE_NOT_FOUND"
                    },
                    "code": {
                      "type": "string",
                      "example": "PIX_CHARGE_NOT_FOUND"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6297b52a229a9b00142bff3c:63c6c6fa5566680010596d42"
}
```