> For the complete documentation index, see [llms.txt](https://docs.brasilcashbank.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.brasilcashbank.com/qrcode/pix-qr-code-details.md). Agents can also search and read this documentation through its [MCP server](https://docs.brasilcashbank.com/~gitbook/mcp).

# PIX QR Code Details

A guided walkthrough that takes you from an empty workspace to a configured, deployed project.

In

tegration and Implementation Guide

{% hint style="info" %}
URL\_BASE: [https://api-payments.brasilcashbank.com](https://api-payments.brasilcashbank.com/)
{% endhint %}

#### 1. Overview

This document describes how to integrate with the PIX QR Code Information API provided by BrasilCash.

The API allows merchants and payment platforms to submit a PIX QR Code and retrieve information associated with the payment code.

#### 2. API Endpoint

<table><thead><tr><th width="292">Property</th><th>Value</th></tr></thead><tbody><tr><td>HTTP Method</td><td>POST</td></tr><tr><td>Endpoint</td><td><code>https://api-payments.brasilcashbank.com/pix/qrc/info</code></td></tr><tr><td>Content-Type</td><td><code>application/json</code></td></tr><tr><td>Authorization</td><td>Bearer <code class="expression">access_token</code></td></tr></tbody></table>

#### 3. Authentication

The API requires a {{access\_token}} header to identify and authorize the integration. [Auth Token](broken://pages/TbLfCloEyduZHAxGJhEy)

#### 4. Request Parameters

The request body must be sent in JSON format.

**Request Body:**

json

```
{
    "qrcode": "PIX_QR_CODE_CONTENT",
    "id": "2312"
}
```

| Parameter | Type   | Required | Description                                              |
| --------- | ------ | -------- | -------------------------------------------------------- |
| qrcode    | String | Yes      | Complete PIX QR Code content to be processed by the API. |
| id        | String | No       |                                                          |

{% tabs %}
{% tab title="C#" %}
{% code expandable="true" %}

```csharp
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, URL_BASE + "/pix/qrc/info");
request.Headers.Add("Authorization", "Bearer {{access_token}}");
var content = new StringContent("{\n    \"qrcode\": \"00020126850014br.gov.bcb.pix2563pix.onlyup.com.br/qr/v3/at/842f0eda-4442-4629-aa07-cae2a5ab76705204000053039865802BR5916GAMES_WORLD_LTDA6013FLORIANOPOLIS62070503***63049742\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());

```

{% endcode %}
{% endtab %}

{% tab title="Javascript" %}
{% code expandable="true" %}

```javascript
const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer {{access_token}}");
myHeaders.append("Content-Type", "application/json");

const raw = JSON.stringify({
  "qrcode": "00020126850014br.gov.bcb.pix2563pix.onlyup.com.br/qr/v3/at/842f0eda-4442-4629-aa07-cae2a5ab76705204000053039865802BR5916GAMES_WORLD_LTDA6013FLORIANOPOLIS62070503***63049742"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch(URL_BASE + "/pix/qrc/info", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
```

{% endcode %}
{% endtab %}

{% tab title="Node.js (AXIOS)" %}
{% code expandable="true" %}

```typescript
const axios = require('axios');
let data = JSON.stringify({
  "qrcode": "00020126850014br.gov.bcb.pix2563pix.onlyup.com.br/qr/v3/at/842f0eda-4442-4629-aa07-cae2a5ab76705204000053039865802BR5916GAMES_WORLD_LTDA6013FLORIANOPOLIS62070503***63049742"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: URL_BASE + '/pix/qrc/info',
  headers: { 
    'client_id': 'skaoskoskos293829100', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

{% endcode %}
{% endtab %}

{% tab title="PHP" %}
{% code expandable="true" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => URL_BASE + '/pix/qrc/info',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "qrcode": "00020126850014br.gov.bcb.pix2563pix.onlyup.com.br/qr/v3/at/842f0eda-4442-4629-aa07-cae2a5ab76705204000053039865802BR5916GAMES_WORLD_LTDA6013FLORIANOPOLIS62070503***63049742"
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{access_token}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code expandable="true" %}

```python
import http.client
import json

conn = http.client.HTTPSConnection(URL_BASE)
payload = json.dumps({
  "qrcode": "00020126850014br.gov.bcb.pix2563pix.onlyup.com.br/qr/v3/at/842f0eda-4442-4629-aa07-cae2a5ab76705204000053039865802BR5916GAMES_WORLD_LTDA6013FLORIANOPOLIS62070503***63049742"
})
headers = {
  'Authorization': 'Bearer {{access_token}}',
  'Content-Type': 'application/json'
}
conn.request("POST", "/pix/qrc/info", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

{% endcode %}
{% endtab %}
{% endtabs %}

<details>

<summary> 🟢 200 - S<strong>uccessfully</strong></summary>

<sub>Response body</sub>

```javascript
{
    "success": true,
    "data": {
        "success": true,
        "type": "dynamic",
        "status": "ativa",
        "txid": "58KmdjHHo2e44d3bd6abc4dd7a8f142",
        "amount": 400,
        "merchantName": "PAYGO HUB LTDA",
        "merchantDocument": "",
        "date": "05/10/2026 20:15",
        "date_expiration": "06/10/2026 20:15",
        "changeType": false
    }
}
```

</details>

<details>

<summary>🔴400 - Bad request</summary>

</details>

<details>

<summary>🔴401 - Unauthorized</summary>

</details>

<details>

<summary>🔴500 - Internal server error</summary>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.brasilcashbank.com/qrcode/pix-qr-code-details.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
