Misc
Data Gifting
get
/v2/data
Get Data Gifting plans, organized by duration group.
This is the v2 version of GET /data. The response is the same catalogue as v1, except each product's variations are nested under their duration group (Daily, Weekly, Monthly, Awoof, ...) ordered by the group's sort order. Variations that have not been assigned to a group are returned in a trailing "Others" group (id: null, slug: "ungrouped") so nothing is hidden.
Use the variation "code" exactly as before when vending via the v1 POST /data endpoint.
This is the v2 version of GET /data. The response is the same catalogue as v1, except each product's variations are nested under their duration group (Daily, Weekly, Monthly, Awoof, ...) ordered by the group's sort order. Variations that have not been assigned to a group are returned in a trailing "Others" group (id: null, slug: "ungrouped") so nothing is hidden.
Use the variation "code" exactly as before when vending via the v1 POST /data endpoint.
Sample Response
{
"status": "ok",
"message": "data fetched",
"data": {
"category": {
"id": 2,
"name": "Data Gifting",
"type": "data",
"products": [
{
"id": 2,
"name": "MTN Gifting",
"code": "mtn",
"charges_fmt": "Free",
"groups": [
{
"id": 3,
"name": "Daily",
"slug": "daily",
"sort_order": 10,
"variations": [
{
"id": 404,
"name": "1GB Daily Digital Bundle",
"code": "NACT_NG_Data_2001",
"amount": 200
}
]
},
{
"id": 5,
"name": "Weekly",
"slug": "weekly",
"sort_order": 20,
"variations": [
{
"id": 406,
"name": "15GB Weekly Digital Bundle",
"code": "NACT_NG_Data_2003",
"amount": 2000
}
]
},
{
"id": 1,
"name": "Awoof / Special Offers",
"slug": "awoof",
"sort_order": 0,
"variations": [
{
"id": 405,
"name": "3.5GB 2-Days Awoof Bundle",
"code": "NACT_NG_Data_2002",
"amount": 500
}
]
},
{
"id": null,
"name": "Others",
"slug": "ungrouped",
"sort_order": 9999,
"variations": [
{
"id": 410,
"name": "Unclassified Bundle",
"code": "NACT_NG_Data_2099",
"amount": 300
}
]
}
]
},
{
"id": 7,
"name": "9mobile Gifting",
"code": "9mobile",
"charges_fmt": "Free",
"groups": []
}
]
}
}
}