Introduction

This page contains guide for all data plans on pherheezdata.com.

Get Network Codes

Send a GET request to the endpoint below to access the available network.

pherheezdata.com/api/plans?id=network

REQUEST TYPE -- GET

Get Data Plan

Send a GET request to the endpoint below to access the available data plans.

pherheezdata.com/api/plans?id=data

REQUEST TYPE -- GET

Buy Data

Send a post request to the below endpoint.

pherheezdata.com/api/data
Body
{
"network": 1,
"plan": 7,
"mobile_number": 080********,
}

Note: The body fields should not be blank.

Expected response:

{"response": {
"code":200,"status":"successful",
"message":"Transaction Successfully logged", "date_time":"Feb. 22, 2021, 10:25 am"},
"service":"Data Topup","plan":"1 GB - 1 Month Validity",
"type":"SME","amount":"300",
"wallet_balance":300,
"reference":"5094971203053185132"
}

REQUEST TYPE -- POST