Dear Team we have trying create hook for Equifax (Credit Bureau) integration using below request but i m not able to do anyone can Guide me how can integrate CREDIT BUREAU with Mifos
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"name": "Web",
"isActive": true,
"displayName": "equifax",
"templateId": 1,
"events": [{
"actionName": "CREATE",
"entityName": "equifax"
},
{
"actionName": "UPDATE",
"entityName": "equifax"
}
],
"config": {
"Content Type": "json"
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Basic bWlmb3M6cGFzc3dvcmQ=',
'Content-Type: text/plain'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
RESPONSE
{
"timestamp": 1629263094285,
"status": 400,
"error": "Bad Request",
"message": "",
"path": "/fineract-provider/api/v1/hooks"
}