注册验证子域名
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "verify.acme.example"
}
'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains"
payload = { "domain": "verify.acme.example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'verify.acme.example'})
};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains', 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/account/verify-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'verify.acme.example'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/account/verify-domains"
payload := strings.NewReader("{\n \"domain\": \"verify.acme.example\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/v1/account/verify-domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"verify.acme.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"verify.acme.example\"\n}"
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "pending",
"tls_status": "pending",
"instructions": {
"cname_target": "custom-verify.cbpayapp.com",
"cname_host": "verify.acme.example",
"txt_host": "_cbpay-verify.verify.acme.example",
"txt_value": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
"note": "Point the CNAME (DNS-only, no proxy) and publish the TXT, then call verify. Propagation may take a few minutes."
},
"hint": "add the DNS records, wait for propagation, then call verify"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}注册验证子域名
注册自定义子域名(例如 verify.yourcompany.com),使创建的 KYC/KYB 链接使用该主机及品牌样式(品牌随 invite,不随主机)。返回 DNS 指引:指向 CNAME(仅 DNS、无代理)并发布 TXT,然后调用 verify。仅公司账户,owner 角色。每账户一个域名(v1):替换请先删除。409 domain_claimed 永不泄露当前所有者。环境未配置源站时返回 503 custom_domains_unavailable。
POST
/
v1
/
account
/
verify-domains
注册验证子域名
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "verify.acme.example"
}
'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains"
payload = { "domain": "verify.acme.example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'verify.acme.example'})
};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains', 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/account/verify-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'verify.acme.example'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/account/verify-domains"
payload := strings.NewReader("{\n \"domain\": \"verify.acme.example\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/v1/account/verify-domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"verify.acme.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"verify.acme.example\"\n}"
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "pending",
"tls_status": "pending",
"instructions": {
"cname_target": "custom-verify.cbpayapp.com",
"cname_host": "verify.acme.example",
"txt_host": "_cbpay-verify.verify.acme.example",
"txt_value": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
"note": "Point the CNAME (DNS-only, no proxy) and publish the TXT, then call verify. Propagation may take a few minutes."
},
"hint": "add the DNS records, wait for propagation, then call verify"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}