Smile - Enroll Initialize API
Important Notice:
- All request and response parameters are strictly subject to the official API documentation.
- The API response may contain fields not defined in the documentation. These fields are for internal debugging purposes only and are not guaranteed to be stable or compatible. Do not rely on these fields in production environments. ZOLOZ reserves the right to modify or remove these fields at any time without prior notice.
Overview
- API URL: /api/v1/zoloz/smile/enroll/initialize
- API Description: Used to initialize the SDK-based face or palm capture process for user enrollment.
Request Parameters
Field Name | Data Type | Max Length | Required | Default Value | Description | Example |
bizId | String | 32 | Yes | - | A unique business ID for tracing purposes. For example, the sequence ID from the merchant's business-related database. Note: ZOLOZ does not validate the uniqueness of this value; the merchant side must ensure the uniqueness of the business ID. | "2017839040588699" |
metaInfo | String | 512 | Yes | - | Metadata of the SDK and user device. The value is returned by the ZOLOZ SDK in JSON string format. | { \"deviceType\": \"android\", \"appVersion\": \"1.0.9\", \"osVersion\": \"9\", \"appName\": \"com.zoloz.atomic.client\", \"bioMetaInfo\": \"3.46.0:2916352,0\", \"apdidToken\": \"69b74bfe-bf7f-4d3b-ac59-907ee09e7955\", \"deviceModel\": \"MI 6\", \"zimVer\": \"1.0.0\" } |
twoFaInfo | String | 32 | Yes | - | Two-factor authentication information.
| "11111111" |
userId | String | 64 | Yes | - | Merchant user ID, or other identifiers that can be used to identify a specific user. For example, mobile phone number, email address and so on. It is strongly recommended to pre-desensitize the value of the | "123456abcd" |
verificationType | String | 32 | No | face | Biometric verification type. Supported values:
| "palm" |
Response Parameters
Field Name | Data Type | Always Returned | Description | Example |
result | Yes | The API request result, which contains the result status, result code, and result message. | { "resultStatus": "S", "resultCode": "SUCCESS", "resultMessage": "Success" } | |
clientCfg | String | No | The Client configuration information, including parameters about the SDK connection and behavior. Note: The value of this field is returned only when the | "{\"clientStartIndex\":1, \"factorContext\":{...}}" |
transactionId | String | No | The unique transaction ID generated for this enrollment. Note: The system will only return the
| "G000000001FSE2025052300000001218988****" |
Result
Common error codes
For the full list of common error codes, see the Common error codes section in the Error handling topic.
API-specific error codes
The following table shows the possible error codes that are specific for the Smile Enroll Initialize API.
resultCode | resultStatus | Description |
SUCCESS | S | The API call is successful. |
INVALID_ARGUMENT | F | Input parameters are invalid. For more information about which parameter is invalid, check the returned |
EXIST_ENROLL_USER | F | The user already exists (duplicate enrollment). |
DEVICE_NOT_SUPPORT | F | The device type is not supported. |
OS_NOT_SUPPORT | F | The operating system of the device is not supported. |
SDKVERSION_NOT_SUPPORT | F | The version of the ZOLOZ SDK is not supported. |
SYSTEM_ERROR | F | Internal system error. For error details, check the returned |
Sample
Request Sample
{
"bizId": "2017839040588699",
"twoFaInfo": "11111111",
"userId": "123456abcd",
"verificationType": "palm",
"metaInfo": "{
\"deviceType\": \"android\",
\"appVersion\": \"1.0.9\",
\"osVersion\": \"9\",
\"appName\": \"com.zoloz.atomic.client\",
\"bioMetaInfo\": \"3.46.0:2916352,0\",
\"apdidToken\": \"69b74bfe-bf7f-4d3b-ac59-907ee09e7955\",
\"deviceModel\": \"MI 6\",
\"zimVer\": \"1.0.0\"
}"
}Response Sample
{
"result": {
"resultStatus": "S",
"resultCode": "SUCCESS",
"resultMessage": "Success"
},
"clientCfg": "{\"clientStartIndex\":1, \"factorContext\":{...}}",
"transactionId": "G000000001FSE2025052300000001218988****"
}