API reference
Recharge
4 endpoints
Mobile and DTH recharge. Money endpoints are POST; status is GET.
Place a recharge
Moves moneyPOST/api/corp/v1/recharge
Body parameters
| Name | Description |
|---|---|
accountrequired | Customer number or DTH subscriber id. |
operatorrequired | LIVE operator code (e.g. LIVJIO00003) or our catalog code (e.g. jio). A bare number is an operator id, never an operator code. |
amountrequired | Face value in rupees. |
uridrequired | Your unique reference (idempotency key), max 64 characters. |
circleoptional | Circle/state hint. |
customer_nameoptional | For your own records. |
Notes
status is success | pending | failed. A recharge we refuse for a business reason — recharge not enabled on your account, the account paused or inactive, KYC or the service agreement pending, your wallet suspended, recharge or the operator switched off, a routing block, a daily limit — also comes back failed, with an empty order_id: nothing was charged. A retry of a urid that already has a transaction is not refused that way: sent with the same details, it gets that transaction's own result (while your account is refused, with balance null). Sent with different details, it gets an HTTP 403 status:"rejected": when recharge is switched off for your account, look the urid up with GET /api/corp/v1/recharge?urid=; while your account itself is paused, inactive or waiting on KYC or the service agreement, status checks are refused too until it is restored. Any other refusal (for example a bad urid, an unknown operator code, a bad number or amount, insufficient balance, or a duplicate) returns status:"rejected" with an error string and the matching numeric code.
curl "https://apipe.in/api/corp/v1/recharge" \
-X POST \
-H "X-Api-Token: <your-token>" \
-H "Content-Type: application/json" \
-d '{
"account": "<account>",
"operator": "<operator>",
"amount": "<amount>",
"urid": "<urid>"
}'<…> with your own value. Only the required fields are shown.{
"status": "success",
"code": 200,
"order_id": "R2607…",
"urid": "ABC123",
"operator_ref": "OP998877",
"amount": "100.0000",
"account": "9876543210",
"balance": "4900.0000",
"message": "Recharge successful."
}Status by our order id
GET/api/corp/v1/recharge/{ref}
curl "https://apipe.in/api/corp/v1/recharge/<ref>" \
-H "X-Api-Token: <your-token>"<…> with your own value.{
"status": "success",
"code": 200,
"order_id": "R2607…",
"urid": "ABC123",
"operator_ref": "OP998877",
"amount": "100.0000",
"account": "9876543210",
"refunded": false
}Status by your own reference
GET/api/corp/v1/recharge
Query parameters
| Name | Description |
|---|---|
uridrequired | The reference you sent. |
curl "https://apipe.in/api/corp/v1/recharge?urid=<urid>" \
-H "X-Api-Token: <your-token>"<…> with your own value. Only the required fields are shown.Operator catalog with codes and limits
GET/api/corp/v1/operators
curl "https://apipe.in/api/corp/v1/operators" \
-H "X-Api-Token: <your-token>"<…> with your own value.