Enhanced KYC
Perform an Enhanced KYC
Performing an Enhanced KYC requires you to
Determine the ID type
Gather inputs relevant for that ID type
Call the Smile ID API
Steps 1 and 2 are part of your own UI. The potential data required is available as a model: com.smileidentity.models.IdInfo
Step 3 can be accomplished by calling either the synchronous or asynchronous API:
val idInfo: IdInfo = ...
val authRequest = AuthenticationRequest(
jobType = JobType.EnhancedKyc,
enrollment = false,
userId = randomUserId(),
)
val authResponse = SmileID.api.authenticate(authRequest)
val enhancedKycRequest = EnhancedKycRequest(
partnerParams = authResponse.partnerParams,
signature = authResponse.signature,
timestamp = authResponse.timestamp,
country = idInfo.country,
idType = idInfo.idType,
idNumber = idInfo.idNumber ?: throw IllegalArgumentException("ID Number required"),
firstName = idInfo.firstName,
lastName = idInfo.lastName,
dob = idInfo.dob,
bankCode = idInfo.bankCode,
)
val response = SmileID.api.doEnhancedKyc(enhancedKycRequest)Steps 1 and 2 are part of your own UI. The potential data required is available as a model: EnhancedKycRequest
Step 3 can be accomplished by calling the API (currently, only the Asynchronous endpoint is available. This requires you to include a callback_url in the request):
Usage
let request = EnhancedKycRequest(...)
SmileID.api.authenticate(...)
SmileID.api.doEnhancedKycAsync(...)
SmileID.api.pollJobStatus(...)Steps 1 and 2 are part of your own UI. The potential data required is available as a model: FlutterEnhancedKycRequest
Step 3 can be accomplished by calling the API (currently only the Asynchronous API is available. This requires you to include a callback_url in your request):
FlutterAuthenticationRequest authRequest = FlutterAuthenticationRequest(...);
FlutterEnhancedKycRequest eKycRequest = FlutterEnhancedKycRequest(...);
SmileID.authenticate(authRequest)
.then((value) => SmileID.doEnhancedKycAsync(eKycRequest));Steps 1 and 2 are part of your own UI. The potential data required is available as a model: FlutterEnhancedKycRequest
Step 3 can be accomplished by calling the API (currently only the Asynchronous API is available. This requires you to include a callback_url in your request):
const eKycRequest = EnhancedKycRequest(...);
SmileID.doEnhancedKyc(eKycRequest);Asynchronous Enhanced KYC
You may also want to perform an Enhanced KYC asynchronously. For this, you will receive the results only to your callback URL. To do this, you must:
Include a value for
callbackUrlin yourEnhancedKycRequest.Call
SmileID.api.doEnhancedKycAsyncinstead
Last updated
Was this helpful?

