Encryption Method

                          

//In Php

                              function encryptData($data, $apiToken) {
    
$method = 'aes-256-cbc';

$password = substr(hash('sha256', $apiToken, true), 0, 32);

// IV must be exact 16 chars (128 bit)
$iv = chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0);

$encrypted = base64_encode(openssl_encrypt($data, $method, $password, OPENSSL_RAW_DATA, $iv));
return $encryptedData;

}






# In C#



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Security.Cryptography;
using System.IO;
using System.Text;

namespace Rextester
{
    public class Program
    {
        
        
        public static void Main(string[] args)
        {
            

// Create sha256 hash
SHA256 mySHA256 = SHA256Managed.Create();
byte[] key = mySHA256.ComputeHash(Encoding.ASCII.GetBytes(password));

// Create secret IV
byte[] iv = new byte[16] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };

string encrypted = EncryptString(data, apiToken, iv);

Console.WriteLine(encrypted);
            
            
        }
        
        
        public static string EncryptString(string data, byte[] key, byte[] iv)
{
    // Instantiate a new Aes object to perform string symmetric encryption
    Aes encryptor = Aes.Create();

    encryptor.Mode = CipherMode.CBC;

    // Set key and IV
    byte[] aesKey = new byte[32];
    Array.Copy(key, 0, aesKey, 0, 32);
    encryptor.Key = aesKey;
    encryptor.IV = iv;

    // Instantiate a new MemoryStream object to contain the encrypted bytes
    MemoryStream memoryStream = new MemoryStream();

    // Instantiate a new encryptor from our Aes object
    ICryptoTransform aesEncryptor = encryptor.CreateEncryptor();

    // Instantiate a new CryptoStream object to process the data and write it to the 
    // memory stream
    CryptoStream cryptoStream = new CryptoStream(memoryStream, aesEncryptor, CryptoStreamMode.Write);

    // Convert the plainText string into a byte array
    byte[] plainBytes = Encoding.ASCII.GetBytes(plainText);

    // Encrypt the input plaintext string
    cryptoStream.Write(plainBytes, 0, plainBytes . Length);

    // Complete the encryption process
    cryptoStream.FlushFinalBlock();

    // Convert the encrypted data from a MemoryStream to a byte array
    byte[] cipherBytes = memoryStream.ToArray();

    // Close both the MemoryStream and the CryptoStream
    memoryStream.Close();
    cryptoStream.Close();

    // Convert the encrypted byte array to a base64 encoded string
    string cipherText = Convert.ToBase64String(cipherBytes, 0, cipherBytes.Length);

    // Return the encrypted data as a string
    return encryptedData;
}






        
    }
}



                              
                              
                          
                      

Recharge API

                          
                              http://api.rechapi.com/recharge.php?format=#format&token=#token&mobile=#mobile&amount=#amount&opid=#opid&urid=#urid&opvalue1=#opvalue1&opvalue2=#opvalue2&opvalue3=#opvalue3
                              
                              /*
                              // If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/recharge.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&mobile=#mobile&amount=#amount&opid=#opid&urid=#urid&opvalue1=#opvalue1&opvalue2=#opvalue2&opvalue3=#opvalue3";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              /*
                              #format -> text/xml/json
                              #token  -> Recharge Api Token , It is available after login in rechapi account
                              #userId  -> Its your id which is available after login in account
                              #mobile -> 10 digit valid mobile number or landline number excluding std code
                              #amount -> Recharge amount
                              #op     -> Mobile operator id (Operator id given below in table)
                              #urid -> Your unique transaction id , maximum length is 15.
                              #opvalue1 -> Required in case other than mobile , dth recharge
                              #opvalue2 -> Required in case other than mobile , dth recharge
                              */

                              //Output text

                              #Orderid|#status|#mobile|#amount|#opid|#error_code|#service|#bal|#resText|#billAmount;

                              //Output xml

                              
                              
                                  #Orderid
                                  #status
                                  #mobile
                                  #amount
                                  #opid
                                  #error_code
                                  #service
                                  #bal
                                  #resText
                                  #billAmount
                              

                              //Output json

                              {"data":{"orderId":"#Orderid","status":"#status","mobile":"#mobile","amount":"#amount","operatorId":"#optid","error_code":"#error_code","service":"#service","bal":"#bal","resText":"#resText","billAmount":"#billAmount"}}

                              /*
                              #Orderid -> RechApi unique recharge order id , multiple orderid supported like 1234,3434,1234 etc but supported for dispute.
                              #status  -> Recharge status (SUCCESS/PENDING/FAILED)
                              #optid -> Operator transaction id if recharge is success
                              #error_code -> error code from rechapi server
                              #service -> Operator name
                              #bal -> Api final balance
                              #resText -> error code details
                              #billAmount -> In case of electrity and gas bill payment if you had provide wroung bill amount it will show you correct bill amount.
                             
                              */
                          
                      

