Why operator check and plans matter
Most failed recharges start before any money moves: the wrong operator was picked, the number was ported, or the amount is not a plan the operator sells in that circle. An operator check and a plan list fix all three at the screen, so the recharge your app sends is the one the operator expects.
The Payonclick recharge API includes two read-only lookups for this:
GET /operator-fetchtells you which operator and circle a mobile number belongs to right now, after porting.GET /planslists the plans an operator sells, with amount, validity, data, talk time and a description.
Neither moves money and neither needs your TPIN. They use the same API key, signature and response format as the recharge itself.
Operator check
Send the number and the service. The answer is the operator in our own catalogue, ready to use in the recharge call, plus the circle.
GET /ext/v1/recharge/operator-fetch?number=9876543210&service=PREPAID
{ "success": true, "data": {
"number": "9876543210", "service": "PREPAID",
"operator_id": 2, "operator_name": "Jio",
"circle": "Haryana", "circle_code": "96",
"source": "lookup", "is_available": true } }
- Ported numbers. The lookup answers with the number's current operator, so a number moved from one operator to another is recharged on the right one.
- Circle code.
circle_codeis an opaque code for the plan lookup. Pass it to/plansas it is. - Availability.
is_availableandunavailable_reasontell you if that operator is switched off for the moment, before your user picks a plan. - DTH. The same call takes a DTH subscriber ID with
service=DTH.
If the operator can't be detected, the API returns OPERATOR_NOT_DETECTED, and your app falls back to letting the user choose from GET /operators.
Plan list
Pass the operator, and for prepaid the circle code from the operator check, or the number itself:
GET /ext/v1/recharge/plans?operator_id=2&circle_code=96
Each plan comes with:
| Field | Example |
|---|---|
amount |
299 |
category |
unlimited, data, talk time, roaming and others |
validity |
28 Days |
data |
1.5GB/day |
talktime |
where the plan has one |
description |
Unlimited calls, 1.5GB/day, 100 SMS/day |
The response also lists the categories with a count in each, so your app can show tabs such as Unlimited, Data and Top-up without hard-coding them.
DTH plans are grouped by language (Hindi, Tamil, Telugu and so on) instead of categories, because that is how DTH packs are sold. In live checks an Airtel Haryana prepaid number returned 77 plans and Tata Play returned 588 packs.
A recharge screen in four calls
Detect
Call /operator-fetch when the user finishes typing the number, and preselect the operator and circle.
Show plans
Call /plans and show the categories as tabs. Let the user tap a plan or type an amount.
Quote
Call /quote with the amount to show the exact wallet debit before the user confirms.
Recharge
Call POST /recharge with your TPIN and your own client_reference, then follow the status or the recharge.* webhook.
Limits and fair use
Each account can make 60 operator checks and 60 plan lookups a minute. Above that, the API answers 429 RATE_LIMITED, so cache plan lists for a while instead of fetching them on every keystroke. PLANS_NOT_AVAILABLE means no plan list exists for that operator, and your user can still enter an amount.