
Bill fetch looks simple: the customer enters a consumer number, you ask for the pending bill and show the amount. In practice, a few different things can happen, and treating them all as “error” confuses customers. Here are the usual outcomes and what to show for each.
1. The bill is found
Show the customer name (partly masked), the amount and the due date, and ask them to confirm. This is the easy case.
2. No bill is due
Sometimes there is nothing to pay right now: the bill was already paid, or the next one has not been generated. Say exactly that: “No pending bill found for this consumer number.” Do not call it a failure, and do not suggest the customer try again every minute.
3. The consumer number is wrong
This is the most common cause. Formats vary by biller, and numbers are easy to mistype. Show an example under the field, remove spaces automatically and check the length when you know it.
4. The biller is wrong
Customers often pick the wrong electricity board, especially in cities where more than one operates. Offer a search with the biller’s full name and state, not just an abbreviation.
5. The biller is slow or unavailable
Billers’ systems have busy hours and maintenance windows. Show a friendly “this biller is not responding, please try in a few minutes” and offer to notify. Retry once for a timeout, no more, because each call is charged to your wallet. See safe retries.
Good habits
- Log the biller, the consumer number (partly masked) and the result for support.
- Cache a successful result for a short time so a refresh does not cost a second call; the caching guide has details.
- Keep a wallet buffer, as in how wallet billing works.
For the full list of billers and parameters, read the bill fetch API guide and the bill fetch API page.
Frequently asked questions
Why does bill fetch say there is no bill?
Often because no bill is currently due, or the bill is not generated yet. It may not be an error at all.
Should I retry automatically?
Not repeatedly. Each call is billed from your wallet, so retry once at most, and only for timeouts.
Which details do customers get wrong most?
The consumer number, and the choice of biller. Show an example of the number format under the field.
Create an account, pick a plan and make your first call today. Every plan includes every endpoint.
Create account Read the docs


