Misc
Data SME
get
/v2/data/sme
Get Data SME plans, organized by duration group.
v2 of GET /data/sme. Each product's variations are nested under their duration group (ordered by sort order); ungrouped variations fall into a trailing "Others" group (id: null, slug: "ungrouped"). Vend with the variation "code" via the v1 POST /data/sme endpoint.
v2 of GET /data/sme. Each product's variations are nested under their duration group (ordered by sort order); ungrouped variations fall into a trailing "Others" group (id: null, slug: "ungrouped"). Vend with the variation "code" via the v1 POST /data/sme endpoint.
Sample Response
{
"status": "ok",
"message": "data fetched",
"data": {
"category": {
"id": 4,
"name": "Data SME",
"type": "data_sme",
"products": [
{
"id": 2,
"name": "MTN SME",
"code": "mtn",
"charges_fmt": "Free",
"groups": [
{
"id": 8,
"name": "Monthly",
"slug": "monthly",
"sort_order": 30,
"variations": [
{
"id": 512,
"name": "1GB SME (30 Days)",
"code": "mtn-sme-1gb",
"amount": 250
}
]
},
{
"id": null,
"name": "Others",
"slug": "ungrouped",
"sort_order": 9999,
"variations": [
{
"id": 520,
"name": "500MB SME",
"code": "mtn-sme-500mb",
"amount": 130
}
]
}
]
}
]
}
}
}