Identity Verification
Securely identify your users. | Enterprise
Before you can assign contacts to user wallets, you will need to use Rapyd’s identity verification service.
Once you create a new user wallet, you will need to verify their identity. The identity verification process requires the following contact information:
First Name, Last Name
Date of Birth
Address, Including Country
Official Identification Document
Nationality
Selfie picture
You ask the customer for the country of residence.
The customer provides the country information.
Your website back end asks Rapyd for a list of acceptable identification documents for that country.
Rapyd returns the list of documents.
You ask the customer to scan or photograph one or more documents.
The customer sends the images of the documents to your website.
Your website back end requests Rapyd to verify the identity.
Rapyd verifies the customer's identity and returns a confirmation to your website.
You notify the customer of the confirmation.
Prerequisites
To run the examples of this use case, you must create the following ID in your own sandbox:
ewallet - Run Create Wallet for the customer's wallet. Use the wallet ID you get in the response. For more information, see Creating a Rapyd Wallet .
When the customer requests financial services that require a Rapyd wallet, you ask Rapyd for the types of acceptable identification documents for the customer's country of residence.
For that, you'll use List Official Identification Documents with the following parameter:
Query Parameter | Description |
---|---|
country | Enter US as the country code for the customer's country of residence. |
List Official Identification Documents Request
You ask Rapyd for the types of identification documents that are acceptable in customer's country.
Request
// Request URL: GET https://sandboxapi.rapyd.net/v1/identities/types?country=US // Message body absent
.NET Core
using System; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { string country = "US"; string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/identities/types?country={country}"); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine("Error completing request: " + e.Message); } } } }
JavaScript
const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest; async function main() { try { const result = await makeRequest('GET', '/v1/identities/types?country=US'); console.log(result); } catch (error) { console.error('Error completing request', error); } }
PHP
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/<path-to-your-utility-file>/utilities.php"; include($path); try { $object = make_request('get', '/v1/identities/types?country=US'); var_dump($object); } catch (Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request country = 'US' results = make_request(method='get', path=f'/v1/identities/types?country={country}') pprint(results)
List Official Identification Documents Response
Let's take a look at the response.
Response
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "c34e0097-47cf-426e-ad7b-9181310824df" }, "data": [ { "country": "US", "type": "DL", "name": "Driver's License", "is_back_required": true, "is_address_extractable": false }, { "country": "US", "type": "ID", "name": "Identity Card", "is_back_required": true, "is_address_extractable": false }, { "country": "US", "type": "PA", "name": "Passport", "is_back_required": false, "is_address_extractable": false }, // ... ] }
The data
section of this response shows the types of identification that can be used to verify identity in the US. This edited example shows only three types. Each document is described with the following parameters:
The
country
is US .The
type
is a two-letter abbreviation for the type of document.The
name
is the type of document, spelled out in words.is_back_required
- Indicates whether the process requires both sides of the document or only the front side.is_address_extractable
- Indicates whether the document contains the individual's address, which also can be used in verifying identity.
Your website shows the customer the types of identification documents he can choose from to verify his identity. When he chooses a document type, your website asks for the front-side image, and (if required) the back.
When the customer provides the selfie and document images, you send an identity verification request to Rapyd.
For that, you'll use Verify Identity with the following parameters:
Body Parameter | Description |
---|---|
country | Enter US as the country code for the customer's country of residence. |
document_type | Enter PA as the code for the customer's identification document - his passport. |
ewallet_id | Enter the wallet 'id' that you received when you created the wallet in your sandbox. For purposes of this use case lesson, we are using ewallet_4250f5f5f9492a9425cb2061fac8c2f1, which is the wallet ID we created in our sandbox. |
face_image | Enter the base-64 encoded image of the customer's face. In the example below, we show just the first few bytes of the multi-megabyte image. You can use the test image that appears in the Test Image tab, below. |
front_side_image | Enter the base-64 encoded image of the identification page of the customer's passport. In the example below, we show just the first few bytes of the multi-megabyte image. You can use the test image that appears in the Test Image tab, below. |
reference_id | ID of the identity verification request. Must be unique for each request. Defined by the client. Maximum length: 36 characters. In sandbox, to simulate success or failure, the string must contain one of the following values: success, failure. For example: 12345678success |
We will use the default MIME type of image/jpeg for the two images.
Verify Identity Request
You ask Rapyd to verify the customer's identity.
Request
// Request URL: POST https://sandboxapi.rapyd.net/v1/identities // Message body: { "reference_id": "555", "ewallet": "ewallet_4250f5f5f9492a9425cb2061fac8c2f1", "country": "US", "document_type": "PA", "front_side_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk=", "front_side_image_mime_type": "image/jpeg", "face_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk=", "face_image_mime_type": "image/jpeg" }
Test image
/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgYGBcXFxcYFxcWFxcXFxgYHSggGB0lGxcYITEhJSkrLi4uGB81ODMtNygtLi0BCgoKDg0OGxAQGy0lHyUtLS0tLS0tLS0tKy0tLi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALIBGwMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAGAAECBAUDBwj/xABGEAACAQIDBgMECAMFBwQDAAABAgMAEQQSIQUGEyIxQVFhcSMygZEUM0JScqGxwaLR8AcVFmKCJJKTwtLh8UNTc+I0RGP/xAAaAQACAwEBAAAAAAAAAAAAAAABAgADBAUG/8QAMhEAAgIBAwICCQQBBQAAAAAAAAECEQMSITEEQVFxBRMyYYGRodHwFCKxweEjM1JTov/aAAwDAQACEQMRAD8A9UpqbNVbaONEUZkIuAVza2yqzqrN/pBLfCriktUxoZffBVTO8WWxUEFwCLmVmHTqIow9u/EVepvW5jp2VC0ahyBcLmy5vQ2PagpJgssUqB/8dkxNKMOSqsEI4guLi4JGXodR6irMO97tGJBh7hpBClpPfY3uV5egINz5HwoLJF8AUkwvvSoc/wAToMWuFI1K6tfo5GbIRb7ve/cV02zvBwZY4I04ksmoBbIoGurNY2906AHpR1olo36VC2K3nkiieV8OQY5OG4z9yEKshy86nMNbCoT71smGTEmDkc9OILgH3T7vfX0oPJEmpBZSvQbjt82iiimfD8sq5ltICbWBF+XwIqe0N8Th5VjngK3AYlXzWBJHTKL2IOnlUeSKA5IMKasGXbxE8cSxhkkUyLIHFsi5cxtb/MO+tVMN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RAhsexYi7EeNtasYPdmWIcskRcIEztGQzDhRRsjEN7nIWUDoSunKcxVa1KpRAUj3TYFvbAAhhotr5iCM3iLAKR/lGvYWpt3dQRwiA0zEOrMWExkORiT0u4JPivQ30IbUrVAGJsLZD4dmZ5eJmihj90rYwhwSNToQw08je5N63KYrSAqA7jmlpSpiaIR8tPlplNOxtQJQI4XdOWMkRYto7mR+VcoLvGiIzgMA4Vkza6kGxPcvtjdEzTCTjsLQpDZhnJMbh+IWJ97rY/eObqAQTFyb26jt41QbGXcaEW0NIxzI2xsEySpLxiGDxsSyhmJi4moGiA2ew5bDU2uaxdqbmtO7OZwCTMTaMANxI1TnFwL8t2a2tyNBpRlJPfr0veuUpUi51NtD+3hVbHRg7C2V9GzjiZ82U3tbVVC3bxJ8fAKOgArQaRr6Hz0uOuvjTAC/9f0KRnt978qUdG24974/vVRjpf0pUqpXIg0nQ+h/WtDZppUqeBFyaNNSpVeMMDTU1KmQjIjvUaVKmQrE1JaVKoAZqQpUqIBjUlpUqgR36CkKVKgF8jUx/r86alRAMhpUqVQAqcf186VKoERNPTUqCAM1RvSpUxCa0iaalSDHHCn9P3qhj+h9T+gpUqR8DooX0v6ftXRhyn0/elSpBjko5b+v7U4NKlSsh/9k=
.NET Core
using System; using System.Text.Json; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { var requestObj = new { reference_id = "555", ewallet = "ewallet_4250f5f5f9492a9425cb2061fac8c2f1", country = "US", document_type = "PA", front_side_image = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk=", front_side_image_mime_type = "image/jpeg", face_image = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk=", face_image_mime_type = "image/jpeg", }; string request = JsonSerializer.Serialize(requestObj); string result = RapydApiRequestSample.Utilities.MakeRequest("POST", "/v1/identities", request); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine("Error completing request: " + e.Message); } } } }
JavaScript
const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest; async function main() { try { const body = { reference_id: '555', ewallet: 'ewallet_4250f5f5f9492a9425cb2061fac8c2f1', country: 'US', document_type: 'PA', front_side_image: '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk=', front_side_image_mime_type: 'image/jpeg', face_image: '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk=', face_image_mime_type: 'image/jpeg' }; const result = await makeRequest('POST', '/v1/identities', body); console.log(result); } catch (error) { console.error('Error completing request', error); } }
PHP
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/<path-to-your-utility-file>/utilities.php"; include($path); $body = [ "reference_id" => "555", "ewallet" => "ewallet_4250f5f5f9492a9425cb2061fac8c2f1", "country" => "US", "document_type" => "PA", "front_side_image" => "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk=", "front_side_image_mime_type" => "image/jpeg", "face_image" => "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk=", "face_image_mime_type" => "image/jpeg" ]; try { $object = make_request('post', '/v1/identities', $body); var_dump($object); } catch (Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request wallet_id = 'ewallet_4250f5f5f9492a9425cb2061fac8c2f1' idv_details = { "reference_id": "555", "ewallet": wallet_id, "country": "US", "document_type": "PA", "front_side_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk==", "front_side_image_mime_type": "image/jpeg", "face_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk==", "face_image_mime_type": "image/jpeg", "request_type": "store" } results = make_request(method='post', path=f'/v1/identities', body=idv_details) pprint(results)
Verify Identity Response
Let's take a quick look at the response.
Response
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "70d9e1a7-416d-45ab-bfee-95788f8d1bbb" }, "data": { "id": "kycid_6899d0a145c264bdb04fc7dc421a03f3", "reference_id": "555" } }
The response shows that the request to process the identity verification was successful. The data
section of this response shows:
id
- The ID of the Rapyd identity verification request. This is a string starting with kycid_.reference_id
- The merchant's ID for the verification request.
Note that the verification process is not complete until you receive the confirmation webhook.
When the customer's identity verification is complete, Rapyd sends you a webhook with the verification details.
Let's take a look at Webhook - Identity Verification.
Webhook
{ "id": "wh_43f74f800f28020c8d6fb07300efe132", "type": "IDENTITY_VERIFICATION", "data": { "id": "kycid_6899d0a145c264bdb04fc7dc421a03f3", "state": null, "images": "v1/kyc/identities/images?reference_id=1244874", "country": "US", "ewallet": "ewallet_a53642921c9d4bd8c9f35e7aa01aacf2", "id_number": "835714121", "last_name": "Doe", "created_at": 1549462299, "first_name": "John", "reference_id": "1244874", "date_of_birth": "1984/07/31", "document_type": "PASSPORT", "reject_reason": null, "request_source": "WEB_CAM", // ... "expiration_date": "1848614400", "face_validation": true, "document_sub_type": null, "verification_status": "APPROVED" }, "trigger_operation_id": "", "status": "NEW", "created_at": 1549462299 }
For a description of the webhook fields, see Webhook - Identity Verification .
Your website shows the customer that his identity was successfully verified.
A company wallet can include one or more personal contacts. To verify the identity of one of those contacts, you must include the ID of the contact in the request. See Wallet Contact.
You have the option to verify the contact the within the company wallet. Use the 'Verify Identity' method, and add the contact
field as demonstrated in this example:
Verify a Contact of a Company Wallet Request
Request
// Request URL: POST https://sandboxapi.rapyd.net/v1/identities // Message body: { "reference_id": "121wpo234q12", "ewallet": "ewallet_aefe9c471842245e438b0902ed9f7fd1", "contact": "cont_241d6b40117716b525ec6dda72feee40", "country": "US", "document_type": "PA", "front_side_image": "/9j/4AAQSkZJRgABAQAAAQABAAD", "front_side_image_mime_type": "image/jpeg", "face_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/=", "face_image_mime_type": "image/jpeg" }
JavaScript
const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest; async function main() { try { const body = { reference_id: '121wpo234q12', ewallet: 'ewallet_aefe9c471842245e438b0902ed9f7fd1', contact_id: 'cont_241d6b40117716b525ec6dda72feee40', country: 'US', document_type: 'PA', front_side_image: '/9j/4AAQSkZJRgABAQAAAQABAAD', front_side_image_mime_type: 'image/jpeg', face_image: '/9j/4AAQSkZJRgABAQAAAQABAAD/=', face_image_mime_type: 'image/jpeg' }; const result = await makeRequest('POST', '/v1/identities', body); console.log(result); } catch (error) { console.error('Error completing request', error); } }
PHP
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/<path-to-your-utility-file>/utilities.php"; include($path); $body = [ "reference_id" => "121wpo234q12", "ewallet" => "ewallet_aefe9c471842245e438b0902ed9f7fd1", "contact" => "cont_241d6b40117716b525ec6dda72feee40", "country" => "US", "document_type" => "PA", "front_side_image" => "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMk=", "front_side_image_mime_type" => "image/jpeg", "face_image" => "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSEhIVFhUXGBoVGRgk=", "face_image_mime_type" => "image/jpeg" ]; try { $object = make_request('post', '/v1/identities', $body); var_dump($object); } catch (Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request wallet_id = 'ewallet_aefe9c471842245e438b0902ed9f7fd1' contact_id = 'cont_241d6b40117716b525ec6dda72feee40' idv_details = { "reference_id": "121wpo234q12", "ewallet": wallet_id, "contact": contact_id, "country": "US", "document_type": "PA", "front_side_image": "/9j/4AAQSkZJRgABAQAAAQABAA==", "front_side_image_mime_type": "image/jpeg", "face_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/==", "face_image_mime_type": "image/jpeg" } results = make_request(method='post', path=f'/v1/identities', body=idv_details) pprint(results)
Verify a Contact of a Wallet Response
Response
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "2ca8ee32-1c6e-4a9c-9ee5-8111117b6440" }, "data": { "id": "kycid_c4a223f0f92e72d6a0006deafd182d30", "reference_id": "121wpo234q12" } }
Looking for More In-Depth Technical Information?
Want to see the Rapyd API methods and objects that you'll use? Visit the API Reference for more technical details.