某 payout 通道的受益人表单结构
curl --request GET \
--url https://api.qbank.cl/platform/v1/payouts/beneficiary-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/payouts/beneficiary-schema"
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/payouts/beneficiary-schema', 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/beneficiary-schema",
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/payouts/beneficiary-schema"
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/payouts/beneficiary-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/beneficiary-schema")
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{
"country": "CL",
"method": "fintoc",
"lang": "zh",
"fields": [
{
"key": "name",
"label": "收款人姓名",
"kind": "text",
"placeholder": "Pedro Soto Fuentes"
},
{
"key": "tax_id",
"label": "RUT",
"kind": "text",
"placeholder": "12.345.678-5",
"hint": "将验证校验位",
"validator": "chilean_rut",
"error": "RUT 无效:请检查校验位"
},
{
"key": "bank_code",
"label": "银行",
"kind": "bank"
},
{
"key": "account_type",
"label": "账户类型",
"kind": "select",
"hint": "Cuenta RUT 属于活期账户(vista)",
"options": [
{
"value": "checking",
"label": "活期账户"
},
{
"value": "vista",
"label": "Vista 账户"
}
]
},
{
"key": "account_number",
"label": "账号",
"kind": "text",
"hint": "仅限数字",
"validator": "cl_account_number",
"error": "账号无效:仅限数字(最多 20 位)"
}
]
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "forbidden",
"message": "credentials required"
}某 payout 通道的受益人表单结构
某通道(国家 + 方式)受益人表单的纯数据字段描述,按渲染顺序排列。标签、占位符、提示和错误文本按请求的语言返回(?lang=en|es|zh,默认 en)。validator / validator_with_values 命名各前端实现的封闭客户端校验集——后端从不下发可执行校验,条件字段(show_if、required_if、validate_fn_when)对照实时表单求值。从处理核心透传的静态目录。全局方式(swift/sepa)通过通配符适配任何国家;请求的国家会原样返回。
GET
/
v1
/
payouts
/
beneficiary-schema
某 payout 通道的受益人表单结构
curl --request GET \
--url https://api.qbank.cl/platform/v1/payouts/beneficiary-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/payouts/beneficiary-schema"
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/payouts/beneficiary-schema', 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/beneficiary-schema",
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/payouts/beneficiary-schema"
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/payouts/beneficiary-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/beneficiary-schema")
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{
"country": "CL",
"method": "fintoc",
"lang": "zh",
"fields": [
{
"key": "name",
"label": "收款人姓名",
"kind": "text",
"placeholder": "Pedro Soto Fuentes"
},
{
"key": "tax_id",
"label": "RUT",
"kind": "text",
"placeholder": "12.345.678-5",
"hint": "将验证校验位",
"validator": "chilean_rut",
"error": "RUT 无效:请检查校验位"
},
{
"key": "bank_code",
"label": "银行",
"kind": "bank"
},
{
"key": "account_type",
"label": "账户类型",
"kind": "select",
"hint": "Cuenta RUT 属于活期账户(vista)",
"options": [
{
"value": "checking",
"label": "活期账户"
},
{
"value": "vista",
"label": "Vista 账户"
}
]
},
{
"key": "account_number",
"label": "账号",
"kind": "text",
"hint": "仅限数字",
"validator": "cl_account_number",
"error": "账号无效:仅限数字(最多 20 位)"
}
]
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "forbidden",
"message": "credentials required"
}