Electricity Bill Payment

Electricity bill payment API for every state

Add electricity bill payments to your app for 81 distribution companies and smart prepaid meters across India. Your user enters the consumer number, the API fetches the bill from the board over Bharat Connect, and the payment returns a Bharat Connect transaction ID.

  • 81 electricity boards and prepaid meters
  • Live bill fetch with name and due date
  • Exact-amount rules handled
  • Idempotent payments
  • Bulk payments by Excel

Electricity bills over Bharat Connect

Electricity is the bill most Indians pay every month, and every state has a different board, a different consumer number and different rules. Bharat Connect (formerly BBPS) puts them all behind one standard. A payment made through it reaches the board through the network's own process and carries a Bharat Connect transaction ID the board can trace.

The Payonclick electricity bill payment API is part of our BBPS bill payment API. One key and one integration cover electricity and every other bill category.

Boards you can offer

The API lists 81 electricity billers that accept agent payments on Bharat Connect, including postpaid boards and smart prepaid meter recharges. A few of them by region:

Region Examples
North Uttar Haryana Bijli Vitran Nigam (UHBVN), Punjab State Power Corporation (PSPCL), UPPCL postpaid and smart prepaid, Tata Power Delhi, NDMC, Himachal Pradesh State Electricity Board, Uttarakhand Power Corporation, Jammu and Kashmir distribution companies
West MSEDCL (Maharashtra), Adani Electricity Mumbai, B.E.S.T Mumbai, Tata Power Mumbai, Torrent Power, Goa Electricity Department, Jaipur, Ajmer and Jodhpur Vidyut Vitran Nigam
Central Madhya Pradesh Paschim, Madhya and Poorv Kshetra Vidyut Vitaran, Chhattisgarh State Power Distribution
South BESCOM, CESCOM, MESCOM and Gulbarga in Karnataka, Kerala State Electricity Board, Tamil Nadu Power Distribution (TNPDCL), APCPDCL, Puducherry
East and North-East CESC Kolkata, West Bengal Electricity, North and South Bihar Power, Jharkhand Bijli Vitran Nigam, TP Odisha distribution companies, Assam, Meghalaya, Tripura, Manipur

The live list, with the exact name and ID of each board, comes from GET /billers?category=electricity on every call.

Consumer numbers differ by board

Each board names and formats its account number in its own way. Some examples from the live catalogue:

Field name Used by boards such as
Consumer Number Most state boards
K Number Rajasthan's Jaipur, Ajmer and Jodhpur boards
CA Number Tata Power and other private distribution companies
Customer ID / Account ID BESCOM and other Karnataka boards

GET /biller/{id} returns the exact field name, length and format rule for the board. The API checks the value against the board's own format before the request reaches the board, so a typo returns a clear INVALID_PARAM error with the expected format.

Exact amount, advance and prepaid meters

Boards publish their own amount rules, and the API applies them:

  • Exact amount. Most boards accept only the fetched bill amount. Pay that amount and nothing else.
  • Bill amount or more. Some boards accept an advance payment above the bill.
  • No bill due. When the board has already received payment for the period, the fetch says so (reason: NO_BILL_DUE) and no token is issued, so a blind payment cannot happen.
  • Smart prepaid meters. Prepaid recharges such as UPPCL smart prepaid or the TP Odisha smart prepaid meters take the amount your user chooses.

How a payment flows

1

Find the board

GET /billers with the electricity category returns the boards and their IDs.

2

Read its fields

GET /biller/{id} returns the consumer number field, its length and format.

3

Fetch the bill

POST /bill/fetch returns the consumer name, bill amount, bill date, due date and a bill_token valid for 15 minutes.

4

Pay

POST /bill/pay sends the token, amount, TPIN and your client_reference, and returns the Bharat Connect transaction ID.

5

Follow the status

Read GET /transaction/{reference_id}, or take the bill.* webhook.

Each payment can be between ₹1 and ₹2,00,000 and is debited from your prepaid MAIN wallet. A payment the board declines is refunded to your wallet automatically, and a retry with the same client_reference never pays twice.

Responses to handle

Response What it means What your app should do
INVALID_PARAM (400) The value breaks the board's format rule; param and format say which and why Show the expected format and let the user correct it
BILL_FETCH_FAILED (422) The board returned no bill; the message carries its own words Show the message; nothing was debited
BILLER_BUSY (429) The board is answering another request Retry the fetch after a few seconds
INSUFFICIENT_BALANCE (400) Your MAIN wallet can't cover the amount Top up the wallet; nothing was debited
PAYMENT_IN_PROGRESS (429) The same bill or client_reference is already being paid Retry with the same reference to read its result
PENDING status The board has not confirmed yet Wait 120 seconds, then poll or take the bill.* webhook

Reconciliation

Look a payment up by our reference_id or by your own client_reference, and pull GET /transactions filtered by status and date for your daily report. Every successful payment carries the Bharat Connect transaction ID the board can trace, and POST /complaint raises a Bharat Connect complaint on it if the credit doesn't arrive.

Paying many electricity bills

Property managers, retail chains and facility teams pay the same accounts every month. They don't need code: Bulk Bill Pay takes an Excel file with up to 500 consumer numbers of one board, fetches every bill and pays the selected bills with one T-PIN. Our bulk electricity bill payment guide covers the checks that keep a bill from being missed or paid twice.

FAQ

Frequently asked questions

Which electricity boards does the API cover?

81 electricity billers that accept agent payments on Bharat Connect, across every region. They include MSEDCL, BESCOM, UHBVN, PSPCL, UPPCL, Tata Power, Adani Electricity, Torrent Power, CESC, TNPDCL, KSEB and the Rajasthan and Madhya Pradesh boards. The live list comes from GET /billers.

What does my user need to pay an electricity bill?

Only the account number the board prints on the bill, such as the consumer number, K number or CA number, and a mobile number. The API tells you which field each board needs.

Can my user pay more or less than the bill amount?

It depends on the board. Most accept only the exact bill amount, some accept the bill amount or more, and prepaid meter recharges take any amount. The API applies each board's rule.

What happens when there is no bill due?

The fetch returns BILL_FETCH_FAILED with reason: NO_BILL_DUE and the board's own message, and no payment token is issued. Nothing is debited.

Does the API support smart prepaid meters?

Yes. Smart prepaid meter recharges listed on Bharat Connect, such as UPPCL smart prepaid and the TP Odisha prepaid meters, are in the electricity category.

Is the payment instant?

The payment reaches the board in real time over Bharat Connect and most are confirmed within seconds. A few stay PENDING while the board confirms them and settle on their own, with an automatic refund if the board declines.

Keep exploring

Related services and guides

Get started

Tell us what you want to launch

Share a few details. Our team will call you back within one business day with the next steps, the documents needed and pricing for your use case.