通用收款状态(公开)
curl --request GET \
--url https://api.qbank.cl/platform/pay/{token}/stateimport requests
url = "https://api.qbank.cl/platform/pay/{token}/state"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/pay/{token}/state', 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}/state",
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}/state"
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}/state")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/state")
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",
"description": "Order 8841",
"expires_at": "2026-07-17T17:57:44Z",
"fiat_methods": [
{
"method": "qr",
"country": "MX",
"currency": "MXN",
"local_amount": "941.00"
}
],
"crypto": [
{
"method": "crypto:tron:usdt",
"chain": "tron",
"asset": "USDT",
"address": "TWkfyUCXSdRfNHrRc9CJisFLYd6Ha3XWvS",
"due": "50.000000",
"received": "5.000000"
}
]
}
通用收款状态(公开)
通用收款链接的 JSON 状态 — 供页面自身轮询,也供在同一链接上渲染自有支付前端的集成方使用。 显示状态、结算资产与金额、支付完成后的获胜方式、已冻结的法币报价(fiat_methods)、每个加密货币 充值地址的实时进度(应付金额与已收金额)以及自动兑换的 conversion_status。 无需凭证;按 IP 限流。
GET
/
pay
/
{token}
/
state
通用收款状态(公开)
curl --request GET \
--url https://api.qbank.cl/platform/pay/{token}/stateimport requests
url = "https://api.qbank.cl/platform/pay/{token}/state"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/pay/{token}/state', 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}/state",
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}/state"
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}/state")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/state")
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",
"description": "Order 8841",
"expires_at": "2026-07-17T17:57:44Z",
"fiat_methods": [
{
"method": "qr",
"country": "MX",
"currency": "MXN",
"local_amount": "941.00"
}
],
"crypto": [
{
"method": "crypto:tron:usdt",
"chain": "tron",
"asset": "USDT",
"address": "TWkfyUCXSdRfNHrRc9CJisFLYd6Ha3XWvS",
"due": "50.000000",
"received": "5.000000"
}
]
}
路径参数
嵌入在 checkout_url 中的不透明结账令牌。
响应
收款链接的当前状态。
最后修改于 2026年7月18日
⌘I