Plans

Get a plan

GET/plans/{id}needsplans:read

Needs the plans:read permission.

Path parameters

idstringrequired

The plan's id

Response

data: Plan

idstring

Example:"pln_8Hq2LmZ0aB3c"

namestring

Example:"Daily 5GB"

priceKobointeger

Price, in kobo (50000 is 500 naira)

Example:50000

durationstring

Human-readable length of the plan

Example:"1 day"

dataLimitstringnullable

Data allowance; null is unlimited

Example:"5GB"

devicesstringnullable

Devices signed in at once, a number or "unlimited"

Example:"1"

locationIdstring

Example:"loc_3cD4eF5gH6"

activeboolean

Whether customers can buy it

Example:true

createdAtstringnullable

ISO 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}