订阅某主体的监控
curl --request PUT \
--url https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"only_material": true,
"monitor_since_score": 500
}
'import requests
url = "https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring"
payload = {
"only_material": True,
"monitor_since_score": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({only_material: true, monitor_since_score: 500})
};
fetch('https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring', 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/qscore/subjects/{docID}/monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'only_material' => true,
'monitor_since_score' => 500
]),
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/qscore/subjects/{docID}/monitoring"
payload := strings.NewReader("{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}"
response = http.request(request)
puts response.read_body{
"monitoring_id": "7c9e2f14-5b6a-4c8d-9e1f-3a7b5c2d8e91",
"subject_id": "8f5fb0d2-1d45-4a0e-9d5c-2d39f2b7a112",
"active": true,
"only_material": true,
"created_at": "2026-08-08T16:11:40Z",
"doc_id": "12.345.678-5",
"country": "CL",
"subject_type": "person",
"monitor_since_score": 500
}{
"error": "invalid_payload",
"message": "monitor_since_score must be between 1 and 999"
}{
"error": "report_required",
"message": "purchase a report for this subject before enabling monitoring"
}订阅某主体的监控
为你的账户创建或更新对某主体(个人或企业)的监控订阅。监控免费,但要求你的组织已购买该主体的 ready 报告——订阅的基线数据来自该已购报告。设计上(防预言机),不存在的主体与存在但未购报告的主体返回完全相同的 403 report_required 响应:本端点绝不会泄露某个证件号是否存在于信用局中。
订阅按(账户、主体)幂等:重复创建会返回已存在的订阅并保留其基线。only_material(默认 false)将 new_records 触发器限制为重大负面记录(未结催收、被拒付票据、破产、诉讼)。 monitor_since_score(1..999)配置 score_drop_below 触发器:当评分跌破该阈值时发出告警。
PUT
/
v1
/
qscore
/
subjects
/
{docID}
/
monitoring
订阅某主体的监控
curl --request PUT \
--url https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"only_material": true,
"monitor_since_score": 500
}
'import requests
url = "https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring"
payload = {
"only_material": True,
"monitor_since_score": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({only_material: true, monitor_since_score: 500})
};
fetch('https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring', 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/qscore/subjects/{docID}/monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'only_material' => true,
'monitor_since_score' => 500
]),
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/qscore/subjects/{docID}/monitoring"
payload := strings.NewReader("{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/qscore/subjects/{docID}/monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"only_material\": true,\n \"monitor_since_score\": 500\n}"
response = http.request(request)
puts response.read_body{
"monitoring_id": "7c9e2f14-5b6a-4c8d-9e1f-3a7b5c2d8e91",
"subject_id": "8f5fb0d2-1d45-4a0e-9d5c-2d39f2b7a112",
"active": true,
"only_material": true,
"created_at": "2026-08-08T16:11:40Z",
"doc_id": "12.345.678-5",
"country": "CL",
"subject_type": "person",
"monitor_since_score": 500
}{
"error": "invalid_payload",
"message": "monitor_since_score must be between 1 and 999"
}{
"error": "report_required",
"message": "purchase a report for this subject before enabling monitoring"
}最后修改于 2026年8月22日
⌘I