How API works ?
The API works on HTTP-GET METHOD, and the URL to be used is
https://pay2new.in/Api/recharge
Whenever you submit or enquire any request through our API's the system immediately gives you the response in any one of the following format:
- JSON
Availabe API's
- API for Mobile,DTH & Data Card Recharge
- API for Paying Post Paid Bills
- API for Paying Electricity, Gas & Insurance Bills
- API for Checking Account Balance
- API for Checking Recharge Status
Variables to be used
id | Pay2New User ID |
password | User API Account Password |
key | Go to API Account and Register Server IP Address and Get Key |
token | Go to API Account and Register Server IP Address and Get token |
txnid | Your Transaction ID |
mobile | Mobile/DTH/Electricity Number |
operator | Operator Code (Provided API Document) |
circle | Circle Code (Provided API Document) |
amount | Recharge Amount |
othervalue | Required MSEDCL Electricity (BU), Insurance (DOB) |
format | Default format is JSON |
Operator Code
Sr No. | Operator Name | Operator Code | Service Type |
---|---|---|---|
1 | Airtel | AT | Prepaid-Mobile |
2 | BSNL 3G | BSG | Prepaid-Mobile |
3 | BSNL Recharge | BSV | Prepaid-Mobile |
4 | BSNL Special (STV) | BSS | Prepaid-Mobile |
5 | BSNL TopUp | BSNL | Prepaid-Mobile |
6 | Idea | ID | Prepaid-Mobile |
7 | Jio Reliance | JIO | Prepaid-Mobile |
8 | Tata Docomo | TD | Prepaid-Mobile |
9 | Tata Docomo Special | TDS | Prepaid-Mobile |
10 | Vodafone | VF | Prepaid-Mobile |
11 | Aircel POSTPAID | ACPP | Postpaid-Mobile |
12 | Aircel PostPaid | ACLP | Postpaid-Mobile |
13 | Airtel | ATP | Postpaid-Mobile |
14 | BSNL Mobile | BSP | Postpaid-Mobile |
15 | Idea | IDP | Postpaid-Mobile |
16 | LOOP Mobile | LMP | Postpaid-Mobile |
17 | Reliance CDMA | RCP | Postpaid-Mobile |
18 | Reliance GSM | RGP | Postpaid-Mobile |
19 | Tata Docomo GSM | TDP | Postpaid-Mobile |
20 | Tata Indicom | TIP | Postpaid-Mobile |
21 | Vodafone bill | VFP | Postpaid-Mobile |
22 | Any problematic recharge | Manually | Other |
23 | LIC Insurance | LIC1 | Other |
24 | LONE INSURANCE UII | LONE | Other |
25 | MSEDCL | Other | Other |
26 | Test | test | Other |
27 | test1 | test1 | Other |
28 | Airtel Landline | ATL | Landline |
29 | BSNL Landline | BSL | Landline |
30 | MTNL Landline | MTL | Landline |
31 | Reliance PP | RPP | Landline |
32 | ICICI Prudential Life | IPL | Insurance |
33 | LIC Insurance | LIC | Insurance |
34 | Tata AIA Life Insurance | TLI | Insurance |
35 | Tata AIG General Insuranc | TAI | Insurance |
36 | Adani Gas - GUJARAT | ADG | GAS |
37 | Adani Gas - HARYANA | AHG | GAS |
38 | GUJRAT GAS COMPANY | GGCO | GAS |
39 | Haryana City Gas | HCG | GAS |
40 | Indraprastha Gas | IPG | GAS |
41 | Mahanagar GAS | MMG | GAS |
42 | Maharashtra Natural Gas | MNG | GAS |
43 | Sabarmati Gas | SGG | GAS |
44 | Siti Energy | SUG | GAS |
45 | Tripura Natural Gas | TNG | GAS |
46 | Unique Central Piped Gas | UCG | GAS |
47 | Vadodara Gas | VGG | GAS |
48 | AAPDCL (RAPDR) - ASSAM | AAE | Electricity |
49 | Ajmer vidyut vitran nigam | AVVN | Electricity |
50 | APEPDCL- ANDHRA PRADESH | APEPDCL | Electricity |
51 | BANGALORE ELECTRICITY SUP | BESC | Electricity |
52 | BESCOM - BENGALURU | BESCOM | Electricity |
53 | BESL - BHARATPUR | BPE | Electricity |
54 | Best Electricity - Mumbai | BEMUM | Electricity |
55 | BKESL - BIKANER | BKE | Electricity |
56 | BSES Rajdhani Power Limited - Delhi | BRPL | Electricity |
57 | BSES Yamuna Power Limited - Delhi | BYP | Electricity |
58 | Calcutta Electricity Supp | CESC | Electricity |
59 | CESC - WEST BENGAL | CWE | Electricity |
60 | CHHATTISGARH ELECTRICITY | CEB | Electricity |
61 | DAKSHIN GUJARAT VIJ COMPA | DGVC | Electricity |
62 | Daman and Diu Electricity | DDE | Electricity |
63 | DHBVN - Dakshin Haryana | DHE | Electricity |
64 | DNHPDCL-DADRA &NAGAR Have | DNE | Electricity |
65 | GESCOM - KARNATAKA | GKE | Electricity |
66 | India Power - BIHAR | IBE | Electricity |
67 | India Power - WEST BENGAL | IPE | Electricity |
68 | JAIPUR VIDYUT VITRAN NIGA | JVVNL | Electricity |
69 | JODHPUR VIDYUT VITRAN NI | JOVVNL | Electricity |
70 | JUSCO-Jamshedpur Utilitie | JUSCL | Electricity |
71 | Kota Electricity Distribu | KRE | Electricity |
72 | MADHYA GUJARAT VIJ COMPAN | MGVC | Electricity |
73 | Madhya Kshetra Vitaran-MP | MPMKVVCL | Electricity |
74 | MEPDCL - MEGHALAYA | MEE | Electricity |
75 | MSEDCL MAHARASHTRA | MSEDCL | Electricity |
76 | NESCO - ODISHA | NOE | Electricity |
77 | Noida Power Company Li. | NPCL | Electricity |
78 | North Bihar Electricity | NBELE | Electricity |
79 | NORTH DELHI POWER LIMITED | NDPL | Electricity |
80 | PASCHIM GUJARAT VIJ COMPA | PGVC | Electricity |
81 | PUNJAB STATE POWER CORPOR | PSPC | Electricity |
82 | Reliance Energy Limited | REL | Electricity |
83 | South Bihar Electricity | SBELE | Electricity |
84 | Southern power AP | APSPDCL | Electricity |
85 | Southern Power Telangana | TSPDCL | Electricity |
86 | TAMIL NADU ELECTICITY BO | TNEB | Electricity |
87 | Tata Power Delhi Limited - Delhi | TPDL | Electricity |
88 | TORRENT POWER | TP | Electricity |
89 | UPCL - UTTARAKHAND | UKE | Electricity |
90 | UTTAR GUJARAT VIJ COMPANY | UGVC | Electricity |
91 | UTTAR HARYANA BIJLI VITR | UHBV | Electricity |
92 | WEST BENGAL ELECTRICITY D | WBED | Electricity |
93 | Airtel | ATD | DTH |
94 | Big TV | BTD | DTH |
95 | Dish TV | DTD | DTH |
96 | Sun | SD | DTH |
97 | Tata Sky | TSD | DTH |
98 | Videocon DTH | VDD | DTH |
99 | Aircel Datacard_cp | AD | Datacard |
100 | Bsnl Datacard_cp | BD | Datacard |
101 | MTS Mblaze | MTM | Datacard |
102 | MTS Mbrowse | MTW | Datacard |
103 | Reliance NetConnect 1X | RN | Datacard |
104 | Reliance NetConnect 3G | RNG | Datacard |
105 | Reliance NetConnect+ | RNC | Datacard |
106 | Tata Photon Whiz | TPW | Datacard |
107 | Tata Photon+ | TPP | Datacard |
108 | Vodafone DataCard_cp | VFD | Datacard |
Circle Code
S. No | Circle Name | Circle Code |
---|---|---|
1 | Andhra Pradesh | 1 |
2 | Assam | 2 |
3 | Bihar | 3 |
4 | Chennai | 4 |
5 | Delhi | 5 |
6 | Gujarat | 6 |
7 | Haryana | 7 |
8 | Himachal Pradesh | 8 |
9 | Jammu & Kashmir | 9 |
10 | Karnataka | 10 |
11 | Kerala | 11 |
12 | Kolkata | 12 |
13 | Maharashtra & Goa (except Mumbai) | 13 |
14 | Madhya Pradesh & Chhattisgarh | 14 |
15 | Mumbai | 15 |
16 | North East | 16 |
17 | Orissa | 17 |
18 | Punjab | 18 |
19 | Rajasthan | 19 |
20 | Tamil Nadu | 20 |
21 | Uttar Pradesh - East | 21 |
22 | Uttar Pradesh - West | 22 |
23 | West Bengal | 23 |
24 | Jharkhand | 24 |
RECHARGE REQUEST API -MOBILE/DTH/DATA CARD
https://pay2new.in/Api/recharge&id=User_ID&password=password&key=key&token=token&txnid=txnid&mobile=mobile_number&operator=OperatorCode&circle=Circle_Code&amount=amount&format=csv/json/xmlSAMPLE RESPONSES
FAILURE Response:
{"status":"FAILURE","error_massage":"Low Balance"}
SUCCESS Response:
{"ApiTransID":"1236456789","Status":"SUCCESS","ErrorMessage":"Transaction Successful.","OperatorRef":"MH12345678912345","TransactionDate":"123456789"}
POSITION | VARIABLE | EXPLANATION |
---|---|---|
0 | ApiTransID | Pay2New Unique ID |
1 | Status | Transaction status of the recharge "SUCCESS /FAILED /FAILURE /PENDING /REFUND" |
2 | ErrorMessage | Error Code with reason against failure. |
3 | OperatorRef | Transaction Id provided by the operator (If available else "0" or "Blank" response) |
4 | TransactionDate | Date & Time of transaction (Timestamp Format ) |
RECHARGING POSTPAID MOBILE/LANDLINES
Things to remember- For BSNL Landline, Mobile & MTNL Delhi Landlines required "Account Number" which is available in the customer bill in order to process the bill payment. Please use "account" variable to pass Account Number
- Paying amount should be exactly same as the bill amount for BSNL Landlines, BSNL Mobile, MTNL Delhi Landlines, if paying after the due date then please add the late payment fee as mentioned in your bill.
- Broadband Internet bills can also be paid for BSNL,MTNL Delhi & Airtel.
- Note (For API users) : Please use “-“ as separator between STD_CODE-LANDLINE_NUMBER while executing Landline bill payment. And don’t User 0 as prefix in STD code.
- In case if there in no response / Delay response / 0 Value Return from api then mark that recharge as pending Then Please use Status Check URL after few mins to get the exact info.
BALANCE CHECK
https://pay2new.in/Api/balance?id=userid&password=password&key=key&token=token
SAMPLE RESPONSE
{"blns":"10000","error_massage":"Transaction Success"}
RECHARGE STATUS
https://pay2new.in/Api/status?txnid=1234567899&mobile=155360006623
SAMPLE RESPONSE
{"status":"SUCCESS","recharge_amount":"500","txn_id":"1234567899","operator_ref":"PNS0032285582491073","error_msg":"Transaction Successful"}