Smile - Enroll 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
- API Description: Used to enroll pre-captured user face images to the ZOLOZ system. After successful enrollment, users can use the enrolled face for identity verification.
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" |
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" |
imageContent | String | 5MB | Yes | - | The face image to be enrolled, encoded in Base64 format. | "/9j/4AAQSkZJRgABAQAAlgCWAAD/4QCARXhpZgA" |
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" } | |
enrollResult | String | Yes | Enrollment result.
| "Success" |
transactionId | String | No | The unique transaction ID generated for this enrollment. Note: The system will only return the
| "G000000001FSE2025070100000001308203****" |
Sample
Request Sample
{
"bizId": "2017839040588699",
"twoFaInfo": "11111111",
"userId": "123456abcd",
"imageContent": "/9j/4AAQSkZJRgABAQAAlgCWAAD/4QCARXhpZgA"
}Response Sample
{
"result": {
"resultStatus": "S",
"resultCode": "SUCCESS",
"resultMessage": "Success"
},
"enrollResult": "Success",
"transactionId": "G000000001FSE2025070100000001308203****"
}