For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
22 4 7 8

Can the World Check API handle null values?

In my system, the default value of a field is null. The user is not required to capture all values that we will be passing for screening. Do I need to validate that a value is not null before setting it as the value of a case field or can the API handle null values? If not, what is the equivalent to null in the World Check API?

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

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

1 Answer

Upvotes
Accepted
3.1k 16 7 7

Hi @ivan,

While many of the fields are optional they cannot have a NULL value. If you have a field that can have NULL values, then you should test for NULL and exclude the NULL value fields. For example, save a case, there are 3 custom fields and 5 secondary fields by default. If you only have data for 1 of the fields and the others have NULLs, then exclude the field Ids and values from the POST. This includes empty strings, "".

Hope this helps,

Brian

{  
   "groupId":"{
                {group-id}}",
   "entityType":"INDIVIDUAL",
   "providerTypes":[  
      "WATCHLIST"
   ],
   "name":"Putin",
   "customFields":[],
   "secondaryFields":[  
      {  
         "typeId":"SFCT_1",
         "value":"MALE"
      }
   ]
}
icon clock
10 |1500

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

Click below to post an Idea Post Idea