
Every failed recharge has a cost: a refund to process, a support message to answer and a customer who trusts you a little less. The good news is that most failures are predictable, and the checks that prevent them are cheap.
Check 1: is the operator right?
Numbers move between operators. A number that started on one network may be on another today, so a stored guess is not good enough. Detect the operator fresh, as described in detecting the operator on every recharge.
Check 2: is the circle right?
Plans are often specific to a circle. A recharge for the wrong circle may be rejected or may not give the benefit the customer expected. The operator and circle codes guide explains how to map them.
Check 3: is the plan still current?
Operators change plans. If your app shows a plan from last week, the customer may pay for something that no longer exists. Fetch plans on demand, or keep them for a short time only. The caching guide shows a safe balance.
Check 4: is the amount sensible?
Sometimes a customer types an amount that matches no plan at all. Instead of letting it fail, show the closest real plans. For special offers tied to a number, use the R-offer check.
Handle errors honestly
Even with every check, an API call can time out. Do not retry blindly; a second attempt might double-charge. Follow the pattern in errors, timeouts and safe retries: check the result, retry once if appropriate and show the customer a clear status.
What you will notice
When these four checks are in place, support messages about “wrong plan” and “recharge did not apply” tend to drop. That is the real payoff, more than any single technical detail. Start with the operator check; it is the one that helps most.
Frequently asked questions
Where do most failures come from?
The usual suspects are a wrong operator, a wrong circle or a plan that no longer exists at that price. All three can be checked before payment.
Does an extra lookup slow the checkout?
A single lookup is quick, and it replaces a much slower refund conversation. Cache it briefly to keep screens snappy.
Can I skip validation for repeat customers?
Even repeat customers port their numbers. Check again, it is cheap.
Create an account, pick a plan and make your first call today. Every plan includes every endpoint.
Create account Read the docs


