Use this API call to run PEPs and Sanctions screening of entities.
// api endpoint
const apiEndpoint = 'https://dev.bronid.com/screen';
// request body
const kycData = {
"metadata_version": "4",
"metadata_serviceUid": "XL7ULiU6B4QE9Y2iWFZnhtMDKFN2",
"metadata_secretKey": "api_sec_NJAtNcRtUrPlf7xYDrMNP9URI-ZfN314",
"type": "entity",
"fields": {
"name": "The Entity Name"
},
};
// 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.log('error! click the results to expand them');
console.log(JSON.stringify(error.response.data, null, 2));
})
// Click “▶ run” to try this code live and run your first KYC.