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

# Fetch QR Code data

The Fetch QR Code Data endpoint allows you to retrieve information associated with a QR code. By providing the encoded value of the QR code, you can obtain details such as the Pix key, validation code, participant information, and transaction amount.

# 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/qrc_data": {
      "post": {
        "summary": "Fetch QR Code data",
        "description": "The Fetch QR Code Data endpoint allows you to retrieve information associated with a QR code. By providing the encoded value of the QR code, you can obtain details such as the Pix key, validation code, participant information, and transaction amount.",
        "operationId": "fetch-qr-code-data",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "encoded_value"
                ],
                "properties": {
                  "encoded_value": {
                    "type": "string",
                    "description": "QR Code converted to Base64."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"key\": {\n        \"key\": \"83580f48-0d9f-4581-8c73-b0f6919a6af9\",\n        \"key_type\": \"EVP\",\n        \"document_number\": \"**.*00.000/0001-**\",\n        \"name\": \"João teste\",\n        \"participant\": \"MK DIGITAL \"\n    },\n    \"validation_code\": \"fgWaqfHRrB0Ya3vUv9hhllP6l4D5KLH3s2Fznrl5qSNkwSlcwQFQ7PaGkaLa\",\n    \"amount\": 24.6,\n    \"original_amount\": 25.9,\n    \"fine\": 0,\n    \"interest\": 0,\n    \"discount\": 1.3,\n    \"static\": false,\n    \"dynamic\": true,\n    \"txid\": \"d71e678828524f578g57744g832g5211\",\n    \"additional_information\": [],\n    \"payer_request\": \"Pagemento de divida\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "example": "83580f48-0d9f-4581-8c73-b0f6919a6af9"
                        },
                        "key_type": {
                          "type": "string",
                          "example": "EVP"
                        },
                        "document_number": {
                          "type": "string",
                          "example": "**.*00.000/0001-**"
                        },
                        "name": {
                          "type": "string",
                          "example": "João teste"
                        },
                        "participant": {
                          "type": "string",
                          "example": "MK DIGITAL "
                        }
                      }
                    },
                    "validation_code": {
                      "type": "string",
                      "example": "fgWaqfHRrB0Ya3vUv9hhllP6l4D5KLH3s2Fznrl5qSNkwSlcwQFQ7PaGkaLa"
                    },
                    "amount": {
                      "type": "number",
                      "example": 24.6,
                      "default": 0
                    },
                    "original_amount": {
                      "type": "number",
                      "example": 25.9,
                      "default": 0
                    },
                    "fine": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "interest": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "discount": {
                      "type": "number",
                      "example": 1.3,
                      "default": 0
                    },
                    "static": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "dynamic": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "txid": {
                      "type": "string",
                      "example": "d71e678828524f578g57744g832g5211"
                    },
                    "additional_information": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "payer_request": {
                      "type": "string",
                      "example": "Pagemento de divida"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"QR Code inválido\",\n    \"code\": \"INVALID_QR_CODE\",\n    \"data\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "QR Code inválido"
                    },
                    "code": {
                      "type": "string",
                      "example": "INVALID_QR_CODE"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6297b52a229a9b00142bff3c:62a780c52436ab012aa581db"
}
```