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?

Best Answer

  • 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"
    }
    ]
    }