选择前报价收款链接(公开)
curl --request GET \
--url https://api.qbank.cl/platform/pay/{token}/quoteimport requests
url = "https://api.qbank.cl/platform/pay/{token}/quote"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/pay/{token}/quote', 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/pay/{token}/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/pay/{token}/quote"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/pay/{token}/quote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "pending",
"settlement_asset": "USDT",
"asset_amount": "50",
"countries": [
{
"country": "BO",
"currency": "BOB",
"methods": [
"qr"
],
"options": [
{
"method": "qr",
"currency": "BOB"
},
{
"method": "qr",
"currency": "USD"
}
]
},
{
"country": "VE",
"currency": "VES",
"methods": [],
"options": [
{
"method": "c2p",
"currency": "VES",
"collect": true
},
{
"method": "debito_inmediato",
"currency": "VES",
"collect": true
}
]
},
{
"country": "CL",
"currency": "CLP",
"methods": [
"bank_transfer",
"fintoc"
],
"options": [
{
"method": "bank_transfer",
"currency": "CLP"
},
{
"method": "fintoc",
"currency": "CLP"
}
]
}
],
"cards": [
{
"country": "BO",
"currency": "BOB",
"local_amount": "543.30"
},
{
"country": "BO",
"currency": "USD",
"local_amount": "50.75"
}
],
"crypto": [
{
"method": "crypto:tron:usdt",
"chain": "tron",
"asset": "USDT",
"due": "50.000000"
},
{
"method": "crypto:btc:btc",
"chain": "btc",
"asset": "BTC",
"due": "0.00046120",
"quote_ttl_seconds": 900
}
],
"cbpay": {
"alias": "tayl.code",
"dues": {
"USDT": "50.000000",
"USDC": "50.100200",
"BTC": "0.00046120",
"GOLD": "0.462100"
}
},
"country_quote": {
"country": "BO",
"currency": "BOB",
"methods": [
"qr"
],
"local_amount": "543.30",
"options": [
{
"method": "qr",
"currency": "BOB",
"local_amount": "543.30"
},
{
"method": "qr",
"currency": "USD",
"local_amount": "50.75"
}
]
}
}{
"error": "not_found",
"message": "payment link not found"
}{
"error": "country_unavailable",
"message": "no payment methods are available for that country"
}{
"error": "too_many_attempts",
"message": "too many requests; wait a moment and retry"
}{
"error": "pricing_unavailable",
"message": "pricing is temporarily unavailable; retry in a moment"
}选择前报价收款链接(公开)
在生成支付选项前获取通用收款链接的指示性报价 — 有可用法币方式的国家目录(不含银行卡, 见 cards)、在 cards[] 中按国家+币种单独列出的银行卡选项及其报价应付金额(同一通道可能接受 多种扣款币种,例如 BOB 和 USD)、每个加密货币选项的应付金额(付款资产与结算资产不同时已含兑换 成本),以及按已启用余额列出的 CBPay 直接付款金额。每个国家在 options[] 中列出其通道 — 每个方式+币种一行(同一国家可能以多种币种提供同一方式,例如 BOB 和 USD 的二维码),拉取式 方式带 collect: true(需要付款人在页面上填写数据,见 POST /pay/{token}/collect)。 传 ?country=XX 时额外返回该国家每个选项的本地报价金额。最终报价在生成支付选项时冻结。 无需凭证;按 IP 限流。
GET
/
pay
/
{token}
/
quote
选择前报价收款链接(公开)
curl --request GET \
--url https://api.qbank.cl/platform/pay/{token}/quoteimport requests
url = "https://api.qbank.cl/platform/pay/{token}/quote"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/pay/{token}/quote', 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/pay/{token}/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/pay/{token}/quote"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/pay/{token}/quote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "pending",
"settlement_asset": "USDT",
"asset_amount": "50",
"countries": [
{
"country": "BO",
"currency": "BOB",
"methods": [
"qr"
],
"options": [
{
"method": "qr",
"currency": "BOB"
},
{
"method": "qr",
"currency": "USD"
}
]
},
{
"country": "VE",
"currency": "VES",
"methods": [],
"options": [
{
"method": "c2p",
"currency": "VES",
"collect": true
},
{
"method": "debito_inmediato",
"currency": "VES",
"collect": true
}
]
},
{
"country": "CL",
"currency": "CLP",
"methods": [
"bank_transfer",
"fintoc"
],
"options": [
{
"method": "bank_transfer",
"currency": "CLP"
},
{
"method": "fintoc",
"currency": "CLP"
}
]
}
],
"cards": [
{
"country": "BO",
"currency": "BOB",
"local_amount": "543.30"
},
{
"country": "BO",
"currency": "USD",
"local_amount": "50.75"
}
],
"crypto": [
{
"method": "crypto:tron:usdt",
"chain": "tron",
"asset": "USDT",
"due": "50.000000"
},
{
"method": "crypto:btc:btc",
"chain": "btc",
"asset": "BTC",
"due": "0.00046120",
"quote_ttl_seconds": 900
}
],
"cbpay": {
"alias": "tayl.code",
"dues": {
"USDT": "50.000000",
"USDC": "50.100200",
"BTC": "0.00046120",
"GOLD": "0.462100"
}
},
"country_quote": {
"country": "BO",
"currency": "BOB",
"methods": [
"qr"
],
"local_amount": "543.30",
"options": [
{
"method": "qr",
"currency": "BOB",
"local_amount": "543.30"
},
{
"method": "qr",
"currency": "USD",
"local_amount": "50.75"
}
]
}
}{
"error": "not_found",
"message": "payment link not found"
}{
"error": "country_unavailable",
"message": "no payment methods are available for that country"
}{
"error": "too_many_attempts",
"message": "too many requests; wait a moment and retry"
}{
"error": "pricing_unavailable",
"message": "pricing is temporarily unavailable; retry in a moment"
}最后修改于 2026年7月19日
⌘I