Plans
Get a plan
GET
/plans/{id}needsplans:readNeeds the plans:read permission.
Path parameters
idstringrequiredThe plan's id
Response
data: Plan
idstringExample:"pln_8Hq2LmZ0aB3c"
namestringExample:"Daily 5GB"
priceKobointegerPrice, in kobo (50000 is 500 naira)
Example:50000
durationstringHuman-readable length of the plan
Example:"1 day"
dataLimitstringnullableData allowance; null is unlimited
Example:"5GB"
devicesstringnullableDevices signed in at once, a number or "unlimited"
Example:"1"
locationIdstringExample:"loc_3cD4eF5gH6"
activebooleanWhether customers can buy it
Example:true
createdAtstringnullableISO 8601 time, UTC
Example:"2026-10-01T09:30:00.000Z"
GET
/plans/{id}1curl "https://ogawifi.online/api/v1/plans/$PLAN_ID" \2 -H "Authorization: Bearer $OGAWIFI_API_KEY"200Successful response
1{2 "data": {3 "id": "pln_8Hq2LmZ0aB3c",4 "name": "Daily 5GB",5 "priceKobo": 50000,6 "duration": "1 day",7 "dataLimit": "5GB",8 "devices": "1",9 "locationId": "loc_3cD4eF5gH6",10 "active": true,11 "createdAt": "2026-10-01T09:30:00.000Z"12 }13}Was this helpful?