Get your API Key (take note of the environment you are running the job in)
Get the required details from your users
Submit the Job to Smile ID
Interpret your results
Get your Partner ID
You can find your Partner ID in the menu list when logged into the portal.
Get your API Key
Your api key is in the developer section of the portal.
Click on the Generate New API Key button
Copy your api key (ensure you are in the right environment)
Get the User's details
To submit a AML check job, you need the full name of the user, the birth year and the user's known nationalities.
Submit the Job to Smile ID
You can copy the sample code below and edit with your partner and job details.
require 'smile-identity-core'
# Initialize
partner_id = '<Your partner ID>'; # login to the Smile ID portal to view your partner id
api_key = '<Your API key>'; # copy your API key from the Smile ID portal
sid_server = '<0 or 1>'; # Use '0' for the sandbox server, use '1' for production server
connection = SmileIdentityCore::AmlCheck.new(partner_id, api_key, sid_server)
# Create required tracking parameters
request_params = {
job_id: '<put your unique job ID here>',
user_id: '<put your unique ID for the user here>',
full_name: '<put the full name of the user>',
countries: '<an array of the user country using ISO 3166-1 alpha-2 format>',
birth_year: '<birth year of the user in the format yyyy>',
# set search_existing_user to true to re-use the name and birth year from a previous
# biometric kyc or document verification job. NOTE: user_id must be the same as
# submitted with the biometric kyc or document verification job
search_existing_user: '<true | false>',
optional_info: '<hash of additional data>'
};
# Submit the job
response = connection.submit_job(request_params)
Example Response Body
Your response will return a JSON String containing the below: