Overview
Introduction
The OgaWiFi API lets a business connect its own systems to its hotspot: read its plans, locations, vouchers, payments and customers, hear about sales the moment they happen through webhooks, and decide who may buy with decision hooks. Everything on this page is generated from the code that runs the API, so it is always current.
Base URL
Every request goes to:
Base URL
1https://ogawifi.online/api/v1Request & response format
Requests and responses are JSON. Money is integer kobo, in fields named ...Kobo; times are ISO 8601 in UTC. A success is { "data": ... }, and a list adds "nextCursor".
Example response, from Get a voucher:
JSON
1{2 "data": {3 "id": "vch_Zx81kQ0pLm",4 "status": "active",5 "username": "ada-4821",6 "source": "purchase",7 "customerUid": "u_9fK2mP7qR1",8 "customerEmail": "ada@example.com",9 "planId": "pln_8Hq2LmZ0aB3c",10 "planName": "Daily 5GB",11 "locationId": "loc_3cD4eF5gH6",12 "duration": "1 day",13 "dataLimit": "5GB",14 "renewalOf": null,15 "paymentReference": "hs_1761818400000_0123456789abcdef",16 "createdAt": "2026-10-30T10:00:00.000Z",17 "expiresAt": "2026-10-31T10:05:00.000Z"18 }19}Available endpoints
Was this helpful?