e.g Distribution Company (Provider) as shown above
meterno*
String
Meter number
{
"status": true,
"name": "IBRAHIM MARY OPE",
"minvend": 200,
"maxvend": 1000000,
"vendtype": "PREPAID",
"address": "4, ORAN STR 1, . Und St. Central Area"
}
Take a look at how you might do this:
curl --location --request GET 'https://api.oneappgo.com/v1/verifyelect?meterno=45022599083&provider=ABUJA' \
--header 'Authorization: Bearer PUBLIC_KEY'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api.oneappgo.com/v1/verifyelect?meterno=45020599183&provider=ABUJA',
'headers': {
'Authorization': 'Bearer PUBLIC_KEY'
},
formData: {
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
{
"status": true,
"name": "IBRAHIM MARY OPE",
"minvend": 200,
"maxvend": 1000000,
"vendtype": "PREPAID",
"address": "4, ORAN STR 1, . Und St. Central Area"
}