Airtime Purchase

Purchase Airtime

Airtime

POST {{base_url}}/airtime

Network ID - MTN = 2, GLO = 1, AIRTEL = 3, 9MOBILE = 4

Headers

Request Body

{
    "status": true,
    "message": "Success",
    "txref": "API665023309a400",
    "charged": 4900.5,
    "newbal": 570004.3
}

Take a look at how you might do this:

curl --location --request POST 'https://api.oneappgo.com/v1/airtime' \
--header 'Authorization: Bearer SECRET_KEY' \
--form 'phoneno="07012345678"' \
--form 'network_id="2"' \
--form 'reference="O4I3U8SRNYOIYT"' \
--form 'amount="5000"'

Sample Response

{
    "status": true,
    "message": "Success",
    "txref": "API665023309a400",
    "charged": 4900.5,
    "newbal": 570004.3
}

Last updated