Data Plans

Get Data Bundle Plans

Data Plans

GET {{base_url}}/getdataplans

Headers

NameTypeDescription

authorization*

PUBLIC KEY

Set value to Bearer PUBLIC_KEY

Request Body

NameTypeDescription

provider*

Network Provider e.g. MTN, AIRTEL, GLO, 9MOBILE

datatype

String

Pass data as direct or sme to get Direct data or SME plans respectively.

When nothing is passed, SME data plans would be returned

{
    "status": true,
    "message": "Data Plans Retrieved",
    "data": [
        {
            "pname": "MTN 1.0GB/30days",
            "price": 260,
            "datacode": "1000",
            "point": "1.0"
        },
        {
            "pname": "MTN 1.0GB/30days (SME)",
            "price": 260,
            "datacode": "mtn1000sme",
            "point": "1.0"
        },
        {
            "pname": "MTN 10.0GB/30days",
            "price": 2900,
            "datacode": "10000",
            "point": "10.0"
        }
    ]
}

Take a look at how you might do this:

curl --location --request GET 'https://api.oneappgo.com/v1/getdataplans?provider=MTN' \
--header 'Authorization: Bearer PUBLIC_KEY'

Sample Response

{
    "status": true,
    "message": "Data Plans Retrieved",
    "data": [
        {
            "pname": "MTN 1.0GB/30days",
            "price": 260,
            "datacode": "1000",
            "point": "1.0",
            "dtype": "sme"
        },
        {
            "pname": "MTN 1.0GB/30days (SME)",
            "price": 260,
            "datacode": "mtn1000sme",
            "point": "1.0",
            "dtype": "sme"
        },
        {
            "pname": "MTN 10.0GB/30days",
            "price": 2900,
            "datacode": "10000",
            "point": "10.0"
            "dtype": "direct"
        }
    ]
}

Last updated