Data Bundle
Purchase Data Bundle
Data Bundle
POST
{{base_url}}/databundle
Netword ID - GLO = 1, MTN = 2, AIRTEL = 3, 9MOBILE = 4
Headers
Name
Type
Description
authorization*
SECRET_KEY
Set value to Bearer PUBLIC_KEY
Request Body
Name
Type
Description
network_id*
String
Network ID for each network as shown above
datacode*
String
phoneno*
String
reference
String
Transaction reference. This should be a unique identifier from you
dtype*
String
Specify the data type as direct or sme based on the return from the dataplans response
{
"status": true,
"message": "Success",
"txref": "API1090229525d60",
"charged": "260.00",
"newbal": 40083.79
}
Take a look at how you might do this:
curl --location --request POST 'https://api.oneappgo.com/v1/databundle' \
--header 'Authorization: Bearer SECREY_KEY' \
--form 'datacode="1000"' \
--form 'network_id="2"' \
--form 'phoneno="07012345678"' \
--form 'dtype="sme"' \
--form 'reference="DJIEJ2MEUE2EN34"'
Sample Response
{
"status": true,
"message": "Success",
"txref": "API1090229525d60",
"charged": "260.00",
"newbal": 40083.79
}
Last updated
Was this helpful?