🌎 OFAC Background CheckService to make criminal history inquiries before OFAC (Clinton List).
OFAC Background Check
GET - https://api.verifik.co/v2/ofac
This service provides a simple way to check if a person or entity appears on the U.S. Department of the Treasury’s Office of Foreign Assets Control (OFAC) Specially Designated Nationals (SDN) and Blocked Persons List. By using this service, you can verify whether the individual or entity is subject to sanctions or restrictions enforced by OFAC.
Implementation
Headers
Query Parameters
Name Type Required? Description Example Document type. Allowed value: CC, NIT.
Document number of the person to consult.
Request
JavaScript Python Swift PHP
Copy import axios from 'axios' ;
const options = {
method : 'GET' ,
url : '<https://api.verifik.co/v2/ofac>' ,
params : {documentType : 'CC' , documentNumber : '80251972' } ,
headers : {
Accept : 'application/json' ,
Authorization : 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios .request (options);
console .log (data);
} catch (error) {
console .error (error);
}
Copy import http . client
conn = http . client . HTTPSConnection ( "api.verifik.co" )
payload = ''
headers = {}
conn . request ( "GET" , "/v2/ofac?fullName=Mateo%20Verifik" , payload, headers)
res = conn . getresponse ()
data = res . read ()
print (data. decode ( "utf-8" ))
Copy var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/ofac?fullName=Mateo%20Verifik")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared. dataTask ( with : request ) { data, response, error in
guard let data = data else {
print ( String ( describing : error ))
return
}
print ( String ( data : data, encoding : . utf8 ) ! )
}
task. resume ()
Copy <? php
require_once 'HTTP/Request2.php' ;
$request = new HTTP_Request2 ();
$request -> setUrl ( 'https://api.verifik.co/v2/ofac?fullName=Mateo Verifik' ) ;
$request -> setMethod ( HTTP_Request2 :: METHOD_GET ) ;
$request -> setConfig ( array (
'follow_redirects' => TRUE
) ) ;
try {
$response = $request -> send () ;
if ($response -> getStatus () == 200 ) {
echo $response -> getBody () ;
}
else {
echo 'Unexpected HTTP status: ' . $response -> getStatus () . ' ' .
$response -> getReasonPhrase () ;
}
}
catch ( HTTP_Request2_Exception $e) {
echo 'Error: ' . $e -> getMessage () ;
}
Response
200 404 409 409
Copy {
"data" : [
{
"nombres" : "CASTRO GARZON RICARDO" ,
"direccion" : "c/o CASTRO CURE Y CIA. S.C.S." ,
"tipo" : "Individual" ,
"programas" : "SDNT" ,
"listas" : "SDN" ,
"puntaje" : " "
}
] ,
"signature" : {
"dateTime" : "March 3, 2022 12:11 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "NotFound" ,
"message" : "Record not found." ,
"signature" : {
"dateTime" : "August 31, 2022 3:24 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "MissingParameter" ,
"message" : "missing documentType\n. missing documentNumber\n"
}
Copy {
"code" : "MissingParameter" ,
"message" : "documentType must be one of: [DNIAR]"
}
Last updated 2 months ago