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"
}
]
}
]
}Delete Case API
Delete a compliance case and its draft regulatory reports. A finalized report blocks the deletion until you delete it.
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"
}
]
}
]
}Blocked by a finalized report
If the case has a finalized regulatory report, the whole request returns409 and nothing is deleted:
{
"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"
}
]
}
Related
Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Path Parameters
Organization UUID.
Application UUID.
Case UUID.
"c1a5e000-0000-4000-8000-000000000001"
Response
Case deleted.