Skip to content

Error Codes ​

Error code reference for the SmartOTP. Covers every code returned by the API. Codes raised by the Mobile SDK are out of scope for this page.

How to Read an Error ​

WARNING

SmartOTP uses code: 1 for success, unlike eKYC, eID and FaceAuthen which use code: 0. Sharing one response handler across all four services will misread every SmartOTP result.

json
{
  "success": true,
  "code": 1,
  "message": "Success"
}

Error messages are returned in Vietnamese. They are reproduced verbatim below, with an English gloss.

Error Code Table ​

CodeMessageMeaning
1Success (OTP hợp lệ)Success
3Parameter invalidInvalid parameter
103Thông tin Partner không chính xác.Wrong partner_id or partner_key
121Yêu cầu vượt giới hạn. Vui lòng thử lại sau ít phút.Rate limit exceeded
123Yêu cầu vượt giới hạn. Vui lòng thử lại sau ít phút.Rate limit exceeded
124OTP không hợp lệ.Wrong OTP code
125OTP hết hạn sử dụng.OTP has expired
126Có lỗi xảy ra vui lòng thử lại.Unspecified error
129Token không hợp lệ.Device token wrong or expired
190001Thông tin không hợp lệ, device_id đã kích hoạt Soft-OTPDevice already activated
190005SmartOTP đang kích hoạt trên một thiết bị khác.Retire the old device first
190108Tài khoản chưa hoạt động.SmartOTP not activated
190201Không thể tạo transaction hoặc transaction_id đã tồn tạiDuplicate transaction_id
190203Không tìm thấy transaction.Wrong transaction_id
190301Period không chính xác.Wrong period parameter
190303Client time không chính xác.Device clock drift

Error Codes by Endpoint ​

EndpointPossible codes
Register3 103 121 126 190001
Activate3 103 121 123 124 125 126 129
Get Status103 190005
Retire3 103 126 129
Create Transaction3 103 126 129 190108 190201
Get Transaction3 103 126 129 190108 190203
Get Latest Transaction3 103 129 190108 190203
Sync Time103 129 190108 190301 190303
Validate OTP103 121 123 124 126 129 190108 190203

Common Failures ​

SituationCodeWhat to do
User enters a correct OTP but it is rejected124Usually clock drift — call Sync Time
Cannot activate a new device190005Call Retire on the old device first
Create transaction fails190201Generate a new transaction_id; do not retry the same value
Activation key expired125Call Register again for a fresh key

Next Steps ​

Developers