This method allows users to add a bulk search by uploading a csv file.
File
The API method will look for a csv file in the request. Use the following code templates as a guide:
curl --location --request POST 'https://api.sanctionssearch.com/v2/json/reply/BulkSearch' \
--form 'Request={Type:Individual,IsSanctionsSearch:true,SelectedLists:[HMTSL,HMTUK,OFACL,OFACC]}' \
--form 'Authentication={ApiUserId:MY_API_USERNAME,ApiUserKey:MY_API_USERKEY}' \
--form 'File=@/C:/MyDirectory/MyCSVIndividuals.csv'
Request Parameters
| Parameter | Type | Format | Description |
|---|---|---|---|
| IsSanctionsSearch | Bool | Set to true to run sanctions searches in bulk for the uploaded list. | |
| IsPepSearch | Bool | Set to true to run PEP searches in bulk for the uploaded list. | |
| Type Required | String | Max length 10 characters | The type of search requested. Specify either: "individual" or "entity". |
| SelectedLists > ListId Required | String | Max length 5 characters |
Array of sanctions lists to be included in the search. At least one is required. The following values are valid:
ALL Perform your search against all your enabled lists, no further values are required if you select "ALL" Example specifying the All lists lists: <SelectedLists>
<ListId>ALL</ListId>
</SelectedLists>
Example specifying the HM Treasury list:<SelectedLists>
<ListId>HMTSL</ListId>
</SelectedLists>
Example specifying the US and HM Treasury list:<SelectedLists>
<ListId>OFACL</ListId>
<ListId>HMTSL</ListId>
</SelectedLists>
|
Response Parameters
| Parameter | Type | Format | Description |
|---|---|---|---|
| ResponseStatus | ResponseStatus | Instance of ResponseStatus object (see here) | |
| BulkSearchStatus | BulkSearchStatus | Instance of BulkSearchStatus object (see here) |