Skip to main content

Validate Meter Number

  • meter_no: Meter number int
  • disco_name: disco name string
  • meter_type: Meter Type true string
import requests
import json
payload = {'meter_no': '1111111111111',
'disco_name': 'ikeja-electric',
'meter_type': 'prepaid'}
user_token = 'eacf1ab727d134b254361d834c28a2bf6ab0a111'
headers = {
"Content-Type": "application/json",
"Authorization": f'Token {user_token}'
}
# jsonify the payload
data = json.dumps(payload)

Send a post request with the payload

url = "https://www.bigisub.ng/api/v1/meter_validate/"
res = requests.post(url, data=data, headers=headers)

Response

{
"Customer_Name": "TESTMETER1",
"Meter_Number": "1111111111111",
"Customer_District": "007903312",
"Address": "ABULE - EGBA BU ABULE"
}

View code in other programming languages here