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",
"secondLevel": "Resut checker",
}
Response:
- Status Code: 200
{
"message": "Transaction successful",
"eduHistory": {
"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",
"eduHistory": {
"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
[
{
"firstLevel": "NECO",
"secondevel": "Result checker",
"amount": 1000
},
{
"firstLevel": "WAEC",
"secondevel": "Exam pin",
"amount": 1000
}
]