curl -X DELETE 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/c1a5e000-0000-4000-8000-000000000001/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
client.cases.delete(
"c1a5e000-0000-4000-8000-000000000001",
)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
await didit.cases.delete("c1a5e000-0000-4000-8000-000000000001");ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
if err := client.Cases.Delete(ctx, "c1a5e000-0000-4000-8000-000000000001"); err != nil {
log.Fatal(err)
}import me.didit.Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
client.cases().delete("c1a5e000-0000-4000-8000-000000000001");<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$didit->cases->delete('c1a5e000-0000-4000-8000-000000000001');require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
didit.cases.delete("c1a5e000-0000-4000-8000-000000000001")using System;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
await client.Cases.DeleteAsync("c1a5e000-0000-4000-8000-000000000001");{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"code": "in_filed_report",
"reports": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"report_number": "<string>",
"report_type": "SAR",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"transactions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction_id": "<string>",
"reports": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"report_number": "<string>",
"report_type": "SAR",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]
}Удаление кейса через API
Удаление кейса комплаенса и его черновых регуляторных отчётов в Didit. Финализированный отчёт блокирует удаление, пока вы его не удалите.
curl -X DELETE 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/c1a5e000-0000-4000-8000-000000000001/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
client.cases.delete(
"c1a5e000-0000-4000-8000-000000000001",
)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
await didit.cases.delete("c1a5e000-0000-4000-8000-000000000001");ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
if err := client.Cases.Delete(ctx, "c1a5e000-0000-4000-8000-000000000001"); err != nil {
log.Fatal(err)
}import me.didit.Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
client.cases().delete("c1a5e000-0000-4000-8000-000000000001");<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$didit->cases->delete('c1a5e000-0000-4000-8000-000000000001');require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
didit.cases.delete("c1a5e000-0000-4000-8000-000000000001")using System;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
await client.Cases.DeleteAsync("c1a5e000-0000-4000-8000-000000000001");{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"code": "in_filed_report",
"reports": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"report_number": "<string>",
"report_type": "SAR",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"transactions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction_id": "<string>",
"reports": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"report_number": "<string>",
"report_type": "SAR",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]
}Заблокировано финализированным отчётом
Если у кейса есть финализированный регуляторный отчёт, запрос возвращает код409, и ничего не удаляется:
{
"detail": "This case has a finalized regulatory report, so it cannot be deleted.",
"code": "in_filed_report",
"reports": [
{
"uuid": "5ec00000-0000-4000-8000-000000000007",
"report_number": "SAR-0001",
"report_type": "SAR",
"case_uuid": "c1a5e000-0000-4000-8000-000000000001"
}
]
}
Связанные материалы
Авторизации
API-ключ вашего приложения из раздела «Разработчикам» -> «API-ключи» в Business Console. Основной ключ имеет полный доступ. Именованный ключ может иметь ограниченную область действия: без доступа, чтение или запись для каждого ресурса, ограничение определенными сценариями или одобренными сессиями, списком IP-адресов и сроком действия. 401 означает, что ключ неверен, отозван или его срок действия истек; 403 означает, что ключ не был передан, у ключа нет доступа к этому ресурсу или действию, либо запрос поступил с адреса вне его списка IP-адресов; 404 на маршруте сессии означает, что сессия не входит в сценарии или статусы ключа. Ключ без доступа к медиа получает URL изображений, видео и PDF как null, а ключ без прав на запись сессий получает ссылки на сессии и токены как null. См. https://docs.didit.me/console/api-keys.
Параметры пути
UUID организации.
UUID приложения.
UUID кейса.
"c1a5e000-0000-4000-8000-000000000001"
Ответ
Кейс удалён.