Recharge API Document
Welcome to API BOX
Recharge API Document
1. Purpose: To create recharge request
To make Get Request use below URL
URL: https://Apibox.co.in/Api/Service/Recharge2?ApiToken=xxxxxxxx-xxx-xxx&MobileNo=8386900044&Amount=10&OpId=Operator_code&RefTxnId=Your_request_ID
** Purpose: To create P2A recharge request
To make P2A Get Request use below URL
URL: https://Apibox.co.in/Api/Service/Recharge2?ApiToken=xxxxxxxx-xxx-xxx&MobileNo=8386900044&Amount=10&OpId=Operator_code&RefTxnId=Your_request_ID&P2A=true
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is successfull!", "ERRORCODE": "0", "OPTXNID": "[Operator Txn ID]", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
Output JSON FAILED Result: { "STATUS": 3, "MESSAGE": "Request is failed! - Error.", "ERRORCODE": "10", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
- [Operator_code]: Operator code
Recharge API Document
2. Purpose: To check recharge status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/statuscheck?ApiToken=xxxx-xxxxx-xxxxx-xxx&RefTxnId=your_request_id
Output JSON Success: : {"CUSTOMERNO":"8386900044","OPERATOR":"AIRTEL","AMOUNT":100.00,"STATUS":1,"MESSAGE":"Success","CIRCLE":"RAJASTHAN", "ERRORCODE":"0","TXNNO":1010100000036814,"OPTXNID":"WREC36193648-HARIRAM","REQUESTTXNID":"10108166519","HTTPCODE":200}
Output JSON FAILED Result: {"MESSAGE":"Request is processed!","ERRORCODE":"0"}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
Recharge API Document
3. Purpose: To check available balance
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/Balance?at=xxxxxxxx-xxx-xxx
** Purpose: To check available P2A balance
To make P2A Get Request use below URL
Get URL: https://Apibox.co.in/Api/Service/Balance?at=xxxxxxxx-xxx-xxx&P2A=true
Output JSON Success: : {"STATUS":1,"MESSAGE":"Request is processed!","BALANCE":"4129768.03","ERRORCODE":"0","HTTPCODE":200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
Recharge API Document
4. Purpose: To Check complaint Request
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/complaint?at=xxxxxxxx-xxx-xxx&rq=[TTT]&rm=remark
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is processed!", "COMPLAINTREF": "745764", "REQTXNID": "18405924", "ERRORCODE": "0", "HTTPCODE": 200 }
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [remark]: Remark
Recharge API Document
5. Purpose: To Check complaint status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/ComplaintStatus?at=xxxxxxxx-xxx-xxx&rq=[TTT]&cq=[cq]
Output JSON Success: : {"STATUS": 1,"MESSAGE": "Request is processed!","COMPLAINTREF": 2,"COMPLAINTSTATUS": 11, "TXNID": 1010100000000070,"RCSTATUS": 3,"ERRORCODE": "0", "HTTPCODE": 200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [cq]: Complaint Id
Recharge API Document
6. Purpose: Call Back of recharge
URL: http://yourdomainname/yourpage?Status=[SSS]&OPtxnId=[OOO]&OurTxnId=[TTT]&RequesterTxnId=[RRR]&Mobileno=[MMM]&Amount=[AAA]
Type: GET
Description: : You can only add your Callback URL, required parameters will Automatically add with URL.
We have following tags:
- [RRR]: Your transaction Id
- [SSS]/[1/2/3]: Status of recharge. Possible values are 1 = SUCCESS, 2= Processing,3 = FAILED
- [OOO]: operator txn id Operator TxnId
- [TTT]: Our txn id Our TxnId
Recharge API Document
7. Purpose: Call Back of Complaint
Get URL: http://yourdomainname/yourpage?ComplaintId=[CMPID]&Complaint_Status=[SSS]&Remark=[FFF1]&Commment=[FFF2]&OPtxnId=[OOO]&OurTxnId=[TTT]&RequesterTxnId=[RRR]&Mobileno=[MMM]&Amount=[AAA]&recharge_Status=[KKKS]
Type: GET
Description: you can manage your CallBack URL yourself, Just provide tags in [] to receive data.
We have following tags:
- [CMPID]: Our Complaint Id
-
[SSS]: Status o
1. Purpose: To create recharge request
To make Get Request use below URL
URL: https://Apibox.co.in/Api/Service/Recharge2?ApiToken=xxxxxxxx-xxx-xxx&MobileNo=8386900044&Amount=10&OpId=Operator_code&RefTxnId=Your_request_ID
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is successfull!", "ERRORCODE": "0", "OPTXNID": "[Operator Txn ID]", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
Output JSON FAILED Result: { "STATUS": 3, "MESSAGE": "Request is failed! - Error.", "ERRORCODE": "10", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
- [Operator_code]: Operator code
2. Purpose: To check recharge status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/statuscheck?ApiToken=xxxx-xxxxx-xxxxx-xxx&RefTxnId=your_request_id
Output JSON Success: : {"CUSTOMERNO":"8386900044","OPERATOR":"AIRTEL","AMOUNT":100.00,"STATUS":1,"MESSAGE":"Success","CIRCLE":"RAJASTHAN", "ERRORCODE":"0","TXNNO":1010100000036814,"OPTXNID":"WREC36193648-HARIRAM","REQUESTTXNID":"10108166519","HTTPCODE":200}
Output JSON FAILED Result: {"MESSAGE":"Request is processed!","ERRORCODE":"0"}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
3. Purpose: To check available balance
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/Balance?at=xxxxxxxx-xxx-xxx
Output JSON Success: : {"STATUS":1,"MESSAGE":"Request is processed!","BALANCE":"4129768.03","ERRORCODE":"0","HTTPCODE":200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
4. Purpose: To Check complaint status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/complaint?at=xxxxxxxx-xxx-xxx&rq=[TTT]&rm=remark
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is processed!", "COMPLAINTREF": "745764", "REQTXNID": "18405924", "ERRORCODE": "0", "HTTPCODE": 200 }
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [remark]: Remark
4. Purpose: To Check complaint status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/ComplaintStatus?at=xxxxxxxx-xxx-xxx&rq=[TTT]&cq=[cq]
Output JSON Success: : {"STATUS": 1,"MESSAGE": "Request is processed!","COMPLAINTREF": 2,"COMPLAINTSTATUS": 11, "TXNID": 1010100000000070,"RCSTATUS": 3,"ERRORCODE": "0", "HTTPCODE": 200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [cq]: Complaint Id
- [FFF1]: Your Remark
- [FFF2]: Our Complaint Remark
- [RRR]: Your transaction Id
- [KKKS]: Status of recharge. Possible values are 1 = SUCCESS, 2= Processing,3 = FAILED
- [OOO]: operator txn id Operator TxnId
- [AAA]: operator txn id Amount
- [MMM]: operator txn id Mobile Number
- [TTT]: operator txn id Our Reference TxnId
1. Purpose: To create recharge request
To make Get Request use below URL
URL: https://Apibox.co.in/Api/Service/Recharge/Apibox?ApiToken=xxxxxxxx-xxx-xxx&MobileNo=8386900044&Amount=10&OpId=Operator_code&RefTxnId=Your_request_ID
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is successfull!", "ERRORCODE": "0", "OPTXNID": "[Operator Txn ID]", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
Output JSON FAILED Result: { "STATUS": 3, "MESSAGE": "Request is failed! - Error.", "ERRORCODE": "10", "TXNNO": [Our OrderID], "REQUESTTXNID": "[Your_request_ID]", "HTTPCODE": 200 }
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
- [Operator_code]: Operator code
2. Purpose: To check recharge status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/statuscheck/Apibox?ApiToken=xxxx-xxxxx-xxxxx-xxx&RefTxnId=your_request_id
Output JSON Success: : {"CUSTOMERNO":"8386900044","OPERATOR":"AIRTEL","AMOUNT":100.00,"STATUS":1,"MESSAGE":"Success","CIRCLE":"RAJASTHAN", "ERRORCODE":"0","TXNNO":1010100000036814,"OPTXNID":"WREC36193648-HARIRAM","REQUESTTXNID":"10108166519","HTTPCODE":200}
Output JSON FAILED Result: {"MESSAGE":"Request is processed!","ERRORCODE":"0"}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [Your_request_ID]: Your request ID
3. Purpose: To check available balance
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/Balance/Apibox?at=xxxxxxxx-xxx-xxx
Output JSON Success: : {"STATUS":1,"MESSAGE":"Request is processed!","BALANCE":"4129768.03","ERRORCODE":"0","HTTPCODE":200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
4. Purpose: To Check complaint status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/complaint/Apibox?at=xxxxxxxx-xxx-xxx&rq=[TTT]&rm=remark
Output JSON Success: : { "STATUS": 1, "MESSAGE": "Request is processed!", "COMPLAINTREF": "745764", "REQTXNID": "18405924", "ERRORCODE": "0", "HTTPCODE": 200 }
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [remark]: Remark
5. Purpose: To Check complaint status
To make Get Request use below URL
Get URL: https://Apibox.co.in/Api/service/ComplaintStatus/Apibox?at=xxxxxxxx-xxx-xxx&rq=[TTT]&cq=[cq]
Output JSON Success: : {"STATUS": 1,"MESSAGE": "Request is processed!","COMPLAINTREF": 2,"COMPLAINTSTATUS": 11, "TXNID": 1010100000000070,"RCSTATUS": 3,"ERRORCODE": "0", "HTTPCODE": 200}
Output JSON FAILED Result: {"STATUS":3,"MESSAGE":"Request is failed! - Authentication Failed!","ERRORCODE":"1","HTTPCODE":400}
We have following tags:
- [xxxx-xxxxx-xxxxx-xxx]: Api Token
- [TTT]: Your request ID
- [cq]: Complaint Id