Skip to main content
POST
/
api
/
topup
Buy Airtime
curl --request POST \
  --url https://api.mysubwallet.ng/api/topup \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "network": 1,
  "phone": "2347013397088",
  "plan_type": "VTU",
  "amount": 100,
  "request-id": "Airtime_12345678900",
  "bypass": false
}
'
{
  "network": "MTN",
  "amount": "100",
  "status": "success",
  "message": "Airtime delivered to 2347013397088.",
  "newbal": 110225,
  "system": "API"
}

Authorizations

Authorization
string
header
required

Your API key as Token <your_api_key>.

Body

application/json
network
integer
required
Example:

1

phone
string
required
Example:

"2347013397088"

plan_type
enum<string>
required
Available options:
VTU,
SNS
Example:

"VTU"

amount
integer
required
Example:

100

request-id
string
required
Example:

"Airtime_12345678900"

bypass
boolean
default:false

Response

200 - application/json

Result