Plans

List plans

GET/plansneedsplans:read

Every plan, newest first. Not paged: a business has a handful.

Needs the plans:read permission.

Query parameters

locationIdstring

Only plans sold at this location

Example:"string"

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
1curl "https://ogawifi.online/api/v1/plans" \2  -H "Authorization: Bearer $OGAWIFI_API_KEY"
200Successful response
1{2  "data": [3    {4      "id": "pln_8Hq2LmZ0aB3c",5      "name": "Daily 5GB",6      "priceKobo": 50000,7      "duration": "1 day",8      "dataLimit": "5GB",9      "devices": "1",10      "locationId": "loc_3cD4eF5gH6",11      "active": true,12      "createdAt": "2026-10-01T09:30:00.000Z"13    }14  ]15}