question

Upvotes
Accepted
9 3 5 6

Using WC1 API to limit results

Trying to come up with a solution so that a client can quickly validate whether or not a country is Sanctioned or not. If the client creates a group in WC1 and limits the group to Sanctions only and Exact matches then it will limit the potential matches BUT the issue is that for a Country they need to use an entity type of U. Is there a way to only pull back results that have a Category of EMBARGO?

world-checkworld-check-one
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
4.5k 4 8 8

@Fran Dugger,

Thank you for the query.

Yes, to screen countries, the entityType should be unspecified.

If a country is sync screened (not async), then the matches will have an attribute "category" populated with the value EMBARGO that will tell the client that the country screened is in the embargo list.

Please find the JSON of one of the matches when the country IRAN is screened.

"results": [  {  "resultId": "0a3687cf-69ca-1e30-9a84-6abd0019f702",  "referenceId": "e_tr_wcc_75789",  "matchStrength": "EXACT",  "matchedTerm": "Iran",  "submittedTerm": "Iran",  "matchedNameType": "AKA",  "secondaryFieldResults": [],  "sources": [  "b_trwc_118",  ],  "categories": [  "Sanctions",  ]"creationDate": "2019-04-12T13:09:37.984Z",  "modificationDate": "2019-04-12T13:09:37.984Z",  "primaryName": "IRAN",  "events": null,  "countryLinks": [],  "identityDocuments": [],  "category": "EMBARGO",  "providerType": "WATCHLIST",  "gender": null  },

Please check the attribute "category" and its value.

Hope this clarifies your concern.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
180 2 3 4

@Fran Dugger - no filter is currently available.
However, the client could choose to expose only the profiles containing:

"category": "EMBARGO"

Which they can build as a filter in their interface.

Leo

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.