Home
Solutions
Pricing
Developers
Blog
Company
+91 91610 19161 WhatsApp
Create account Login
  1. Home
  2. Blog
  3. Guides

Plan API vs recharge API: what is the difference?

GuidesPublished Updated 5 min read
Two cards labelled Plan API and Recharge API with the text data first, payment second

A plan API answers the question "what can this customer buy?". A recharge API answers "buy it". They sound close, so teams often assume one covers the other. It does not, and mixing them up causes most of the early confusion we see when a new platform gets started.

What a plan API does

You give it a mobile number. It tells you the operator and the circle, then returns the packs that operator is selling in that circle right now: price, validity and what is inside. It can also return personal offers for that specific number. Nothing is bought and no money moves. It is a read-only lookup.

That is exactly what A1 Plan API does for prepaid, and what our DTH and bill fetch endpoints do for DTH and bills.

What a recharge API does

A recharge API takes an operator, a number and an amount, debits your balance with the provider and tells you whether the recharge succeeded, failed or is pending. It has to deal with wallets, commissions, pending statuses and callbacks. It is the transactional heart of a recharge business.

Why you want both

MomentPlan APIRecharge API
Customer types a numberDetect operator and circleNot involved
Customer browses packsShow live plans and offersNot involved
Customer taps PayNot involvedSubmit the recharge
Result screenNot involvedSuccess, failed or pending

Without a plan API, customers type an amount blindly and pick the operator by hand. They get it wrong, the recharge fails or lands as the wrong pack, and your support team pays for it. With one, the customer taps a real pack and the amount is correct by construction.

A simple way to wire them together

  1. Customer enters a number. Call Operator & Circle Fetch and store the OpCode and CircleCode for the session.
  2. Call Plan Fetch with those two values and render the packs.
  3. When the customer picks a pack, send the operator code and amount to your recharge provider.
  4. Show the recharge result from the recharge API, not from the plan API.
Watch the operator codes. Every provider has its own short codes. Our operator code list is the reference for A1 Plan API; map it to your recharge provider's codes once, in one place.

Which should you integrate first?

If you already have a recharge provider, add a plan API next: it is quick, read-only and risk-free, and it changes how professional your app feels. If you are starting from nothing, you need the recharge side first because that is what earns money, but plan the plan lookup early so you do not have to redesign your screens later.

Common mistakes

  • Letting customers choose the operator manually instead of detecting it (see why operator detection matters).
  • Hard-coding plan prices in your app. They change.
  • Treating a successful plan lookup as a successful recharge. They are different systems.

Ready to try the plan side? Follow the quickstart; your first call takes about five minutes.

Frequently asked questions

Is a plan API the same as a recharge API?

No. A plan API returns information such as operator, circle, plans and offers. A recharge API actually submits the recharge and debits your balance. Most platforms use both.

Can I run a recharge business with only a plan API?

Not on its own. You still need a way to execute the recharge. A plan API makes the experience better by showing correct plans before the customer pays.

Does A1 Plan API process recharges?

No. A1 Plan API returns data only. Your own recharge platform or provider performs the recharge.

Ready to build?

Create an account, pick a plan and make your first call today. Every plan includes every endpoint.

Create account Read the docs

Keep reading