curl -X POST 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/blueprints/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name": "AML investigation", "assignee_pool": ["9a000000-0000-4000-8000-0000000000aa"], "assignment_method": "AUTOMATIC", "max_active_cases": 15, "require_resolution_note": true, "content_config": {"aml_control": {"enabled": true, "financial": true, "identity": false}}}'from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
result = client.cases.blueprints.create(
name="AML investigation",
assignee_pool=["9a000000-0000-4000-8000-0000000000aa"],
assignment_method="AUTOMATIC",
max_active_cases=15,
require_resolution_note=True,
content_config={
"aml_control": {
"enabled": True,
"financial": True,
"identity": False,
},
},
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const result = await didit.cases.blueprints.create({
name: "AML investigation",
assignee_pool: ["9a000000-0000-4000-8000-0000000000aa"],
assignment_method: "AUTOMATIC",
max_active_cases: 15,
require_resolution_note: true,
content_config: {
aml_control: {
enabled: true,
financial: true,
identity: false,
},
},
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
result, err := client.Cases.Blueprints.Create(ctx, didit.CasesBlueprintsCreateParams{
Name: "AML investigation",
AssigneePool: []string{"9a000000-0000-4000-8000-0000000000aa"},
AssignmentMethod: didit.Some(didit.CasesBlueprintsCreateParamsAssignmentMethod("AUTOMATIC")),
MaxActiveCases: didit.Int(15),
RequireResolutionNote: didit.Bool(true),
ContentConfig: didit.Some(didit.CaseContentConfigParam{
AMLControl: didit.Some(didit.CaseContentConfigParamAMLControl{
Enabled: didit.Bool(true),
Financial: didit.Bool(true),
Identity: didit.Bool(false),
}),
}),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import java.util.List;
import me.didit.Didit;
import me.didit.types.CaseContentConfig;
import me.didit.types.CasesBlueprintsCreateParams;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
var result = client.cases().blueprints().create(CasesBlueprintsCreateParams.builder()
.name("AML investigation")
.assigneePool(List.of("9a000000-0000-4000-8000-0000000000aa"))
.assignmentMethod(CasesBlueprintsCreateParams.AssignmentMethod.of("AUTOMATIC"))
.maxActiveCases(15L)
.requireResolutionNote(true)
.contentConfig(CaseContentConfig.builder()
.amlControl(CaseContentConfig.AmlControl.builder()
.enabled(true)
.financial(true)
.identity(false)
.build())
.build())
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$result = $didit->cases->blueprints->create([
'name' => 'AML investigation',
'assignee_pool' => ['9a000000-0000-4000-8000-0000000000aa'],
'assignment_method' => 'AUTOMATIC',
'max_active_cases' => 15,
'require_resolution_note' => true,
'content_config' => [
'aml_control' => [
'enabled' => true,
'financial' => true,
'identity' => false,
],
],
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
result = didit.cases.blueprints.create(
name: "AML investigation",
assignee_pool: ["9a000000-0000-4000-8000-0000000000aa"],
assignment_method: "AUTOMATIC",
max_active_cases: 15,
require_resolution_note: true,
content_config: {
aml_control: {
enabled: true,
financial: true,
identity: false,
},
}
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var result = await client.Cases.Blueprints.CreateAsync(new CasesBlueprintsCreateParams
{
Name = "AML investigation",
AssigneePool = new string[] { "9a000000-0000-4000-8000-0000000000aa" },
AssignmentMethod = new CasesBlueprintsCreateParamsAssignmentMethod("AUTOMATIC"),
MaxActiveCases = 15,
RequireResolutionNote = true,
ContentConfig = new CaseContentConfig
{
AmlControl = new CaseContentConfigAmlControl
{
Enabled = true,
Financial = true,
Identity = false,
},
},
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"assignment_method": "MANUAL",
"assignee_pool": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"max_active_cases": 123,
"escalation_enabled": true,
"transfer_enabled": true,
"require_resolution_note": true,
"is_active": true,
"preset_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_blueprint": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"escalation_blueprint_name": "<string>",
"four_eyes_checker_blueprint": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"four_eyes_checker_blueprint_name": "<string>",
"content_config": {
"checklist": {
"enabled": true,
"optional": true,
"items": [
{
"label": "<string>",
"order": 123
}
]
},
"aml_control": {
"enabled": true,
"financial": true,
"identity": true
},
"identity": {
"enabled": true,
"personal_information": true,
"applicant_tags": true,
"contact_information": true,
"risk_overview": true,
"poi_documents": true,
"poa_documents": true
},
"verifications": {
"enabled": true,
"summary": true
},
"reporting": {
"enabled": true,
"fiu_reports": true
},
"financial": {
"enabled": true,
"payment_methods": true,
"transactions": true
}
},
"creation_sources": [
{
"kind": "aml",
"id": "<string>",
"name": "<string>"
}
],
"receives_escalation_from": [
{
"id": "<string>",
"name": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"default_deadline_hours": 4380
}{}创建案件蓝图 API
在 Didit 中创建案件蓝图,配置分配方式、升级与转交、四眼复核配对、必填处置备注,以及六个案件内容板块。
curl -X POST 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/blueprints/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name": "AML investigation", "assignee_pool": ["9a000000-0000-4000-8000-0000000000aa"], "assignment_method": "AUTOMATIC", "max_active_cases": 15, "require_resolution_note": true, "content_config": {"aml_control": {"enabled": true, "financial": true, "identity": false}}}'from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
result = client.cases.blueprints.create(
name="AML investigation",
assignee_pool=["9a000000-0000-4000-8000-0000000000aa"],
assignment_method="AUTOMATIC",
max_active_cases=15,
require_resolution_note=True,
content_config={
"aml_control": {
"enabled": True,
"financial": True,
"identity": False,
},
},
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const result = await didit.cases.blueprints.create({
name: "AML investigation",
assignee_pool: ["9a000000-0000-4000-8000-0000000000aa"],
assignment_method: "AUTOMATIC",
max_active_cases: 15,
require_resolution_note: true,
content_config: {
aml_control: {
enabled: true,
financial: true,
identity: false,
},
},
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
result, err := client.Cases.Blueprints.Create(ctx, didit.CasesBlueprintsCreateParams{
Name: "AML investigation",
AssigneePool: []string{"9a000000-0000-4000-8000-0000000000aa"},
AssignmentMethod: didit.Some(didit.CasesBlueprintsCreateParamsAssignmentMethod("AUTOMATIC")),
MaxActiveCases: didit.Int(15),
RequireResolutionNote: didit.Bool(true),
ContentConfig: didit.Some(didit.CaseContentConfigParam{
AMLControl: didit.Some(didit.CaseContentConfigParamAMLControl{
Enabled: didit.Bool(true),
Financial: didit.Bool(true),
Identity: didit.Bool(false),
}),
}),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import java.util.List;
import me.didit.Didit;
import me.didit.types.CaseContentConfig;
import me.didit.types.CasesBlueprintsCreateParams;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
var result = client.cases().blueprints().create(CasesBlueprintsCreateParams.builder()
.name("AML investigation")
.assigneePool(List.of("9a000000-0000-4000-8000-0000000000aa"))
.assignmentMethod(CasesBlueprintsCreateParams.AssignmentMethod.of("AUTOMATIC"))
.maxActiveCases(15L)
.requireResolutionNote(true)
.contentConfig(CaseContentConfig.builder()
.amlControl(CaseContentConfig.AmlControl.builder()
.enabled(true)
.financial(true)
.identity(false)
.build())
.build())
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$result = $didit->cases->blueprints->create([
'name' => 'AML investigation',
'assignee_pool' => ['9a000000-0000-4000-8000-0000000000aa'],
'assignment_method' => 'AUTOMATIC',
'max_active_cases' => 15,
'require_resolution_note' => true,
'content_config' => [
'aml_control' => [
'enabled' => true,
'financial' => true,
'identity' => false,
],
],
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
result = didit.cases.blueprints.create(
name: "AML investigation",
assignee_pool: ["9a000000-0000-4000-8000-0000000000aa"],
assignment_method: "AUTOMATIC",
max_active_cases: 15,
require_resolution_note: true,
content_config: {
aml_control: {
enabled: true,
financial: true,
identity: false,
},
}
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var result = await client.Cases.Blueprints.CreateAsync(new CasesBlueprintsCreateParams
{
Name = "AML investigation",
AssigneePool = new string[] { "9a000000-0000-4000-8000-0000000000aa" },
AssignmentMethod = new CasesBlueprintsCreateParamsAssignmentMethod("AUTOMATIC"),
MaxActiveCases = 15,
RequireResolutionNote = true,
ContentConfig = new CaseContentConfig
{
AmlControl = new CaseContentConfigAmlControl
{
Enabled = true,
Financial = true,
Identity = false,
},
},
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"assignment_method": "MANUAL",
"assignee_pool": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"max_active_cases": 123,
"escalation_enabled": true,
"transfer_enabled": true,
"require_resolution_note": true,
"is_active": true,
"preset_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_blueprint": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"escalation_blueprint_name": "<string>",
"four_eyes_checker_blueprint": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"four_eyes_checker_blueprint_name": "<string>",
"content_config": {
"checklist": {
"enabled": true,
"optional": true,
"items": [
{
"label": "<string>",
"order": 123
}
]
},
"aml_control": {
"enabled": true,
"financial": true,
"identity": true
},
"identity": {
"enabled": true,
"personal_information": true,
"applicant_tags": true,
"contact_information": true,
"risk_overview": true,
"poi_documents": true,
"poa_documents": true
},
"verifications": {
"enabled": true,
"summary": true
},
"reporting": {
"enabled": true,
"fiu_reports": true
},
"financial": {
"enabled": true,
"payment_methods": true,
"transactions": true
}
},
"creation_sources": [
{
"kind": "aml",
"id": "<string>",
"name": "<string>"
}
],
"receives_escalation_from": [
{
"id": "<string>",
"name": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"default_deadline_hours": 4380
}{}content_config 会经过严格校验:只接受六个已知章节及其文档中列出的键,因此拼写错误会返回 400,而不是被静默忽略。
相关内容
授权
您的应用 API 密钥,可在 Business Console 的“开发者 -> API 密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域:针对每个资源设为无权限、只读或读写,限定于特定工作流或已通过的会话、限定于 IP 地址列表,以及设置到期日期。401 表示密钥错误、已撤销或已过期;403 表示未发送密钥、密钥无权访问该资源或操作,或请求来自其 IP 列表之外的地址;在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF URL 将为 null;没有会话写入权限的密钥获取到的会话链接和 token 将为 null。请参阅 https://docs.didit.me/console/api-keys。
请求体
最多 24 个字符,例如“AML 调查”。
24用户 UUID 列表。空数组将被拒绝并提示 "Pick at least one assignee"。
1MANUAL, AUTOMATIC 自动模式阈值:“分配此蓝图的案件少于 N 个”。
x >= 1目标蓝图 UUID。在保存时不进行强制校验,但在 escalation_enabled 和 escalation_blueprint 均设置之前,上报操作将失败并返回 400。
设置此项可启用双人复核:此蓝图上的决策结果将暂存到审核蓝图的队列中。
控制案件页面上显示哪些标签页和字段的六个可切换板块。未知的板块或键将被拒绝。
Show child attributes
Show child attributes
新开启案件的默认截止时间。现有案件的截止时间保持不变。
1 <= x <= 8760设置为 false 可保存未发布的草稿。在草稿显式发布之前,记录将保持非活动状态且版本为 0。省略此字段可保持现有集成的立即创建行为。
响应
Blueprint 已创建。
24MANUAL, AUTOMATIC 控制案件页面上显示哪些标签页和字段的六个可切换板块。未知的板块或键将被拒绝。
Show child attributes
Show child attributes
当前将新案件路由到此蓝图的连接器。
Show child attributes
Show child attributes
升级目标指向此蓝图的其他蓝图。
Show child attributes
Show child attributes
1 <= x <= 8760