gettopup merchant API
API Documentation
Public docs show the sandbox base URL for testing. Live production endpoints unlock after your API access is approved.
JSON over HTTPSSandbox examplesApprove for live
Sandbox docs mode
Sandbox base URL
https://sandbox.gettopup.com.ngGET
/api/get/network/Get Data Plans
Networks & plan IDs for data purchase
api:readReturns all networks with plan IDs and prices for your account type.
Required headers
| Header | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_TOKEN | Yes |
| Content-Type | application/json | Yes (POST/PUT) |
| Accept | application/json | Recommended |
Endpoint
GET
https://sandbox.gettopup.com.ng/api/get/network/Parameters / payload fields
| Parameter | Type | Description |
|---|---|---|
| — | — | No query parameters required |
Code samples
cURL
curl -X GET "https://sandbox.gettopup.com.ng/api/get/network/" \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Accept: application/json"Response sample (200)
JSON
{
"MTN": {
"network_info": { "id": 1, "name": "MTN" },
"data_plans": [
{ "id": 212, "plan_size": "1", "plan_Volume": "GB", "plan_amount": "500.00" }
]
},
"GLO": { "network_info": { "id": 2, "name": "GLO" }, "data_plans": [] }
}Sandbox examples only — live host and production keys appear after API access is approved.