curl --request POST \
--url https://api.public.firebanking.com.br/api/pix/cash-out-qrcode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": 15.5,
"qrCode": "00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD",
"externalId": "QRPAY-987654-20240119",
"description": "Pagamento fornecedor XYZ via QR Code",
"name": "Destinatario Ltda",
"document": "12345678000190"
}
'import requests
url = "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode"
payload = {
"value": 15.5,
"qrCode": "00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD",
"externalId": "QRPAY-987654-20240119",
"description": "Pagamento fornecedor XYZ via QR Code",
"name": "Destinatario Ltda",
"document": "12345678000190"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: 15.5,
qrCode: '00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD',
externalId: 'QRPAY-987654-20240119',
description: 'Pagamento fornecedor XYZ via QR Code',
name: 'Destinatario Ltda',
document: '12345678000190'
})
};
fetch('https://api.public.firebanking.com.br/api/pix/cash-out-qrcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'value' => 15.5,
'qrCode' => '00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD',
'externalId' => 'QRPAY-987654-20240119',
'description' => 'Pagamento fornecedor XYZ via QR Code',
'name' => 'Destinatario Ltda',
'document' => '12345678000190'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode"
payload := strings.NewReader("{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.public.firebanking.com.br/api/pix/cash-out-qrcode")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.public.firebanking.com.br/api/pix/cash-out-qrcode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}"
response = http.request(request)
puts response.read_body{
"transactionId": "456",
"externalId": "QRPAY-987654-20240119",
"status": "PENDING",
"generateTime": "2024-01-19T14:30:00.000Z"
}Realizar pagamento PIX via QR Code (Cash-Out QR Code)
Requer token Bearer no header Authorization. Envia um pagamento PIX a partir de um QR Code escaneado ou copiado (copia-e-cola). O QR Code deve seguir o padrão EMV PIX do Banco Central.
curl --request POST \
--url https://api.public.firebanking.com.br/api/pix/cash-out-qrcode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": 15.5,
"qrCode": "00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD",
"externalId": "QRPAY-987654-20240119",
"description": "Pagamento fornecedor XYZ via QR Code",
"name": "Destinatario Ltda",
"document": "12345678000190"
}
'import requests
url = "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode"
payload = {
"value": 15.5,
"qrCode": "00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD",
"externalId": "QRPAY-987654-20240119",
"description": "Pagamento fornecedor XYZ via QR Code",
"name": "Destinatario Ltda",
"document": "12345678000190"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: 15.5,
qrCode: '00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD',
externalId: 'QRPAY-987654-20240119',
description: 'Pagamento fornecedor XYZ via QR Code',
name: 'Destinatario Ltda',
document: '12345678000190'
})
};
fetch('https://api.public.firebanking.com.br/api/pix/cash-out-qrcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'value' => 15.5,
'qrCode' => '00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD',
'externalId' => 'QRPAY-987654-20240119',
'description' => 'Pagamento fornecedor XYZ via QR Code',
'name' => 'Destinatario Ltda',
'document' => '12345678000190'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.public.firebanking.com.br/api/pix/cash-out-qrcode"
payload := strings.NewReader("{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.public.firebanking.com.br/api/pix/cash-out-qrcode")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.public.firebanking.com.br/api/pix/cash-out-qrcode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": 15.5,\n \"qrCode\": \"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD\",\n \"externalId\": \"QRPAY-987654-20240119\",\n \"description\": \"Pagamento fornecedor XYZ via QR Code\",\n \"name\": \"Destinatario Ltda\",\n \"document\": \"12345678000190\"\n}"
response = http.request(request)
puts response.read_body{
"transactionId": "456",
"externalId": "QRPAY-987654-20240119",
"status": "PENDING",
"generateTime": "2024-01-19T14:30:00.000Z"
}Autorizações
Enter JWT token
Corpo
Valor do pagamento em reais (até duas casas decimais). Deve corresponder ao valor embutido no QR Code, quando presente.
15.5
Conteúdo do QR Code PIX (string EMV). Mínimo 50 caracteres, máximo 500. Deve iniciar com '000201'.
50 - 500"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890520400005303986540515.505802BR5925DESTINATARIO LTDA6009SAO PAULO62070503***6304ABCD"
Identificador externo único para a transação
"QRPAY-987654-20240119"
Descrição opcional do pagamento
"Pagamento fornecedor XYZ via QR Code"
Nome do destinatário (opcional, pode estar embutido no QR Code)
"Destinatario Ltda"
CPF ou CNPJ do destinatário (opcional, pode estar embutido no QR Code)
"12345678000190"
Resposta
Pagamento PIX via QR Code iniciado com sucesso
Identificador interno da transação gerada
"456"
Identificador externo informado na requisição
"QRPAY-987654-20240119"
Status atual da transação
PENDING, CONFIRMED, ERROR "PENDING"
Data/hora de geração da transação (ISO 8601)
"2024-01-19T14:30:00.000Z"