获取 POS 收款(POS 轮询)
curl --request GET \
--url https://api.qbank.cl/platform/v1/pos/charges/{chargeID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/pos/charges/{chargeID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/pos/charges/{chargeID}', 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/pos/charges/{chargeID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v1/pos/charges/{chargeID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/v1/pos/charges/{chargeID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/pos/charges/{chargeID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"charge_id": "66773a3a-9911-4482-ae3c-09a481aba018",
"payin_id": "bd3d88ca-af9c-4c05-a6f8-0982a2d187d5",
"status": "pending",
"confirming": true,
"detected_amount": "25.000000",
"amount": "25",
"settlement_asset": "USDT",
"crypto": "tron:usdt",
"due": "25.000000",
"received": "0.000000",
"address": "TC5SToDEigQtie7Crf9et7ui7zDsvdDHeG",
"qr_payload": "TC5SToDEigQtie7Crf9et7ui7zDsvdDHeG",
"merchant": {
"id": "d2875683-fc80-4c7b-876a-fb585d7c6982",
"name": "La Terraza Restaurant"
},
"expires_at": "2026-07-17T19:55:00Z"
}
获取 POS 收款(POS 轮询)
供 POS 轮询的收款详情。pending 期间,若链上入账已检测到但尚未确认,响应附加 confirming:true + detected_amount(仅 UX 信号 — 入账在确认后发生)。部分支付累计在 received;过期收款收到的迟到支付同样入账并在此显示。
GET
/
v1
/
pos
/
charges
/
{chargeID}
获取 POS 收款(POS 轮询)
curl --request GET \
--url https://api.qbank.cl/platform/v1/pos/charges/{chargeID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/pos/charges/{chargeID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/pos/charges/{chargeID}', 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/pos/charges/{chargeID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v1/pos/charges/{chargeID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/v1/pos/charges/{chargeID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/pos/charges/{chargeID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"charge_id": "66773a3a-9911-4482-ae3c-09a481aba018",
"payin_id": "bd3d88ca-af9c-4c05-a6f8-0982a2d187d5",
"status": "pending",
"confirming": true,
"detected_amount": "25.000000",
"amount": "25",
"settlement_asset": "USDT",
"crypto": "tron:usdt",
"due": "25.000000",
"received": "0.000000",
"address": "TC5SToDEigQtie7Crf9et7ui7zDsvdDHeG",
"qr_payload": "TC5SToDEigQtie7Crf9et7ui7zDsvdDHeG",
"merchant": {
"id": "d2875683-fc80-4c7b-876a-fb585d7c6982",
"name": "La Terraza Restaurant"
},
"expires_at": "2026-07-17T19:55:00Z"
}
授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
路径参数
响应
OK
可用选项:
pending, paid, expired Show child attributes
Show child attributes
Show child attributes
Show child attributes