Recharge Status API

                          
                              http://api.rechapi.com/api_status.php?format=#format&token=#token&orderId=#orderId

Use urid=#urid instead of orderId=#orderId if you want to track from your urid value.

/*
                              // If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/api_status.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&orderId=#orderId";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              //Output Text

                              #Orderid|#status|#mobile|#amount|#error_code|#transactionId|#bal|#resText#

                              //Output xml

                              
                              
                                  
                                      #status
                                      #mobile
                                      #amount
                                      #error_code
                                      #transactionId
                                      #bal
                                      #resText
                                  
                              

                              //Output json

                              {"data":[{"orderId":"#Orderid","status":"#status","mobile":"#mobile","amount":"#amount","error_code":"#error_code","TransId":"#transactionId","service":"#service","reqTime":"#reqTime","bal":"#bal","resText":"#resText"}]}


                              /*
                              #status  -> Recharge status (SUCCESS/PENDING/FAILED/Disputed)
                              #transactionId -> Operator Transaction id
                              #reqTime -> Recharge request time

                              */

                          
                      

Recharge Dispute API

                          
                              http://api.rechapi.com/dispute.php?format=#format&token=#token&orderid=#orderid&type=#type
/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/dispute.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&orderid=#orderid&type=#type";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */

                              //Output text

                              #Orderid|#status|#error_code|#resText

                              //Output xml

                              
                              
                                  #Orderid
                                  #status
                                  #error_code
                                  #resText
                              

                              //Output json

                              {"data":{"orderId":"#Orderid","status":"#status","error_code":"#error_code","resText":"#resText"}}

                              /*
                              #status -> FAILED/SUCCESS
                              #type -> 1/2 , 1 for dispute and reproccess , 2 for dispute and refund
                              */
                          
                      

Recharge Balance API

                          
                              http://api.rechapi.com/bal.php?format=#format&token=#token


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/dispute.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              //Output text

                              #username|#balance|#error_code|#resText

                              //Output xml

                              
                              
                                  #username
                                  #balance
                                  #error_code
                                  #resText
                              

                              //Output json

                              {"data":{"user":"#username","bal":"#balance","error_code":"#error_code","resText":"#resText"}}
                          
                      

Api Recharge Sample Code

                          
                              $url="http://api.rechapi.com/recharge.php?format=xml&token=#apiKey&mobile=#mobile&amount=#amount&opid=#operatorId&urid=#yourTransactionId";
                              $request_timeout = 60; // 60 seconds timeout
                              $ch = curl_init();
                              curl_setopt($ch, CURLOPT_URL, $url);
                              curl_setopt($ch, CURLOPT_TIMEOUT, $request_timeout);
                              curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $request_timeout);
                              curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                              $output = curl_exec($ch);
                              $curl_error = curl_errno($ch);
                              $getserver= curl_getinfo($ch);
                              curl_close($ch);
                              if($getserver["http_code"]==200)
                              {

                              $xml = simplexml_load_string($output);
                              $orderId=$xml->orderId;
                              $status=$xml->status;
                              $mobile=$xml->mobile;
                              $amount=$xml->amount;
                              $operatorId=$xml->operatorId;
                              $error_code=$xml->error_code;
                              $service=$xml->service;
                              $resText=$xml->resText;
                              if($status=="PENDING")

                              {
                              #do coding for PENDING Recharge

                              }
                              elseif($status=="SUCCESS"){

                              #do coding for SUCCESS Recharge
                              }
                              else {

                              #do coding for FAILED recharge
                              }

                              }
                              elseif($curl_error=="28"){
                              #do coding for PENDING Recharge

                              }
                          
                      

Api Recharge Status Sample Code

                          

                              $url="http://api.rechapi.com/api_status.php?format=xml&token=#apiKey&orderId=#orderid";
                              $request_timeout = 60; // 60 seconds timeout
                              $ch = curl_init();
                              curl_setopt($ch, CURLOPT_URL, $url);
                              curl_setopt($ch, CURLOPT_TIMEOUT, $request_timeout);
                              curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $request_timeout);
                              curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                              $output = curl_exec($ch);
                              $curl_error = curl_errno($ch);
                              $getserver= curl_getinfo($ch);
                              curl_close($ch);
                              if($getserver["http_code"]==200)
                              {

                              $xml = simplexml_load_string($output);
                              foreach($xml as $nxml){
                              $orderid=$nxml[id];
                              $status=$nxml->status;
                              $optid=$nxml->transactionId;
                              $error_code=$nxml->error_code;

                              if($status=="PENDING")

                              {
                              #do coding for PENDING Recharge

                              }
                              elseif($status=="SUCCESS"){

                              #do coding for SUCCESS Recharge
                              }
                              else {

                              #do coding for FAILED recharge
                              }


                              }

                              }
                          
                      

