curl --request POST \
--url https://verification.didit.me/v3/fraud/checks/plan/ \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <api-key>' \
--data 'subject={
"identifiers": [
{
"value": "<string>",
"country": "<string>",
"issuer": "<string>"
}
],
"selfie": "<string>",
"attributes": {
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"date_of_birth": "2023-12-25",
"nationality": "<string>",
"gender": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>"
}
}' \
--data 'client_reference=<string>' \
--data profile=standard \
--data 'profile_version=<string>' \
--data 'context={
"ip_address": "<string>",
"user_agent": "<string>",
"country": "<string>",
"purpose": "<string>",
"consent_obtained": true
}' \
--data 'checks={
"include": [],
"exclude": []
}' \
--data 'vendor_data=<string>' \
--data 'metadata=<unknown>'import requests
url = "https://verification.didit.me/v3/fraud/checks/plan/"
payload = {
"subject": "{
\"identifiers\": [
{
\"value\": \"<string>\",
\"country\": \"<string>\",
\"issuer\": \"<string>\"
}
],
\"selfie\": \"<string>\",
\"attributes\": {
\"first_name\": \"<string>\",
\"last_name\": \"<string>\",
\"full_name\": \"<string>\",
\"date_of_birth\": \"2023-12-25\",
\"nationality\": \"<string>\",
\"gender\": \"<string>\",
\"address\": \"<string>\",
\"city\": \"<string>\",
\"state\": \"<string>\",
\"postal_code\": \"<string>\"
}
}",
"client_reference": "<string>",
"profile": "standard",
"profile_version": "<string>",
"context": "{
\"ip_address\": \"<string>\",
\"user_agent\": \"<string>\",
\"country\": \"<string>\",
\"purpose\": \"<string>\",
\"consent_obtained\": true
}",
"checks": "{
\"include\": [],
\"exclude\": []
}",
"vendor_data": "<string>",
"metadata": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
subject: '{\n "identifiers": [\n {\n "value": "<string>",\n "country": "<string>",\n "issuer": "<string>"\n }\n ],\n "selfie": "<string>",\n "attributes": {\n "first_name": "<string>",\n "last_name": "<string>",\n "full_name": "<string>",\n "date_of_birth": "2023-12-25",\n "nationality": "<string>",\n "gender": "<string>",\n "address": "<string>",\n "city": "<string>",\n "state": "<string>",\n "postal_code": "<string>"\n }\n}',
client_reference: '<string>',
profile: 'standard',
profile_version: '<string>',
context: '{\n "ip_address": "<string>",\n "user_agent": "<string>",\n "country": "<string>",\n "purpose": "<string>",\n "consent_obtained": true\n}',
checks: '{\n "include": [],\n "exclude": []\n}',
vendor_data: '<string>',
metadata: '<unknown>'
})
};
fetch('https://verification.didit.me/v3/fraud/checks/plan/', 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://verification.didit.me/v3/fraud/checks/plan/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded",
"x-api-key: <api-key>"
],
]);
$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://verification.didit.me/v3/fraud/checks/plan/"
payload := strings.NewReader("subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/fraud/checks/plan/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/fraud/checks/plan/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E"
response = http.request(request)
puts response.read_body{
"profile_id": "<string>",
"profile_version": "<string>",
"modules": [
{
"module": "normalization",
"available": true,
"availability_reason": "<string>",
"will_run": true,
"selection_reason": "<string>",
"estimated_price": "<string>"
}
],
"estimated_price": "<string>",
"currency": "<string>",
"is_sandbox": true,
"can_afford": true
}{
"detail": "Bad Request - Invalid request data"
}Plan a Fraud Check
Validate inputs and estimate selected Fraud Check charges before running the request.
curl --request POST \
--url https://verification.didit.me/v3/fraud/checks/plan/ \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <api-key>' \
--data 'subject={
"identifiers": [
{
"value": "<string>",
"country": "<string>",
"issuer": "<string>"
}
],
"selfie": "<string>",
"attributes": {
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"date_of_birth": "2023-12-25",
"nationality": "<string>",
"gender": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>"
}
}' \
--data 'client_reference=<string>' \
--data profile=standard \
--data 'profile_version=<string>' \
--data 'context={
"ip_address": "<string>",
"user_agent": "<string>",
"country": "<string>",
"purpose": "<string>",
"consent_obtained": true
}' \
--data 'checks={
"include": [],
"exclude": []
}' \
--data 'vendor_data=<string>' \
--data 'metadata=<unknown>'import requests
url = "https://verification.didit.me/v3/fraud/checks/plan/"
payload = {
"subject": "{
\"identifiers\": [
{
\"value\": \"<string>\",
\"country\": \"<string>\",
\"issuer\": \"<string>\"
}
],
\"selfie\": \"<string>\",
\"attributes\": {
\"first_name\": \"<string>\",
\"last_name\": \"<string>\",
\"full_name\": \"<string>\",
\"date_of_birth\": \"2023-12-25\",
\"nationality\": \"<string>\",
\"gender\": \"<string>\",
\"address\": \"<string>\",
\"city\": \"<string>\",
\"state\": \"<string>\",
\"postal_code\": \"<string>\"
}
}",
"client_reference": "<string>",
"profile": "standard",
"profile_version": "<string>",
"context": "{
\"ip_address\": \"<string>\",
\"user_agent\": \"<string>\",
\"country\": \"<string>\",
\"purpose\": \"<string>\",
\"consent_obtained\": true
}",
"checks": "{
\"include\": [],
\"exclude\": []
}",
"vendor_data": "<string>",
"metadata": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
subject: '{\n "identifiers": [\n {\n "value": "<string>",\n "country": "<string>",\n "issuer": "<string>"\n }\n ],\n "selfie": "<string>",\n "attributes": {\n "first_name": "<string>",\n "last_name": "<string>",\n "full_name": "<string>",\n "date_of_birth": "2023-12-25",\n "nationality": "<string>",\n "gender": "<string>",\n "address": "<string>",\n "city": "<string>",\n "state": "<string>",\n "postal_code": "<string>"\n }\n}',
client_reference: '<string>',
profile: 'standard',
profile_version: '<string>',
context: '{\n "ip_address": "<string>",\n "user_agent": "<string>",\n "country": "<string>",\n "purpose": "<string>",\n "consent_obtained": true\n}',
checks: '{\n "include": [],\n "exclude": []\n}',
vendor_data: '<string>',
metadata: '<unknown>'
})
};
fetch('https://verification.didit.me/v3/fraud/checks/plan/', 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://verification.didit.me/v3/fraud/checks/plan/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded",
"x-api-key: <api-key>"
],
]);
$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://verification.didit.me/v3/fraud/checks/plan/"
payload := strings.NewReader("subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/fraud/checks/plan/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/fraud/checks/plan/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "subject=%7B%0A%20%20%22identifiers%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22value%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%20%20%22issuer%22%3A%20%22%3Cstring%3E%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22selfie%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22first_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22last_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22full_name%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22date_of_birth%22%3A%20%222023-12-25%22%2C%0A%20%20%20%20%22nationality%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22gender%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22city%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22state%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22postal_code%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D&client_reference=%3Cstring%3E&profile=standard&profile_version=%3Cstring%3E&context=%7B%0A%20%20%22ip_address%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22user_agent%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22country%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22purpose%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%22consent_obtained%22%3A%20true%0A%7D&checks=%7B%0A%20%20%22include%22%3A%20%5B%5D%2C%0A%20%20%22exclude%22%3A%20%5B%5D%0A%7D&vendor_data=%3Cstring%3E&metadata=%3Cunknown%3E"
response = http.request(request)
puts response.read_body{
"profile_id": "<string>",
"profile_version": "<string>",
"modules": [
{
"module": "normalization",
"available": true,
"availability_reason": "<string>",
"will_run": true,
"selection_reason": "<string>",
"estimated_price": "<string>"
}
],
"estimated_price": "<string>",
"currency": "<string>",
"is_sandbox": true,
"can_afford": true
}{
"detail": "Bad Request - Invalid request data"
}available from will_run.
availability_reason explains whether the supplied inputs can support it, while selection_reason explains why it is or is not selected.
Keep unavailable switches visible and show their input requirements.
estimated_price is a decimal string in the returned currency.
A null price means unavailable or unpriced, not free.
The top-level estimate totals selected runnable modules; can_afford also checks the applicable billing arrangement.
Re-plan after changing identifiers, context, or selections.
Execution rechecks eligibility and pricing, so a plan is not a reservation or a guarantee that an external source will answer.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 missing, wrong, revoked or expired; 403 means 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.
Body
Show child attributes
Show child attributes
Your own reference for this check. Doubles as the idempotency key: reusing it with the same body returns the original check without running or billing the modules again; reusing it with a different body returns 409.
1 - 255Orchestration profile id. Defaults to the Didit standard profile.
1 - 64Pin a frozen profile version. Defaults to the current version of the profile.
1 - 32Show child attributes
Show child attributes
Show child attributes
Show child attributes
1000