生成结账支付选项(公开)
curl --request POST \
--url https://api.qbank.cl/platform/pay/{token}/methods/{method}import requests
url = "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/pay/{token}/methods/{method}', 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}/methods/{method}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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}/methods/{method}"
req, _ := http.NewRequest("POST", url, nil)
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/pay/{token}/methods/{method}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"method": "crypto:btc:btc",
"payload": {
"method": "crypto:btc:btc",
"chain": "btc",
"asset": "BTC",
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"due": "0.00046120",
"received": "0.00000000",
"qr_payload": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"qr_png_base64": "iVBORw0KGgo…",
"quote_expires_at": "2026-07-16T18:15:00Z",
"note": "send the exact amount to the address; the payment is confirmed on-chain automatically"
}
}
生成结账支付选项(公开)
延迟创建付款人在通用收款链接上选择的支付选项并返回其指引 — 银行卡/托管方式的支付 URL、二维码方式的二维码、银行转账的申报参考码,或带精确报价金额和可扫描二维码的专属加密货币 充值地址(qr_payload + qr_png_base64 — 始终为 BTC/TRON/ETH 的裸地址, 钱包与交易所可直接读取;Binance 等会拒绝 BIP-21/EIP-681 URI)。法币方式必须传 ?country=XX;本地金额在此刻报价并冻结。当国家以多种 币种提供同一方式时(见报价的 options[] — 例如 BOB 和 USD 的二维码,或银行卡通道)还须传 ¤cy=YYY;每种币种是独立的支付选项。墨西哥的银行转账会为该链接签发一个专属 CLABE (destination 中 dedicated: true):付款人只需转账精确金额,无需填写参考码 — 入账自动路由到该链接。若无法签发专属账户,payload 会降级为传统方式(商户账户 + 转账附言中必填 reference)。对同一 国家+币种+方式重复 POST 返回相同的结果;在无人支付前,选择某个方式不会锁定其他方式。 无需凭证;按 IP 限流。拉取式收款(collect: true)在所选走廊提供时 可用;最终 collect 会在扣款前执行 screening,并可能返回 202 in_review。报价中标有 payer_required: true 的托管跳转方式需在 POST body 中提供 payer_name 与 payer_document;其他方式忽略 body。
POST
/
pay
/
{token}
/
methods
/
{method}
生成结账支付选项(公开)
curl --request POST \
--url https://api.qbank.cl/platform/pay/{token}/methods/{method}import requests
url = "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/pay/{token}/methods/{method}', 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}/methods/{method}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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}/methods/{method}"
req, _ := http.NewRequest("POST", url, nil)
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/pay/{token}/methods/{method}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"method": "crypto:btc:btc",
"payload": {
"method": "crypto:btc:btc",
"chain": "btc",
"asset": "BTC",
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"due": "0.00046120",
"received": "0.00000000",
"qr_payload": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"qr_png_base64": "iVBORw0KGgo…",
"quote_expires_at": "2026-07-16T18:15:00Z",
"note": "send the exact amount to the address; the payment is confirmed on-chain automatically"
}
}
路径参数
查询参数
响应
所选支付方式的指引。