Smile - updateTwoFaInfo API
Overview
- API URL: /api/v1/zoloz/smile/updateTwoFaInfo
- API Description: Updates the phone number bound to a Smile user without unenrolling the user or re-capturing their face.
- Note: This is a server-to-server API. No client SDK is required.
Request Parameters
Field Name | Data Type | Max Length | Required | Default Value | Description | Example |
bizId | String | 32 | Yes | - | A unique business ID for tracing and idempotency purposes. For example, the sequence ID from the merchant's business-related database. | "20260922000000000001" |
userId | String | 64 | Yes | - | Merchant user ID, or other identifiers that can be used to identify a specific registered user. For example, mobile phone number, email address, etc. | "user_1234567890" |
newTwoFaInfo | String | 32 | Yes | - | The new phone number. Must contain only digits and comply. Note: The old phone number (oldTwoFaInfo) is not required. The server queries the current value internally for comparison. | "8613800138000" |
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. | { | |
transactionId | String | No | The unique transaction ID generated for this enrollment. | "G000000001FSE2025070100000001308203****" |
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 Verify Initialize API.
resultCode | resultStatus | Description |
SUCCESS | S | Update succeeded. |
SAME_TWO_FA_INFO | F | The new phone number is identical to the current one; no update is needed. |
Sample
Request Sample
{
"bizId": "20260922000000000001",
"userId": "user_1234567890",
"newTwoFaInfo": "8613800138000"
}Response Sample
{
"result": {
"resultStatus": "S",
"resultCode": "SUCCESS",
"resultMessage": "Success"
},
"transactionId": "G000000001FSU20260922000000013082032459"
}