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/validatemeter/Validate Meter
GET — verify electricity meter before payment
api:readRequired 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/validatemeter/Parameters / payload fields
| Query param | Type | Required | Description |
|---|---|---|---|
| meternumber | string | Yes | Meter number |
| disconame | string/int | Yes | Disco name or ID |
| mtype | string | Yes | PREPAID or POSTPAID (or 1/2) |
Code samples
cURL
curl -X GET "https://sandbox.gettopup.com.ng/api/validatemeter/?meternumber=45012345678&disconame=1&mtype=PREPAID" \
-H "Authorization: Token YOUR_API_TOKEN"Response sample (200)
JSON
{
"invalid": false,
"name": "JOHN DOE",
"address": "12 Sample Street, Lagos"
}Sandbox examples only — live host and production keys appear after API access is approved.