预签名 KYB 文件上传
curl --request POST \
--url https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "legalPresence",
"filename": "vigencia.pdf",
"content_type": "application/pdf",
"file_size": 1204833
}
'import requests
url = "https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents"
payload = {
"category": "legalPresence",
"filename": "vigencia.pdf",
"content_type": "application/pdf",
"file_size": 1204833
}
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({
category: 'legalPresence',
filename: 'vigencia.pdf',
content_type: 'application/pdf',
file_size: 1204833
})
};
fetch('https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents', 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/kyb/submissions/{submissionID}/documents",
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([
'category' => 'legalPresence',
'filename' => 'vigencia.pdf',
'content_type' => 'application/pdf',
'file_size' => 1204833
]),
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/kyb/submissions/{submissionID}/documents"
payload := strings.NewReader("{\n \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\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/kyb/submissions/{submissionID}/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents")
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 \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\n}"
response = http.request(request)
puts response.read_body{
"upload_url": "https://storage.example.com/presigned/def",
"key": "public-api/2026/07/10/vigencia.pdf",
"expires_in": 900
}{
"error": "invalid_category",
"message": "category must be one of legalPresence, ownershipStructure, controlStructure, companyDetails"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}预签名 KYB 文件上传
与 KYC 文件相同的 3 步流程。类别:legalPresence、ownershipStructure、controlStructure、companyDetails。
POST
/
v1
/
kyb
/
submissions
/
{submissionID}
/
documents
预签名 KYB 文件上传
curl --request POST \
--url https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "legalPresence",
"filename": "vigencia.pdf",
"content_type": "application/pdf",
"file_size": 1204833
}
'import requests
url = "https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents"
payload = {
"category": "legalPresence",
"filename": "vigencia.pdf",
"content_type": "application/pdf",
"file_size": 1204833
}
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({
category: 'legalPresence',
filename: 'vigencia.pdf',
content_type: 'application/pdf',
file_size: 1204833
})
};
fetch('https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents', 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/kyb/submissions/{submissionID}/documents",
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([
'category' => 'legalPresence',
'filename' => 'vigencia.pdf',
'content_type' => 'application/pdf',
'file_size' => 1204833
]),
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/kyb/submissions/{submissionID}/documents"
payload := strings.NewReader("{\n \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\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/kyb/submissions/{submissionID}/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/kyb/submissions/{submissionID}/documents")
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 \"category\": \"legalPresence\",\n \"filename\": \"vigencia.pdf\",\n \"content_type\": \"application/pdf\",\n \"file_size\": 1204833\n}"
response = http.request(request)
puts response.read_body{
"upload_url": "https://storage.example.com/presigned/def",
"key": "public-api/2026/07/10/vigencia.pdf",
"expires_in": 900
}{
"error": "invalid_category",
"message": "category must be one of legalPresence, ownershipStructure, controlStructure, companyDetails"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
路径参数
请求体
application/json
最后修改于 2026年7月19日
⌘I