YOLA Electricity Distribution Company (YEDC) Payment API Integration
This section contains the recommended flow for integrating Yola Electric Bills Payment services on the VTpass RESTful API.
This API allows payment to both prepaid and postpaid YEDC meters.
The VTpass YEDC payment API allows you to vend token for YEDC Prepaid meters and also pay electricity bills for YEDC Postpaid meters using the meter number / Account ID.
For Prepaid meters, a token is generated. This token will be loaded on the customer’s meter by the customer.
Please display token to customer after a successful transaction, also send token by email and SMS to customer.
YEDC Electric covers the following States : Adamawa, Taraba, Borno, & Yobe states.
Authentication
Learn about authentication from here.
Available Endpoints
To integrate the VTpass Yola Electric (YEDC) Bills Payment RESTful API, the endpoints below applies:
- Verify Meter Number
- Purchase Product (prepaid and postpaid payments available)
- Query transaction status
Always ensure you validate the customer’s meter number.
ServiceID: yola-electric
VERIFY METER NUMBER
Using a POST method, you can verify a meter number with the following endpoint:
Live: https://vtpass.com/api/merchant-verify
Sandbox: https://sandbox.vtpass.com/api/merchant-verify
On Sandbox, please use the following meter numbers (sandbox) to test:
For prepaid: 1111111111111
For Postpaid: 1010101010101
To simulate a failed meter number validation, please use any number apart from the one provided above as meter number.
FIELDS | M/O | TYPE | DESCRIPTION |
billersCode | M | Number | The meter number you wish to make the bills payment on.
On Sandbox For Postpaid: 1010101010101 |
serviceID | M | String | Service ID as specified by VTpass. In this case, it is yola-electric |
type | M | String | This is basically the type of meter you are trying to validate. It can be either prepaid or postpaid |
EXPECTED RESPONSE
{ "code": "000", "content": { "Customer_Name": "GEORGE", "Meter_Number": "04254517835", "Business_Unit": "", "Address": "8 Aza STREET", "Customer_Arrears": "" } }
PURCHASE PRODUCT (Payment)
You can make a purchase for either a prepaid or postpaid meter.
Prepaid Meter Payment
Using a POST method, prepaid Token can be vended for YOLA Electric prepaid meters with the endpoint below:
Live: https://vtpass.com/api/pay
Sandbox: https://sandbox.vtpass.com/api/pay
ServiceID: yola-electric
On Sandbox, please use the following prepaid meter number to test:
For prepaid: 1111111111111
To simulate a failed prepaid meter purchase, please use any number apart from the one provided above as meter number.
FIELDS | Mandatory/Optional | TYPE | DESCRIPTION |
request_id | M | String | This is a unique reference with which you can use to identify and query the status of a given transaction after the transaction has been executed.
Click here to understand how to generate a valid request ID
|
serviceID | M | String | Service ID as specified by VTpass. In this case, it is yola-electric |
billersCode | M | String | The meter number you wish to make the bills payment on |
variation_code | M | String | This is the meter type. In this case prepaid |
amount | M | Number | The amount (Naira) of electricity you want to purchase. |
phone | M | Number | The phone number of the customer or recipient of this service |
EXPECTED RESPONSE
{ "code": "000", "content": { "transactions": { "status": "delivered", "product_name": "YOLA Electric - YEDC", "unique_element": "1111111111111", "unit_price": 5000, "quantity": 1, "service_verification": null, "channel": "api", "commission": 50, "total_amount": 5050, "discount": null, "type": "Electricity Bill", "email": "sandbox@vtpass.com", "phone": "07061933309", "name": null, "convinience_fee": 100, "amount": 5000, "platform": "api", "method": "api", "transactionId": "16768963780894197846385048" } }, "response_description": "TRANSACTION SUCCESSFUL", "requestId": "202302201332123456789067", "amount": "5000.00", "transaction_date": { "date": "2023-02-20 13:32:58.000000", "timezone_type": 3, "timezone": "Africa/Lagos" }, "purchased_code": "Token : 36001644489787932779", "exchangeReference": null, "arrearsBalance": null, "appliedToArrears": null, "wallet": null, "vat": null, "invoiceNumber": null, "appliedToWallet": null, "units": "", "token": "36001644489787932779" }
Postpaid Meter Payment
Using a POST method, electricity bills can be paid for Yola Electric postpaid meters with the endpoint below:
Live: https://vtpass.com/api/pay
Sandbox: https://sandbox.vtpass.com/api/pay
ServiceID: yola-electric
On Sandbox, please use the following meter number to test:
For postpaid: 1010101010101
To simulate a failed postpaid meter payment, please use any number apart from the one provided above as meter number.
FIELDS | Mandatory/Optional | TYPE | DESCRIPTION |
request_id | M | String | This is the reference with which you can use to query the status of a given transaction after the transaction has been executed. |
serviceID | M | String | Service ID as specified by VTpass. In this case, it is yola-electric |
billersCode | M | String | The meter number you wish to make the bills payment on |
variation_code | M | String | This is the meter type. In this case postpaid
|
amount | M | Number | The amount (Naira) of electricity you want to purchase |
phone | M | Number | The phone number of the customer or recipient of this service |
EXPECTED RESPONSE
{ "code": "000", "content": { "transactions": { "status": "delivered", "product_name": "Yola Electric - YEDC", "unique_element": "1010101010101", "unit_price": 5000, "quantity": 1, "service_verification": null, "channel": "api", "commission": 50, "total_amount": 5050, "discount": null, "type": "Electricity Bill", "email": "sandbox@vtpass.com", "phone": "07061933309", "name": null, "convinience_fee": 100, "amount": 5000, "platform": "api", "method": "api", "transactionId": "16768968041524421988824134" } }, "response_description": "TRANSACTION SUCCESSFUL", "requestId": "202302201339123456789067", "amount": "5000.00", "transaction_date": { "date": "2023-02-20 13:40:04.000000", "timezone_type": 3, "timezone": "Africa/Lagos" }, "purchased_code": "", "exchangeReference": "16735244925424401", "arrearsBalance": null, "appliedToArrears": null, "wallet": null, "vat": 34.88, "invoiceNumber": "43903621", "appliedToWallet": null, "units": null, "token": null }
QUERY TRANSACTION STATUS
Using a POST method, transaction status can be queried with the endpoint below:
LIVE: https://vtpass.com/api/requery
Sandbox: https://sandbox.vtpass.com/api/requery
FIELDS | Mandatory/Optional | TYPE | DESCRIPTION |
request_id | M | String | This is the reference with which you sent when purchasing a transaction after the transaction has been executed. |
EXPECTED RESPONSE
For Successful Prepaid Meter Payment
{ "code": "000", "content": { "transactions": { "status": "delivered", "product_name": "Yola Electric - YEDC", "unique_element": "1010101010101", "unit_price": 5000, "quantity": 1, "service_verification": null, "channel": "api", "commission": 50, "total_amount": 5050, "discount": null, "type": "Electricity Bill", "email": "sandbox@vtpass.com", "phone": "07061933309", "name": null, "convinience_fee": 100, "amount": "5000.00", "platform": "api", "method": "wallet", "transactionId": "16768968041524421988824134" } }, "response_description": "TRANSACTION SUCCESSFUL", "requestId": "202302201339123456789067", "amount": "5000.00", "transaction_date": { "date": "2023-02-20 13:40:04.000000", "timezone_type": 3, "timezone": "Africa/Lagos" }, "purchased_code": "", "exchangeReference": "16735244925424401", "arrearsBalance": null, "appliedToArrears": null, "wallet": null, "vat": 34.88, "invoiceNumber": "43903621", "appliedToWallet": null, "units": null, "token": null }
For Successful Postpaid Meter Payment
{ "code": "000", "content": { "transactions": { "status": "delivered", "product_name": "Yola Electric - YEDC", "unique_element": "1010101010101", "unit_price": 5000, "quantity": 1, "service_verification": null, "channel": "api", "commission": 50, "total_amount": 5050, "discount": null, "type": "Electricity Bill", "email": "sandbox@vtpass.com", "phone": "07061933309", "name": null, "convinience_fee": 100, "amount": "5000.00", "platform": "api", "method": "wallet", "transactionId": "16768968041524421988824134" }, }, "response_description": "TRANSACTION SUCCESSFUL", "requestId": "202302201339123456789067", "amount": "5000.00", "transaction_date": { "date": "2023-02-20 13:40:04.000000", "timezone_type": 3, "timezone": "Africa/Lagos" }, "purchased_code": "", "exchangeReference": "16735244925424401", "arrearsBalance": null, "appliedToArrears": null, "wallet": null, "vat": 34.88, "invoiceNumber": "43903621", "appliedToWallet": null, "units": null, "token": null }
You can check out the complete list of RESPONSE CODES HERE.