post https://integrations.getravenbank.com/v1/bet_account/validate
You can validate a specific betting account by parsing the customer_id
and the type
in the request body as shown in the example below.
Example Request
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'type': 'Bet9ja',
'customer_id': '15096891'
});
var config = {
method: 'post',
url: 'http://localhost:4000/bet_account/validate',
headers: { },
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Example Response
{
"status": "success",
"message": "Account verified",
"data": {
"name": "Firstname Lastname",
"type": "Bet9ja",
"email": null,
"account_number": null,
"phone_number": null,
"reference": "419e19f12c38fe7d5f04623b229938e7",
"customer_id": "25096892"
}
}