GET /apiv2/aml/
已被 GET /apiv2/screening/{client_order_id} 取代
GET /apiv2/screening/{client_order_id} 是 第 2 版协议。当前端点仍可正常使用,且在未事先通知的情况下不会停用。
获取先前提交的 AML 检查的状态和结果。
**响应中的所有时间戳均为 UTC。**字符串格式保持不变 — "2026-09-09 23:01:44",不带时区后缀。
端点 URL
GET https://netts.io/apiv2/aml/{order_id}请求头
| 请求头 | 必填 | 描述 |
|---|---|---|
| X-API-KEY | 是 | 来自 Netts 控制台的 API 密钥 |
路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| order_id | 字符串 | 是 | 从 POST /apiv2/aml 返回的订单 ID |
请求示例
cURL
bash
curl -X GET https://netts.io/apiv2/aml/A4C666ABE24BD4A \
-H "X-API-KEY: your_api_key" \Python
python
import requests
order_id = "A4C666ABE24BD4A"
headers = {
"X-API-KEY": "your_api_key",
}
response = requests.get(f"https://netts.io/apiv2/aml/{order_id}", headers=headers)
data = response.json()
result = data.get("data", {})
print(f"Status: {result.get('status')}")
print(f"Risk Score: {result.get('risk_score')}")
print(f"Risk Level: {result.get('risk_level')}")响应
检查完成 (200 OK)
json
{
"success": true,
"data": {
"client_order_id": "A4C666ABE24BD4A",
"status": "completed",
"address": "TXtARC75jmh7sDDfHFunLbpA44T7JhJ53u",
"provider": "elliptic",
"report_language": "en",
"risk_score": 10.0,
"risk_level": "high",
"is_sanctioned": false,
"created_at": "2026-03-10 09:56:31",
"completed_at": "2026-03-10 09:56:32",
"result": {
"risk_score": 10,
"cluster_entities": [
{
"name": "ChangeHero",
"category": "Coin Swap Service"
}
]
},
"sanctions": {
"self": false,
"self_entities": null,
"exposure": null,
"items": []
}
},
"timestamp": "2026-03-10 10:00:00"
}sanctions 对象用于区分受制裁地址与仅关联受制裁实体的地址。其字段说明详见检查页面。
检查处理中 (200 OK)
json
{
"success": true,
"data": {
"client_order_id": "A4C666ABE24BD4A",
"status": "pending",
"address": "TPCHni9H51NEr8iT6fNJgkdMUBPbF79HBV",
"provider": "elliptic",
"report_language": "en",
"message": "AML check is being processed",
"estimated_time_seconds": 5,
"created_at": "2026-03-10 09:56:31"
},
"timestamp": "2026-03-10 09:56:35"
}订单未找到 (404)
json
{
"success": false,
"error": {
"code": 4040,
"message": "Order not found"
},
"timestamp": "2026-03-10 10:00:00"
}注意事项
- 轮询此端点以获取异步检查的结果(提交时未设置
wait: true) - 典型的检查完成时间:2-10 秒
- 轮询不会产生额外费用