Bulk Sanctions Check (CSV Upload)


Purpose

This API allows bulk sanctions checks by uploading a CSV file. It simplifies the process of screening large datasets against the sanctions database.


POST /v2/open-sanctions/file/:dataset

Request Format

The request requires a CSV file upload using a multipart/form-data POST request.

Required CSV Format:

The CSV file must include the following headers (case-insensitive):

FieldDescription
idUnique record ID
firstnamePerson's First Name
lastnamePerson's Last Name
dobDate of Birth (ISO Format e.g. 1990-01-01)

Sample CSV:

id,firstname,lastname,dob
a32778cf-5563-4b56-be6b-e9ab46c187a8,NIKI,KANUI,1983-04-22
...

Sample cURL Request:

curl --location 'https://api.orchestration.privateid.com/v2/open-sanctions/file/peps' \
--form 'file=@"/path/to/your/file.csv"'

Optional Parameters

You can also provide an optional query parameter scoreThreshold to filter results based on a minimum match score.

ParameterTypeDefaultDescription
scoreThresholdfloat0.95Minimum match score to consider as a valid match

Example:

POST /v2/open-sanctions/file/stations_nevada?scoreThreshold=0.85

API Response

The API returns a JSON response with:

  • Full list of results for every record.
  • Summary section for quick review.

Example Response:

{
  "summary": {
    "total": 35,
    "matched": {
      "count": 0,
      "records": []
    },
    "dataset": "stations_nevada"
  },
  "results": [
    {
      "id": "a32778cf-5563-4b56-be6b-e9ab46c187a8",
      "firstname": "JOHN",
      "lastname": "DOE",
      "dob": "2000-04-22",
      "match": "false"
    }
  ]
}

Summary Section

The summary provides:

  • Total records processed.
  • Number of matched records.
  • Full details of matched records (including IDs & scores).

Error Scenarios & Handling

Error CodeMessageCause
400Only CSV files are allowed!Uploaded file isn't a .csv
400Missing required CSV headersOne or more required CSV headers missing
500Internal Server ErrorUnexpected error during processing

Notes

  • Ensure the uploaded file does not exceed 2MB.
  • The API is designed to handle concurrent checks efficiently but large files may take longer to process.
  • Recommended to use a clean, UTF-8 encoded CSV file.

⚠️ Compliance Reminder

Ensure you have legal authorization before submitting personal data for sanctions screening.

Was this page helpful?