Recharge API
A mobile recharge API that never charges twice.
Prepaid recharges for Jio, Airtel, Vi and BSNL through one REST endpoint. Quote the price, send the recharge with an idempotency key and follow it to a final answer.
curl -X POST https://api.bonpay.in/v1/txns \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: order-10492" \
-H "X-TPIN: $TPIN" \
-H "Content-Type: application/json" \
-d '{"service":"RECHARGE","amount_paise":29900,"params":{"mobile":"9876543210","operator":"JIO","circle":"GJ"}}'Response201 Created
{
"id": "b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21",
"txn_no": 104921,
"service": "RECHARGE",
"amount_paise": 29900,
"fee_paise": 0,
"state": "SUCCESS",
"created_at": "2026-09-30T10:42:07+05:30"
}Recharge API
What the API gives you.
Every major operator
JIO, AIRTEL, VI and BSNL, with an optional telecom circle.
An options endpoint
Fetch the current operators, circles and amount limits instead of hard-coding them.
Quote before you pay
Amount, fee, GST on the fee and total, exactly as they will be charged.
Idempotent creates
Repeat a request with the same key and receive the original recharge.
Status and events
Read a recharge’s state and its full event history.
Wallet and statement
Check your balance and statement from your own systems.
How it works
Integrate in four calls.
- 01
Sign in
POST/v1/auth/login returns a bearer token.
- 02
Get options
GET/v1/txns/options lists operators, circles and limits.
- 03
Create the recharge
POST/v1/txns with an Idempotency-Key and your X-TPIN.
- 04
Check the status
GET/v1/txns/{id} until the state is final.
Request and response
The life of a transaction.
Amounts are integer paise, from ₹10 (1000) to ₹10,000 (1000000) per recharge. The same Idempotency-Key always returns the original recharge.
PROCESSING
Validated, priced and the wallet debited in one step, then sent to the operator or bank.
PENDING
Waiting on the other side. The platform keeps asking until there is a final answer.
SUCCESS
Confirmed. Commission is recorded against the payment.
FAILED → REVERSED
Declined. The full amount returns to the wallet, and both entries are on the statement.
Response
GET https://api.bonpay.in/v1/txns/b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21
{
"id": "b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21",
"txn_no": 104921,
"service": "RECHARGE",
"amount_paise": 29900,
"state": "SUCCESS",
"error_code": null,
"updated_at": "2026-09-30T10:42:09+05:30"
}- 10:42:07.114PROCESSINGwallet debited, sent
- 10:42:07.902PENDINGawaiting confirmation
- 10:42:09.021SUCCESSconfirmed, commission recorded
Developers
APIs by service
Prepaid mobile and DTH, confirmed in seconds.
Mobile & DTH rechargeWhich operators does the recharge API support?
Prepaid mobile recharges for Jio, Airtel, Vi and BSNL. Call the options endpoint for the current list, circles and amount limits.
How do I avoid duplicate recharges?
Send a unique Idempotency-Key with every recharge. If you retry with the same key, you receive the original recharge instead of a new one.
How do I know if a recharge succeeded?
Read the state from GET /v1/txns/{id}. SUCCESS is final; FAILED recharges are REVERSED and the amount returns to your wallet; PENDING always resolves to one of the two.
What amount limits apply?
From ₹10 to ₹10,000 per recharge, within your account’s per-transaction and daily limits.
How do I get recharge API access?
The API is available to approved partners. Contact us with your use case and expected volumes.
Get your recharge API credentials.
Tell us about your volumes and use case.
