This is the endpoint to get all electricity biller. it is a GET method request and you'll need your authorization token to send request
{{base_url}}
/vas/electricity
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', '{{base_url}}/vas/electricity', [
'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": [
{
"id_": "61e989f20e69308aa37a7a9f",
"name": "BEDC",
"identifier": "BENIN",
"service": "61e9854bbce8e444a497663e",
"vendor": "zealvend",
"isFixedAmount": "true",
"description": "Benin Electricity Distribution Company",
"logoUrl": "https://res.cloudinary.com/sudo-africa/image/upload/v1646209736/SafeHavenVAS/New-mtn-logo_u1dy66.jpg",
"createdAt": "2022-01-20T16:12:34.059Z",
"updatedAt": "2022-03-02T08:35:16.266Z",
"__v": 0,
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}