post https://pay2new.in/apis/v1/recharge/
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M) , Optional (O) | Description |
---|---|---|---|
number | String | M | Recharge Mobile Number for DTH Subscription ID |
amount | String | M | Transaction Amount |
product_code | String | M | Operator Code Available in API panel. |
request_id | String | M | Your Unique Transaction ID |
optional1 | String | O | If the value is available in the operator code page |
optional2 | String | O | If the value is available in the operator code page |
optional3 | String | O | If the value is available in the operator code page |
optional4 | String | O | If the value is available in the operator code page |
Sample Request For Mobile & DTH Recharge
curl --location 'https://pay2new.in/apis/v1/recharge' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'secret: 1212312312312123123123132' \
--data '{
"number": "7439539XXX",
"amount": "199",
"product_code": "3",
"request_id": "P2N1729757231WOMFD",
"optional1": "",
"optional2": "",
"optional3": "",
"optional4": "",
"customer_number": "860043XXXX",
"pincode": "414002",
"latitude": "19.1258",
"longitude": "74.7453",
"ip": "103.211.218.213",
"outletId": "1"
}'
POST /apis/v1/recharge HTTP/1.1
Host: pay2new.in
Accept: application/json
Content-Type: application/json
secret: 1212312312312123123123132
{
"number": "7439539XXX",
"amount": "199",
"product_code": "3",
"request_id": "P2N1729757231WOMFD",
"optional1": "",
"optional2": "",
"optional3": "",
"optional4": "",
"customer_number": "860043XXXX",
"pincode": "414002",
"latitude": "19.1258",
"longitude": "74.7453",
"ip": "103.211.218.213",
"outletId": "1"
}
Response Parameters
Name | Type | Description |
---|---|---|
status | Integer | Pay2New Transaction Status |
order_id | String | Pay2New Transaction ID |
request_id | String | Your Unique Transaction ID |
message | String | Transaction Message |
operator_reference | String | Operator Transaction Ref ID |
number | String | Recharge Mobile Number for DTH Subscription ID |
amount | String | Transaction Amount |
balance | String | Remaining Wallet Balance |
Sample Response
{
"status": 1,
"order_id": "P2F1729757234ZN0PI",
"request_id": "P2N1729757231WOMFD",
"message": "Transaction Successful",
"operator_reference": "4271456396",
"number": "74395393XXXX",
"amount": "199",
"balance": "181426.02"
}