Introduction
This page contains guide to buy airtime on Fire Data .
Buy Airtime
Send a post request to the below endpoint, You can use the PHP integration code below....
curl --request POST 'https://firedata.com.ng/api/airtime' \
--header 'Authorization: Token YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"serviceID" : "100",
"amount" : 200,
"mobileNumber" : "0903837261"
}'
Sample Response
{
"status": "success",
"message": "Airtime purchase successful"",
"data": {
"type": "airtime",
"reference": "hdu7gy6slog9sd",
"amount": 1000,
"amountCharged": 990,
"reference": "21ir7nyhgz5wc5rpirko",
"phoneNumber": "09036022177",
"network": "MTN",
"status": "success"
}
}