Operator Code

Service Operator Code Instruction
Airtel 1
Idea 3
Bsnl Topup 4
Bsnl Special 5
Tata Docomo Topup 7
Tata Docomo Special 8
Tata Indicom 9
Vodafone 10
MTS 11
Uninor 12
Uninor Special 13
Loop Mobile 14
MTNL DL Topup 17
MTNL DL Special 18
MTNL Mumbai 19
MTNL Mumbai Special 20
Tata Walky 21
VIDEOCON DTH 28
SUN DTH 26
BIG TV DTH 24
TATA SKY DTH 27
AIRTEL DTH 23
DISH DTH 25
Vodafone Postpaid 30
Airtel Postpaid 31
Bsnl Postpaid 32
Idea Postpaid 33
Loop Postpaid 34
Tata Docomo GSM Postpaid 37
Tata Indicom Postpaid 38
Tata Walky Postpaid 39
MTS Postpaid 41
RELIANCE INFOCOM LANDLINE 42 pass Landline Number in 'mobile' and STD Code in 'opvalue1'
TIKONA INTERNET LANDLINE 43 pass User ID in mobile
AIRTEL LANDLINE 44 pass Landline Number in 'mobile' and STD Code in 'opvalue1'
BSNL LANDLINE 45 pass Landline Number in 'mobile', STD Code in 'opvalue1', Account Number in 'opvalue2'
TATA DOCOMO CDMA LANDLINE 46 pass Landline Number in 'mobile' and STD Code in 'opvalue1'
MTNL DELHI LANDLINE 47 pass Landline Number in 'mobile' and CA Number in 'opvalue1'
Adani Gas - Gujrat 48 pass Customer ID in 'mobile'
Gujarat Gas 49 pass Customer Number in 'mobile'
Indraprastha Gas 50 pass BP Number in 'mobile'
Mahanagar Gas 51 pass Customer Account Number in 'mobile' and Bill Group Number in 'opvalue1'
Ajmer Vidyut Vitran Nigam - RAJASTHAN 52 pass K Number in 'mobile'
APDCL (RAPDR) - ASSAM 53 pass Consumer ID in 'account'
BESCOM - BENGALURU 54 pass Consumer Number in 'mobile'
BEST Undertaking - MUMBAI 55 pass Consumer Number in 'mobile'
BSES Rajdhani - DELHI 56 pass Customer Number in 'mobile'
BSES Yamuna - DELHI 57 pass Customer Number in 'mobile'
CESC - WEST BENGAL 58 pass Consumer ID in 'mobile'
DHBVN - HARYANA 60 pass Account Number in 'mobile'
DNHPDCL - DADRA & NAGAR HAVELI 61 pass Service Connection Number in 'mobile'
India Power - BIHAR 62 pass Consumer Number in 'mobile'
Jaipur Vidyut Vitran Nigam - RAJASTHAN 63 pass K Number in 'mobile'
Jamshedpur Utilities & Services (JUSCO) 64 pass Business Partner Number in 'mobile'
Jodhpur Vidyut Vitran Nigam - RAJASTHAN 65 pass K Number in 'mobile'
Madhya Kshetra Vitaran - MADHYA PRADESH 66 pass Consumer Number in 'mobile'
MSEDC - MAHARASHTRA 67 pass Consumer Number in 'mobile', Billing Unit in 'opvalue1'
Noida Power - NOIDA 68 pass Consumer Number in 'mobile'
Paschim Kshetra Vitaran - MADHYA PRADESH 70 pass Consumer Number in 'mobile'
Reliance Energy - MUMBAI 71 pass Account Number in 'mobile' and Cycle Number in 'opvalue1'
Tata Power - DELHI 74 pass Customer Number in 'mobile'
Torrent Power 75 pass Service Number in 'mobile' and City Name in 'opvalue1'
TSECL - TRIPURA 76 pass Consumer ID in 'mobile'
ICICI Prudential Life Insurance 78 pass Policy Number in 'mobile' and Date of Birth (DD-MM-YYYY) in 'opvalue1'
Tata AIA Life Insurance 80 pass alphanumeric Policy Number in 'mobile' and Date of Birth (DD-MM-YYYY) in 'opvalue1'
MTS MBlaze 84
MTS MBrowse 85
Tata Photon+ 86
Tata Photon Whiz 87
Vodafone 3G 88
BSNL Datacard 90
MTNL Delhi Datacard 91
MTNL Mumbai Datacard 92
Reliance Jio 93
MONEY TRANSFER 94
Uttarakhand Jal Sansthan 139 pass Consumer Number (Last 7 Digits) in 'mobile'
Urban Improvement Trust (UIT) - BHIWADI 140 pass Customer ID in 'mobile'
Municipal Corporation of Gurugram 141 pass K No in 'mobile', Mobile Number in 'optional1' and Email ID in 'optional2'
Delhi Jal Board 142 pass K No in 'mobile'
UPPCL (RURAL) - UTTAR PRADESH 143 pass Consumer Number in 'mobile'
APSPDCL - ANDHRA PRADESH 145 pass Service Number in 'mobile'
BESL - BHARATPUR 146 pass K Number in 'mobile'
BKESL - BIKANER 147 pass K Number in 'mobile'
CSPDCL - CHHATTISGARH 148 pass BP Number in 'mobile'
Daman and Diu Electricity 149 pass Account Number in 'mobile'
DGVCL - GUJARAT 150 pass Consumer Number in 'mobile'
Kota Electricity Distribution - RAJASTHAN 151 pass K Number in 'mobile'
MEPDCL - MEGHALAYA 152 pass Consumer ID in 'mobile'
MGVCL - GUJARAT 153 pass Consumer Number in 'mobile'
Muzaffarpur Vidyut Vitran 154 pass Consumer Number in 'mobile'
NBPDCL - BIHAR 155 pass CA Number in 'mobile'
NESCO - ODISHA 156 pass Consumer Number in 'mobile'
PGVCL - GUJARAT 157 pass Consumer Number in 'mobile'
SBPDCL - BIHAR 158 pass CA Number in 'mobile'
SNDL Power - NAGPUR 159 pass Consumer Number in 'mobile'
SOUTHCO - ODISHA 160 pass Consumer Number in 'mobile'
Tata Power - MUMBAI 161 pass Consumer Number in 'mobile'
Tata Power AJMER - RAJASTHAN 162 pass K Number in 'mobile'
UGVCL - GUJARAT 163 pass Consumer Number in 'mobile'
UPCL - UTTARAKHAND 164 pass Service Connection Number in 'account'
UPPCL (URBAN) - UTTAR PRADESH 165 pass Consumer Number in 'mobile'
Haryana City Gas 166 pass CRN Number in 'mobile'
Sabarmati Gas 167 pass Customer ID in 'mobile'
Siti Energy Gas 168 pass ARN Number in 'mobile'
Tripura Natural Gas 169 pass Consumer Number in 'mobile'
Pan Coupon 170 pass number of coupon in 'optional1' value
Adani Gas - Haryana 172 pass Customer ID in 'mobile'
Tata AIG General Insurance 171 pass alphanumeric Policy Number in 'mobile' and Date of Birth (DD-MM-YYYY) in 'optional1
TNEB - TAMIL NADU 179 pass Consumer Number in 'mobile'
APEPDCL - ANDHRA PRADESH 144 pass Service Number in 'mobile'
GESCOM - KARNATAKA 177 pass Consumer Number in 'mobile'
India Power - WEST BENGAL 178 pass Consumer Number in 'mobile'
WESCO - ODISHA 180 pass Consumer Number in 'mobile'
APDCL (Non-RAPDR) - ASSAM 181 pass Consumer ID in 'account'
JBVNL - JHARKHAND 182 pass Consumer Number in 'mobile' and Subdivision Code in 'opvalue1'
CESCOM - KARNATAKA 183 pass Consumer Number in 'mobile'
HESCOM - KARNATAKA 184 pass Consumer Number in 'mobile'
Himachal Pradesh State Electricity Board 185 pass K Number in 'mobile'
PSPCL - PUNJAB 186 pass Account Number in 'mobile'
UHBVN - HARYANA 187 pass Account Number in 'mobile'
Bharatpur Electricity Service Limited - Rajasthan 188 pass K number in 'mobile'
WBSEDCL - WEST BENGAL 189 pass Consumer Id in 'mobile'

