Kano Electricity Distribution Bill Payment (Postpaid)
User Validation:
A customer must be validated before processing subscription. This will return the account status and associated information such as the businessUnit, phoneNumber, meterNumber, undertaking, customerArrears, minimumPurchase, accountNumber, customerName and email.
Request can be made using the smart card number.
Command:
https://mobilenig.com/API/bills/user_check?username=****&api_key=****&service=****&number=****
//where username: Use your MobileNig Username, api_key: Your api_key, service: KEDCO_POSTPAID, number: Customer reference.
You can use this customer reference 04185337013 for testing on KEDCO_POSTPAID
KEDCO_POSTPAID JSON return format:
{"details":{"businessUnit":"DAKATA BUSINESS UNIT","phoneNumber":"08145577734","meterNumber":null,"undertaking":"37/1 UNDERTAKING","customerArrears":0,"minimumPurchase":10,"accountNumber":"04185337013","customerName":"John T. Ester","email":"john@ester.com"}}
Command:
https://mobilenig.com/API/bills/kedco_postpaid?username=****&api_key=****&customerReference=****&amount=****&trans_id=****
//Replace **** with your username, api_key...
For Api test use https://mobilenig.com/API/bills/kedco_postpaid_test?username=****&api_key=****&customerReference=04185337013&amount=2000&trans_id=157636277382
Api Example: https://mobilenig.com/API/bills/kedco_postpaid?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5&customerReference=04185337013&amount=2000&trans_id=157636277382
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, customerReference is 04185337013, and trans_id is 157636277382.
Response:
If successful: A response will be desplayed in JSON format e.g{"trans_id":"15762293936277382","details":{"service":"KEDCO_POSTPAID","package":"#2000 Kano Electricity Distribution Bill Payment","customerName":"John T. Ester","customerReference":"04185337013","amount":"2000","status":"SUCCESSFUL","balance":"6545"}}
Else, one of the responses below will be displayed in this format {"code": "ERR101", "description": "Invalid username or api_key"}
Query:
https://mobilenig.com/API/bills/query?username=****&api_key=****&trans_id=****
//Replace **** with your username, api_key...
Api Example: https://mobilenig.com/API/bills/query?username=PAUL&api_key=64125agshaii168sdhd4b6bdb5trans_id=12823327903
//where username is PAUL and api_key is 64125agshaii168sdhd4b6bdb5, trans_id is 12823327903.
Response:
If successful: A response will be desplayed in JSON format e.g {"trans_id":"15762293936277382","details":{"service":"KEDCO_POSTPAID","package":"#2000 Kano Electricity Distribution Bill Payment","customerReference":"04185337013","amount":"2000","status":"SUCCESSFUL"}}
Else, response will be displayed in this format {"code": "ERR204", "description": "Could't find transaction on MobileNig"}