启用或停用 AML 监控
curl --request PATCH \
--url https://api.qbank.cl/platform/v1/aml/monitoring \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"idempotency_key": "aml-monitor-enable-1"
}
'import requests
url = "https://api.qbank.cl/platform/v1/aml/monitoring"
payload = {
"enabled": True,
"idempotency_key": "aml-monitor-enable-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, idempotency_key: 'aml-monitor-enable-1'})
};
fetch('https://api.qbank.cl/platform/v1/aml/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/aml/monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'idempotency_key' => 'aml-monitor-enable-1'
]),
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/aml/monitoring"
payload := strings.NewReader("{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.qbank.cl/platform/v1/aml/monitoring")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/aml/monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}"
response = http.request(request)
puts response.read_body{
"screening_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
"kind": "monitoring",
"service": "compliance_monitoring",
"monitor": true,
"monitoring_enabled": true,
"screening_fee": "1.000000",
"fee_asset": "USDT",
"idempotency_key": "aml-monitor-enable-1",
"created_at": "2026-07-12T20:00:00Z",
"compliance_service": "compliance_monitoring",
"compliance_fee": "1.000000"
}{
"error": "idempotency_key_required",
"message": "provide idempotency_key (body or Idempotency-Key header)",
"compliance_fee": "0.500000"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation"
}{
"error": "no_screening",
"message": "account has no AML screening to monitor"
}启用或停用 AML 监控
切换账户已验证身份的持续合规监控。启用时若配置则收取 compliance_monitoring 费用;停用免费。需先有筛查记录。 每次状态变更写入审计历史(GET /v1/aml/screenings,筛选 kind monitoring)。状态实际变更时 必须提供 idempotency_key——相同键重放返回原事件且 idempotency_hit true。若已是目标状态则返回 unchanged true 且不扣费。
PATCH
/
v1
/
aml
/
monitoring
启用或停用 AML 监控
curl --request PATCH \
--url https://api.qbank.cl/platform/v1/aml/monitoring \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"idempotency_key": "aml-monitor-enable-1"
}
'import requests
url = "https://api.qbank.cl/platform/v1/aml/monitoring"
payload = {
"enabled": True,
"idempotency_key": "aml-monitor-enable-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, idempotency_key: 'aml-monitor-enable-1'})
};
fetch('https://api.qbank.cl/platform/v1/aml/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/aml/monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'idempotency_key' => 'aml-monitor-enable-1'
]),
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/aml/monitoring"
payload := strings.NewReader("{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.qbank.cl/platform/v1/aml/monitoring")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/aml/monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"idempotency_key\": \"aml-monitor-enable-1\"\n}"
response = http.request(request)
puts response.read_body{
"screening_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
"kind": "monitoring",
"service": "compliance_monitoring",
"monitor": true,
"monitoring_enabled": true,
"screening_fee": "1.000000",
"fee_asset": "USDT",
"idempotency_key": "aml-monitor-enable-1",
"created_at": "2026-07-12T20:00:00Z",
"compliance_service": "compliance_monitoring",
"compliance_fee": "1.000000"
}{
"error": "idempotency_key_required",
"message": "provide idempotency_key (body or Idempotency-Key header)",
"compliance_fee": "0.500000"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation"
}{
"error": "no_screening",
"message": "account has no AML screening to monitor"
}最后修改于 2026年7月19日
⌘I