扫描 payout QR(玻利维亚、巴西)
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"
}扫描 payout QR(玻利维亚、巴西)
QR payout 第 1 步——玻利维亚(本地互通 QR)与巴西(PIX QR,含 “copia e cola” 代码):读取收款 QR 并返回收款人数据及确认所需的 provider_reference。免费——确认步骤之前不会有任何扣款。默认玻利维亚;巴西请传 country: "BR" 和 currency: "BRL"。巴西支持静态 PIX 二维码(内嵌收款密钥);动态二维码(载荷为 PSP URL)返回 400——请向收款人索取其 PIX 密钥并改用 pix 方式。扫码响应中 amount 为空表示该二维码为开放金额。
POST
/
v1
/
payouts
/
qr
/
scan
扫描 payout QR(玻利维亚、巴西)
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"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
请求体
application/json
最后修改于 2026年7月18日
⌘I