Escanear un QR de payout (Bolivia, Brasil)
curl --request POST \
--url https://api.qbank.cl/platform/v1/payouts/qr/scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"qr_payload": "<QR content>",
"currency": "BOB"
}
'import requests
url = "https://api.qbank.cl/platform/v1/payouts/qr/scan"
payload = {
"qr_payload": "<QR content>",
"currency": "BOB"
}
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({qr_payload: '<QR content>', currency: 'BOB'})
};
fetch('https://api.qbank.cl/platform/v1/payouts/qr/scan', 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.qbank.cl/platform/v1/payouts/qr/scan",
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([
'qr_payload' => '<QR content>',
'currency' => 'BOB'
]),
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.qbank.cl/platform/v1/payouts/qr/scan"
payload := strings.NewReader("{\n \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\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.qbank.cl/platform/v1/payouts/qr/scan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/qr/scan")
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 \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\n}"
response = http.request(request)
puts response.read_body{
"scan_id": "5c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"provider_reference": "QR-REF-889923",
"beneficiary_name": "Juan Quispe",
"destination_account": "****4521",
"amount": "700.00",
"currency": "BOB",
"glosa": "",
"status": "scanned"
}{
"error": "invalid_qr_payload",
"message": "dynamic pix qr codes are not supported yet: pay with method pix using the beneficiary pix key"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}{
"error": "core_unavailable",
"message": "could not scan the QR"
}Escanear un QR de payout (Bolivia, Brasil)
Paso 1 del payout por QR — Bolivia (QR interoperable local) y Brasil (QR PIX, incluyendo el código “copia e cola”): lee un QR de cobro y devuelve los datos del destinatario más el provider_reference necesario para confirmar. Sin costo — no se debita nada hasta el paso de confirmación. Por defecto es Bolivia; para Brasil envía country: "BR" y currency: "BRL". Brasil soporta QR PIX estáticos (con la llave embebida); un QR dinámico (payload con URL del PSP) responde 400 — pide al beneficiario su llave PIX y usa el método pix. Un amount vacío en la respuesta del scan significa QR de monto abierto.
POST
/
v1
/
payouts
/
qr
/
scan
Escanear un QR de payout (Bolivia, Brasil)
curl --request POST \
--url https://api.qbank.cl/platform/v1/payouts/qr/scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"qr_payload": "<QR content>",
"currency": "BOB"
}
'import requests
url = "https://api.qbank.cl/platform/v1/payouts/qr/scan"
payload = {
"qr_payload": "<QR content>",
"currency": "BOB"
}
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({qr_payload: '<QR content>', currency: 'BOB'})
};
fetch('https://api.qbank.cl/platform/v1/payouts/qr/scan', 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.qbank.cl/platform/v1/payouts/qr/scan",
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([
'qr_payload' => '<QR content>',
'currency' => 'BOB'
]),
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.qbank.cl/platform/v1/payouts/qr/scan"
payload := strings.NewReader("{\n \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\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.qbank.cl/platform/v1/payouts/qr/scan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/qr/scan")
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 \"qr_payload\": \"<QR content>\",\n \"currency\": \"BOB\"\n}"
response = http.request(request)
puts response.read_body{
"scan_id": "5c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"provider_reference": "QR-REF-889923",
"beneficiary_name": "Juan Quispe",
"destination_account": "****4521",
"amount": "700.00",
"currency": "BOB",
"glosa": "",
"status": "scanned"
}{
"error": "invalid_qr_payload",
"message": "dynamic pix qr codes are not supported yet: pay with method pix using the beneficiary pix key"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}{
"error": "core_unavailable",
"message": "could not scan the QR"
}Autorizaciones
JWT de sesión (de register/login) o llave de API (pk_...).
X-API-Key: <token> se acepta como header alternativo.
Cuerpo
application/json