For developers
A simple REST API your developers can work with
Integrate from any language that can make an HTTPS request. Requests and responses are plain JSON, and every final status is posted to your callback URL.
curl -X POST https://api.smartrobo.in/v1/recharges \ -H "Authorization: Bearer $SMARTROBO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "operator": "airtel", "number": "98XXXXX214", "amount": 299, "reference": "ORD-10492", "callback_url": "https://yourapp.com/hooks/recharge" }'200 OKCallback sent to your server
{ "id": "SR-8F21K", "reference": "ORD-10492", "status": "success", "operator_txn_id": "AT2409141042XXXX", "lapu": "AT-07"}JSON over HTTPS
All traffic is encrypted in transit.
Callback on final status
No need to keep polling for results.
Separate API keys
Issue and revoke keys for each integration.
Complete request log
Every request, retry and reversal is recorded.
Integration
What integrating actually involves
The API is plain JSON over HTTPS, so any language that can make an HTTP request can use it — PHP, Node.js, Python, Java and .NET included. There is no SDK to adopt and no framework to fit into.
There are two things to build: a call that sends a recharge request, and an endpoint that receives the final status. Because every result is posted to your callback URL once the operator has confirmed it, you do not need to poll, and you do not need to decide how long to wait before giving up on a pending recharge.
Each integration can hold its own API key, so a partner app and your own portal can be issued and revoked separately. Every request, retry and reversal is recorded, which is what makes a support question answerable after the fact.
Want the full API reference?
Tell us what you are integrating and we will send the documentation along with a test setup and keys.