Use this API call to perform KYC verification of sole traders.
You can add tags to your verification requests to help you organise your verifications by using the
.
// 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",
"metadata_tags": ["product1", "client1"],
"type": "soleTrader",
"fields": {
"country": "USA",
"name": "entity name",
"entityNumber": "123456",
"principalPlaceOfBusinessRequired": "Principal address USA"
},
"stakeholders": [
{
"type": "individual",
"role": "individuals",
"fields": {
"firstName": "American",
"middleName": "ok",
"lastName": "Person",
"gender": "female",
"dateOfBirth": "30/10/1982",
"email": "person@email.com",
"country": "USA",
"socialSecurityNumber": "12345",
"address": "250 Point Lobos Ave, San Francisco CA",
"unitNumber": "",
"streetNumber": "250",
"streetName": "Point Lobos",
"streetType": "Ave",
"suburb": "San Francisco",
"postcode": "941211471",
"state": "CA",
"phone": "0432248425"
}
}
]
};
console.log('Running request...')
// submit the KYC data to the bronID API
const bronIdResult = await axios
.post(apiEndpoint, kycData)
.then(res => {
return res.data;
})
.catch(error => {
console.log('error! click the results to expand them');
console.log(JSON.stringify(error.response.data, null, 2));
})
const printResult = 'bronId API response: ' + JSON.stringify(bronIdResult, null, 2);
// Click “▶ run” to try this code live and run your first KYC.