get https://integrations.getravenbank.com/v1/airtime/record
Raven atlas API allows you to retrieve a single airtime record by making a GET request to the endpoint /airtime/record
parsing the phone_number
as a query param as shown in the example below
Example Requests
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'phone_number': '07039765515'
});
var config = {
method: 'get',
url: 'https://integrations.getravenbank.com/v1/airtime/record?phone_number=07039721121',
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": "Airtime record found",
"data": [
{
"id": 15,
"merchant_email": "test@gmail.com",
"phone_number": "07039721121",
"reference": "20220822155329va0ujztr9r606317g9tt3",
"status": "successful",
"network": "MTN",
"request_id": "20220822155329va0ujztr9r606317g9tt3",
"amount": 50,
"currency": "NGN",
"provider": "2",
"merchant_reference": "12345678",
"created_at": "2022-08-22T14:53:29.000Z"
},
{
"id": 14,
"merchant_email": "test@gmail.com",
"phone_number": "07039721121",
"reference": "20220822155247rpdxb3lf2eqsdh841qir8",
"status": "successful",
"network": "MTN",
"request_id": "20220822155247rpdxb3lf2eqsdh841qir8",
"amount": 50,
"currency": "NGN",
"provider": "2",
"merchant_reference": "202208221652IAJAIHH",
"created_at": "2022-08-22T14:52:47.000Z"
}
]
}