This API is used to add an item to a target blacklist.
Required. A unique ID maintained by client for tracing purpose.
Note: ZOLOZ server does not perform uniqueness check on this field. For better tracing, it is strongly recommended to enable the merchant server to guarantee the uniqueness of the business ID.
(Optional) Specify the ID of the target blacklist, into which this item will be added.
If the parameter value is left blank, ZOLOZ will add the item to the default blacklist.
Required. Specify the type of item to be added.
Valid values include:
Required when itemType is FACE. Specify the face image to be added.
The face image should be in JPEG format. Face image needs to be of good quality and face features should be visible.
Required when itemType is DEVICE. Specify the device ID to be added.
The device ID must be captured by ZOLOZ SDK, otherwise, the search and match might fail.
Required when itemType is CERT. Specify the type of document to be added.
To understand the list of supported values, please check supported doc types here.
Required when itemType is CERT. Specify the number of the document to be added.
Please note that ZOLOZ match document with target document blacklist by combining both docType and docNumber.
(Optional) Specify the original source of the item.
If the item to be added is obtained from a history ZOLOZ transaction, It is recommended that client to set history transaction ID for this parameter for tracing purposes
Contain the result code, result status, and a result message.
(Optional) only available if the item is added successfully.
(Optional) If the item is not added due to duplicates, a list of existing items will be returned. Each item is represented as a JSON String, which contains itemId and itemType.
Common result codes
For the full list of common result codes, see the Common error codes section in the Error handling topic.
API-specific result codes
The following table shows the possible result codes that are specific for this API.
The API call is successful.
Input parameters are invalid. For more information about which parameter is invalid, check the result message or the related log.
The target blacklist does not exist.
Only applicable when itemType is FACE.
The error message occurs when the image is not accepted by ZOLOZ. To understand rejection details, you can check the result message.
Other system errors. For more information about the error details, check the result message that is returned and the related log.
Here is an example of request, which is trying to add a selfie face to the default FACE list.
The following sample response will be returned when the face is already blacklisted.