Circle Code

State Code
Delhi/NCR 1
Mumbai 2
Kolkata 3
Maharashtra 4
Andhra Pradesh 5
Tamil Nadu 6
Karnataka 7
Gujarat 8
Uttar Pradesh (E) 9
Madhya Pradesh 10
Uttar Pradesh (W) 11
West Bengal 12
Rajasthan 13
Kerala 14
Punjab 15
Haryana 16
Bihar & Jharkhand 17
Orissa 18
Assam 19
North East 20
Himachal Pradesh 21
Jammu & Kashmir 22
Chennai 23

Customer Details Api

                          
                              http://api.rechapi.com/moneyTransfer/cusDetails.php?format=#format&token=#token&customerMobile=#customerMobile
                              
                              /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/cusDetails.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerMobile=#customerMobile";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
/*
#format -> xml/json
#token  -> Recharge Api Token
#customerMobile -> 10 digit valid mobile number of customer

*/


//Output xml



	#error_code
	#resText
	
#otpVerified #message #name #limit
#beneficiaryName #beneficiaryMobileNumber #beneficiaryAccountNumber #ifscCode #beneficiaryId .... .... .... ....
//Output json {"data":{"error_code":#error_code,"resText":"#resText","details":{"message":"#message","name":"#name","otpVerified":"#otpVerified","limit":"#limit"},"beneficiaryList":[{"beneficiaryName":"#beneficiaryName","beneficiaryMobileNumber":"#beneficiaryMobileNumber","beneficiaryAccountNumber":"#beneficiaryAccountNumber","ifscCode":"#ifscCode","beneficiaryId":"#beneficiaryId"}}]} /* #error_code -> If 200 means customer details found else see resText value and error_code value #message -> More details about customer #name -> Name of customer #otpVerified -> 0 or 1 , 0 -> Customer not verified , 1 -> Customer verified #limit -> Available limit of customer #resText -> error code details */

