URL: /api/eduapi
Methods: POST, GET
This API endpoint allows users to purchase education pins like waec, neco, etc.
To access this endpoint, users must include their API key and secret key in the request headers.
See usage example in the code snippets below:
POST request to purchase education pins:
Content-Type: application/json
api-key: your-api-key
secret-key: your-secret-key
{
"phone": "08032566178",
"firstLevel": "NECO", // value of this key can either be firstLevel or fId, e.g. "neco" to avoid whitespace issue
"secondLevel": "Resut checker", // value of this key can either be secondLevel or sId, e.g. "result-checker" to avoid whitespace issue
}
Response:
- Status Code: 200
{
"message": "Transaction successful",
"data": {
"email": "user@example.com",
"transactionId": "202403021250s56bxh3mz5",
"activity": "NECO",
"message": "Resut checker",
"status": "Successful",
"recipient": "08032566178",
"number": 52665324546565,
"token": "555555123355533",
"amount": 10000,
"initialBalance": 1264,
"finalBalance": 264,
"Method": "API",
}
}
{
"error": "Transaction failed",
"data": {
"email": "user@example.com",
"transactionId": "202403021259avdzv2xt2c9",
"activity": "NECO",
"message": "Resut checker",
"status": "Failed",
"recipient": "08032566178",
"number": 52665324546565,
"amount": 1000,
"initialBalance": 1167,
"finalBalance": 1167,
"Method": "API",
}
}
See usage example in the code snippets below:
GET request for available firstLevel:
Content-Type: application/json
api-key: your-api-key
secret-key: your-secret-key
Response:
- Status Code: 200
[
{
"available": true,
"firstLevel": "Waec",
"fId": "waec",
"amounts": [null],
"secondLevels": [
{
"available": true,
"secondLevel": "Result Checker",
"sId": "result-checker",
"amounts": [50]
}
]
},
{
"available": true,
"firstLevel": "NECO",
"fId": "neco",
"amounts": [0],
"secondLevels": [
{
"available": true,
"secondLevel": "Result Checker",
"sId": "result-checker",
"amounts": [10]
}
]
}
]