This endpoint retrieves the available education payments based on the selected Payment type.
{{base_url}}
/vas/education/education-payments
Parameter | Type | Details |
---|---|---|
bill_type | string | array key of the selected education payment e.g ['waec' => 'WAEC Result Checker'] the bill_type in this case is 'waec' |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/education/education-payments', [
'json' => [
'bill_type' => 'waec',
],
'headers' => [
'Authorization' => 'Bearer {{access_token}}',
'client-id' => 'sdaH23sE5Th4*******dDF4df',
'accept' => 'application/json',
'content-type' => 'application/json',
],
]);
echo $response->getBody();
**Response: SUCCESS (200 OK)**
{
"statusCode": 200,
"message": "Request successful"
"data": [
{
"variation_code": "waecdirect",
"name": "WASSCE/GCE",
"variation_amount": "900.00",
"fixedPrice": "Yes",
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}