Use this API call to perform KYC verification of individuals.
Submitting ID documents is optional. You can use ID documents as a verification source to improve
the likelihood of a successful verification.
// api endpoint
const apiEndpoint = 'https://dev.bronid.com/verify';
// request body
const kycData = {
"metadata_version": "4",
"metadata_serviceUid": "XL7ULiU6B4QE9Y2iWFZnhtMDKFN2",
"metadata_secretKey": "api_sec_NJAtNcRtUrPlf7xYDrMNP9URI-ZfN314",
"metadata_userId": "yourUniqueUserId",
"type": "individual",
"fields": {
"country": "NZL",
"firstName": "Jane",
"middleName": "ok",
"lastName": "Citizen",
"gender": "female",
"dateOfBirth": "20/10/1982",
"unitNumber": "1",
"streetNumber": "20",
"streetName": "Karamu",
"streetType": "Street",
"suburb": "Taupo",
"postcode": "3330",
"email": "email@gmail.com"
}
};
// submit the KYC data to the bronID API
axios
.post(apiEndpoint, kycData)
.then(res => {
// print the verification results
console.log('click the results to expand them');
console.log(JSON.stringify(res.data, null, 2));
})
.catch(error => {
console.error(error)
})
// Click “▶ run” to try this code live and run your first KYC.