Customer Registration Api

                          
http://api.rechapi.com/moneyTransfer/customerRegistration.php?format=#format&token=#token&customerName=#customerName&customerPincode=#customerPincode&customerMobile=#customerMobile


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/customerRegistration.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerName=#customerName&customerPincode=#customerPincode&customerMobile=#customerMobile";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              


/*

#customerPincode -> 6 digit area pincode of customer
#customerName -> Customer Name

*/


//Output xml



	#error_code
	#mobile
	#resText


//Output json

{"error_code":#error_code,"mobile":"#mobile","resText":"#resText"}}

/*
#error_code -> If 200 means customer successfully registered
#mobile  -> Customer Mobile Number

*/



                          
                      

Add Beneficiary

                          
http://api.rechapi.com/moneyTransfer/addBeneficiary.php?format=#format&token=#token&customerMobile=#customerMobile&beneficiaryName=#beneficiaryName&beneficiaryMobileNumber=#beneficiaryMobileNumber&beneficiaryAccountNumber=#beneficiaryAccountNumber&ifscCode=#ifscCode


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/addBeneficiary.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerMobile=#customerMobile&beneficiaryName=#beneficiaryName&beneficiaryMobileNumber=#beneficiaryMobileNumber&beneficiaryAccountNumber=#beneficiaryAccountNumber&ifscCode=#ifscCode";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
/*

#customerMobile -> Registered customer mobile number
#beneficiaryName -> Beneficiary bank account name
#beneficiaryMobileNumber -> Beneficiary bank account mobile number
#beneficiaryAccountNumber -> Beneficiary bank account number
#ifscCode -> Bank ifsc code / Neft code

*/


//Output xml



	#error_code
	#mobile
	#resText
	#beneficiaryId

  

//Output json

{"data":{"error_code":#error_code,"mobile":"#mobile","resText":"#resText","beneficiaryId":#beneficiaryId}}


/*
#error_code -> If 200 means beneficiary registered and otp has been sent to customer mobile number else see resText value and error_code value
#beneficiaryId  -> Beneficiary Id , This will require incase of fund transfer , Beneficiary Verification and Delete Beneficiary

*/



                          
                      

Beneficiary Verify

                          
http://api.rechapi.com/moneyTransfer/beneficiaryVerifiy.php?format=#format&token=#token&customerMobile=#customerMobile&otp=#otp&beneficiaryId=#beneficiaryId



/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/beneficiaryVerifiy.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerMobile=#customerMobile&otp=#otp&beneficiaryId=#beneficiaryId";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
/*

#customerMobile -> Registered customer mobile number
#otp -> Otp send to customer mobile number


*/


//Output xml



	#error_code
	#mobile
	#resText
	

  

//Output json

{"data":{"error_code":#error_code,"mobile":"#mobile","resText":"#resText"}}


/*
#error_code -> If 200 means beneficiary successfully verified else see resText value and error_code value

*/



                          
                      

Beneficiary Validation

                          
http://api.rechapi.com/moneyTransfer/beneficiaryValidate.php?format=#format&token=#token&customerMobile=#customerMobile&beneficiaryAccountNumber=#beneficiaryAccountNumber&ifscCode=#ifscCode&urid=#urid



/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/beneficiaryValidate.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="#token&customerMobile=#customerMobile&beneficiaryAccountNumber=#beneficiaryAccountNumber&ifscCode=#ifscCode&urid=#urid";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
/*

#urid -> Your unique tracking id
This api will validate name of customer bank account number by sending 1 Rs to there bank account.

*/


//Output xml



	#error_code
  #orderId
  #status
  #optid
 #mobile
 #beneficiaryName
  #resText
  
  
	

  

//Output json

{"data":{"resCode":#error_code,"orderId":#orderId,"mobile":"#mobile","status":"#status","optid":"#optid","beneficiaryName":"#beneficiaryName","resText":"#resText"}}


/*
#error_code -> If 200 means beneficiary successfully validated and it will show name else see resText value and error_code value

*/



                          
                      

Transfer Money

                          
http://api.rechapi.com/moneyTransfer/sendMoney.php?format=#format&token=#token&customerMobile=#customerMobile&amount=#amount&beneficiaryId=#beneficiaryId&urid=#urid


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/sendMoney.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerMobile=#customerMobile&amount=#amount&beneficiaryId=#beneficiaryId&urid=#urid";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
/*

#amount -> Amount to send money
#urid -> Your unique tracking id


*/


//Output xml



	#status
	#error_code
	#orderId
	#mobile
	#beneficiaryName
	#beneficiaryAccountNumber
	#resText
	#beneficiaryId
	#creditUsed
	

  

//Output json

{"data":{"status":"#status","error_code":#error_code,"mobile":"#mobile","resText":"#resText","beneficiaryId":"#beneficiaryId","beneficiaryName":"#beneficiaryName","beneficiaryAccountNumber":"#beneficiaryAccountNumber","orderId":#orderId,"creditUsed":"#creditUsed"}}



/*
#error_code -> 200 -> Fund successfully transferred , 201 -> Fund transfer request accepted, Other than 201 , 200 see resText value for error
#status -> SUCCESS/PENDING/FAILED/0 , If 0 means its failed
#orderId -> Rechapi order id
#creditUsed -> Credit used from your account
*/



                          
                      

Delete Beneficiary

                          
http://api.rechapi.com/moneyTransfer/deleteBeneficiary.php?format=#format&token=#token&customerMobile=#customerMobile&beneficiaryId=#beneficiaryId


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/deleteBeneficiary.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&customerMobile=#customerMobile&beneficiaryId=#beneficiaryId";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              



//Output xml



	#error_code
	#customerMobile
	#resText
	#beneficiaryId
	

  

//Output json

{"data":{"error_code":#error_code,"mobile":"#customerMobile","resText":"#resText","beneficiaryId":"#beneficiaryId"}}



/*
#error_code -> if 200 then request accepted and otp sent to customer mobile number else see resText value
*/



                          
                      

Delete Beneficiary Otp

                          
http://api.rechapi.com/moneyTransfer/deleteBeneficiaryVerifiy.php?format=#format&token=#token&&customerMobile=#customerMobile&beneficiaryId=#beneficiaryId&otp=#otp


/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/moneyTransfer/deleteBeneficiaryVerifiy.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&&customerMobile=#customerMobile&beneficiaryId=#beneficiaryId&otp=#otp";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              


//Output xml



	#error_code
	#customerMobile
	#resText
	
	

  

//Output json

{"data":{"error_code":#error_code,"mobile":"#customerMobile","resText":"#resText"}}



/*
#error_code -> if 200 it means beneficiary successfully deleted else see resText value
*/




                          
                      

Recharge Plan Finder

                          
                              https://api.rechapi.com/rech_plan.php?format=#format&token=#token&type=#rechType&cirid=#circleCode&opid=#opid

/*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/rech_plan.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&type=#rechType&cirid=#circleCode&opid=#opid";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              /*
                              #rechType -> Mobile Recharge Type . Possible values  SPL , DATA , FTT , TUP , RMG
                              #circleCode -> code of state which is given below
                              */
                          
                      

Mobile Details Finder

                          
                              http://api.rechapi.com/mob_details.php?format=#format&token=#token&mobile=#mobileCode
                              
                              
                              /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/mob_details.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="#token&mobile=#mobileCode";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              /*
                              #mobileCode -> First 4 digit of mobile number

                              */
                              //Output text

                              #service|#location|#error_code|#resText

                              //Output xml

                              
                              
                                  #service
                                  #location
                                  #error_code
                                  #resText
                              

                              //Output json

                              {"data":{"service":"#service","location":"#location","error_code":"#error_code","resText":"#resText"}}
                          
                      

Buy Voucher

                          
                              http://api.rechapi.com/recharge.php?format=#format&token=#token&amount=#amount&opid=#opid&urid=#urid&senderName=#senderName&receiverName=#receiverName&receiverEmail=#receiverEmail&senderMobile=#senderMobile&receiverMobile=#receiverMobile&giftMessage=#giftMessage
                              
                                /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/mob_details.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&amount=#amount&opid=#opid&urid=#urid&senderName=#senderName&receiverName=#receiverName&receiverEmail=#receiverEmail&senderMobile=#senderMobile&receiverMobile=#receiverMobile&giftMessage=#giftMessage";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              
                              /*
                              #senderName -> Sender Name , Only alpha characters are allowed
                              
                              #receiverEmail -> Coupon will be delivered to this email id only.

                              */
                              //Output text

                              #Orderid|#status|#mobile|#amount|#opid|#error_code|#service|#bal|#resText;

                              //Output xml

                              
                              
                                  #Orderid
                                    #status
                                    #mobile
                                    #amount
                                    #opid
                                    #error_code
                                    #service
                                    #bal
                                    #resText
                              

                              //Output json

                              {"data":{"orderId":"#Orderid","status":"#status","mobile":"#mobile","amount":"#amount","operatorId":"#optid","error_code":"#error_code","service":"#service","bal":"#bal","resText":"#resText"}}
                              
                              
                              /*
#Orderid -> RechApi unique recharge order id , multiple orderid supported like 1234,3434,1234 etc but supported for dispute.
#status -> Recharge status (SUCCESS/PENDING/FAILED)
#optid -> Operator transaction id if recharge is success
#error_code -> error code from rechapi server
#service -> Operator name
#bal -> Api final balance
#resText -> error code details
*/


                          
                      

Check Card Balance

                          
                              http://api.rechapi.com/cardBalance.php?format=json&token=#token&cardNumber=#cardNumber&pinNumber=#pinNumber
                              
                              
                                /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/mob_details.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&cardNumber=#cardNumber&pinNumber=#pinNumber";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              
                              /*
                              #cardNumber -> Card number you received in mail
                              
                              #pinNumber -> Pin Number you received in mail.

                              */
                              //Output text

                              #status|#error_code|#expiryDate|#cardbalance|#resText;

                              //Output xml

                              
                              
                                  #status
                                    #error_code
                                    #expiryDate
                                    #cardbalance
                                    #resText
                              

                              //Output json

                              {"data":{"status":"#status","expiryDate":#expiryDate,"cardBalance":#cardBalance,"error_code":#error_code,"resText":"#resText"}}
                              
                              
                             


                          
                      

Operator Code

Service Operator Code Instruction
Allen Solly eGift Voucher 95 Min: 500 Rs - Max: 25000 Rs
Amazon eGift Voucher 96 Min: 10 Rs - Max: 50000 Rs
Arrow eGift Voucher 97 Min: 250 Rs - Max: 50000 Rs
Bata eGift Voucher 98 Amount allowed 500 Rs,1000 Rs
Bookmyshow eGift Voucher 99 Amount allowed 100 Rs , 250 Rs , 500 Rs , 1000 Rs
Cafe Coffee Day eGift Voucher 100 Min: Rs 100 - Max: Rs 1000
Cleartrip eGift Voucher 101 Min: Rs 250 - Max: Rs 50000
Croma eGift Voucher 102 Min: Rs 1 - Max: Rs 5000
Dineout eGift Voucher 103
Fastrack eGift Voucher 104 Min: Rs 50 - Max: Rs 10000
Flipkart eGift Voucher 105 Amount allowed Rs:500,1000,2000,4000,5000
Gant eGift Voucher 106 Min: Rs 500 - Max: Rs 50000
Helios eGift Voucher 107 Min: Rs 500 - Max: Rs 50000
Hidesign eGift Voucher 108 Min: Rs 100 - Max: Rs 15000
Himalaya eGift Voucher 109 Min: Rs 100 - Max: Rs 10000
IZOD eGift Voucher 110 Min: Rs 250 - Max: Rs 50000
Joyalukkas Diamond eGift Voucher 111 Amount allowed Rs:1000,5000
Lakme Salon eGift Voucher 112 Min: Rs 500 - Max: Rs 25000
Levis eGift Voucher 113 Min: Rs 500 - Max: Rs 25000
Lifestyle eGift Voucher 114 Min: Rs 100 - Max: Rs 3000
MakeMyTrip eGift Voucher 115 Min: Rs 250 - Max: Rs 100000
MakeMyTrip Holiday eGift Voucher 116 Min: Rs 250 - Max: Rs 100000
MakeMyTrip Hotel eGift Voucher 117 Min: Rs 250 - Max: Rs 50000
Myntra eGift Voucher 118 Min: Rs 100 - Max: Rs 50000
Nautica eGift Voucher 119 Min: Rs 500 - Max: Rs 50000
Nike eGift Voucher 120 Min: Rs 500 - Max: Rs 10000
Nykaa eGift Voucher 121 Min: Rs 100 - Max: Rs 10000
P N Rao eGift Voucher 122 Min: Rs 100 - Max: Rs 50000
Pantaloons eGift Voucher 123 Min: Rs 100 - Max: Rs 2000
Pavers England eGift Voucher 124 Min: Rs 100 - Max: Rs 25000
Peter England eGift Voucher 125 Min: Rs 100 - Max: Rs 25000
Planet Fashion eGift Voucher 126 Min: Rs 100 - Max: Rs 50000
Prestige Smart Kitchen eGift Voucher 127 Min: Rs 100 - Max: Rs 50000
PVR bluO eGift Voucher 128 Min: Rs 250 - Max: Rs 5000
PVR Cinemas eGift Voucher 129 Min: Rs 300 - Max: Rs 500
Shopclues eGift Voucher 130 Min: Rs 1000 - Max: Rs 50000
Shoppers Stop eGift Voucher 131 Min: Rs 100 - Max: Rs 10000
Thomas Cook eGift Voucher 132 Min: Rs 500 - Max: Rs 100000
Titan eGift Voucher 133 Min: Rs 1 - Max: Rs 25000
US Polo Assn eGift Voucher 134 Min: Rs 250 - Max: Rs 50000
Van Heusen eGift Voucher 135 Min: Rs 100 - Max: Rs 50000
VLCC eGift Voucher 136 Min: Rs 500 - Max: Rs 50000
Westside eGift Voucher 137 Min: Rs 100 - Max: Rs 20000
Yatra eGift Voucher 138 Amount allowed Rs:1000,2500,5000,10000
Big Bazaar eGift Voucher 173 Min: Rs 50 - Max: Rs 5000
BigBasket eGift Voucher 174 Min: Rs 1 - Max: Rs 100000
Bluestone eGift Voucher 175 Min: Rs 1 - Max: Rs 500000

Send Otp

                          
                              http://api.rechapi.com/kyc/sendOtp.php?format=#format&token=#token&kycMobile=#kycMobile
                              
                              /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/kyc/sendOtp.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&kycMobile=#kycMobile";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              /*
                              #kycMobile -> Kyc mobile number
                            
                              */
                              
                              //Output xml

                              
                              
                                 
                                    #status
                                    
                                    #error_code
                                    #kycMobile
                                    #resText
                              

                              //Output json

                              {"data":{"status":"#status","mobile":"#mobile","error_code":"#error_code","resText":"#resText"}}
                              
                              
                              /*
if status is success or error_code is 200 means otp has been sent to your give mobile
*/


                          
                      

Register Kyc

                          
                              http://api.rechapi.com/kyc/kyc.php?format=json&token=#token&kycMobile=#kycMobile&customerName=#customerName&shopName=#shopName&address=#address&pincode=#pincode&state=#state&email=#email&pan=#pan&dob=#dob&aadhaar=#aadhaar&otp=#otp
                             
                              /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/kyc/kyc.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&kycMobile=#kycMobile&customerName=#customerName&shopName=#shopName&address=#address&pincode=#pincode&state=#state&email=#email&pan=#pan&dob=#dob&aadhaar=#aadhaar&otp=#otp";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              //Output xml

                              
                              
                                 
                                    #status
                                    
                                    #error_code
                                    #kycMobile
                                    #resText
                              

                              //Output json

                              {"data":{"status":"#status","mobile":"#mobile","error_code":"#error_code","resText":"#resText"}}
                              
                              
                              /*
if status is success or error_code is 200 means kyc is registered . Please uploaded kyc related document in your account with self attested and date mention on it
*/


                             


                          
                      

Agent Registration

                          
                              http://api.rechapi.com/pan/registerAgent.php?format=#format&token=#token&mobile=#agentMobile
                              
                              /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/pan/registerAgent.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&mobile=#agentMobile";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              
                              /*
                              #agentMobile -> This number must be verified with KYC document first, Follow KYC api to verify this number and upload related document to your rechapi account.
                            **Note** -> Remeber you must buy at least 5 coupon in average per agent . If condition not followed you can not add more agent.
                              */
                              
                              //Output xml

                              
                              
                                 
                                    #status
                                    
                                    #error_code
                                    #agentMobile
                                    #resText
                              

                              //Output json

                              {"data":{"status":"#status","mobile":"#agentMobile","error_code":"#error_code","resText":"#resText"}}
                              
                              
                              /*
if status is success or error_code is 200 means request successfully accepeted , User will receive user id and password on their mobile once account is activated. 
Remeber you can not take any charge for agent registration . If we found this then your account will be suspend from all the service you using with us .
*/


                          
                      

Agent Registration Status

                          
                              http://api.rechapi.com/pan/agentStatus.php?format=#format&token=#token&mobile=#agentMobile
                             
                             
                             /*
// If you want to used most sucured version api use this one
                              
                              Secure method url -> http://api.rechapi.com/pan/agentStatus.php?format=#format&secure=1&userId=#userId
                              Method -> POST
                              $rechargeData="token=#token&mobile=#agentMobile";
                              data=encryptData($rechargeData, $apiToken);
                              

                              */
                              
                              
                              
                              //Output xml

                              
                              
                                 
                                    #status
                                    
                                    #error_code
                                    #agentMobile
                                    #resText
                              

                              //Output json

                              {"data":{"status":"#status","mobile":"#agentMobile","error_code":"#error_code","resText":"#resText"}}
                              
                              
                              /*
if status is APPROVED or error_code is 200 means  agent successfully registered with PSA service.
*/


                             


                          
                      

Buy Coupon For Pan

                          
                              
                              Use Recharge Api to buy pan coupon , User opid -> 170 to buy coupon . amount field is not required for this service
                              
                              

                              To check status of coupon use recharge api status url.

                                Mimimum 2 coupons are allowed to buy