Use this API call to generate KYC forms for private companies.
// api endpoint
const apiEndpoint = 'https://dev.bronid.com/idform';
// request body
const kycData = {
"metadata_serviceUid": "XL7ULiU6B4QE9Y2iWFZnhtMDKFN2",
"metadata_secretKey": "api_sec_NJAtNcRtUrPlf7xYDrMNP9URI-ZfN314",
"metadata_version": "4",
"metadata_userId": "yourUniqueUserId",
"bronLink_dataAccessType": "idForm",
"type": "privateCompany",
"fields": {
"country": "AUS",
"abn": "16123456789",
"acn": "123456789",
"name": "Pass My Company",
"registeredOffice": "125 York Street",
"principalPlaceOfBusiness": "250 York Street",
"companyExtract": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
},
// stakeholder details
"stakeholders": [
{
"type": "individual",
"role": "shareholders",
"fields": {
"country": "AUS",
"firstName": "Jane",
"middleName": "ok",
"lastName": "Citizen",
"gender": "female",
"dateOfBirth": "11/10/1980",
"address": "125 York st",
"email": "email@gmail.com",
"medicareCardColour": "green",
"medicareCardNumber": 2428778132,
"medicareIndividualReferenceNumber": 1,
"medicareNameOnCard": "Jane Citizen",
"medicareExpiryDate": "12/2030",
"medicareImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
}
},
{
"type": "individual",
"role": "directors",
"fields": {
"country": "AUS",
"firstName": "Dave",
"middleName": "ok",
"lastName": "Citizen",
"gender": "male",
"dateOfBirth": "20/10/1980",
"address": "125 Pitt st",
"email": "email@gmail.com",
"driversLicenceNumber": "11111111",
"driversLicenceCardNumber": "1234567890",
"driversLicenceState": "NSW",
"driversLicenceImageFront": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",
"driversLicenceImageBack": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",
"passportNumber": "A1111111",
"passportCountryOfIssue": "AUS",
"passportImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
}
}
]
};
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.