post https://pay2new.in/apis/v1/billPayment/
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Type | Description |
---|---|---|---|
number | String | M | Bill Number |
amount | number | M | Transaction Amount |
product_code | number | M | Operator Code |
request_id | String | M | Your Unique Transaction Id |
bill_fetch_ref | String | O | Bill Fetch Reference Number |
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 |
optional5 | String | O | If the value is available in the operator code page |
customer_number | number | M | The mobile number of the agent |
pincode | String | M | Postal code of the agent |
latitude | String | M | Latitude of the device – Represented in degrees with 4 digits after the decimal |
longitude | String | M | longitude of the device – Represented in degrees with 4 digits after the decimal |
ip | String | M | Agent Device IPV4 address |
outletId | String | M | Provide by Pay2New |
Sample Request For Utility Payment
curl --request POST \
--url https://pay2new.in/apis/v1/billPayment \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'secret: Unique secret key' \
--data '
{
"number": "1234567890",
"amount": 100,
"product_code": "81",
"request_id": "ABC123456789",
"bill_fetch_ref":"P2N545454545445FFD"
"optional1": "1234",
"optional2": "",
"optional3": "",
"optional4": "",
"customer_number": "9876543210",
"pincode": "414003",
"latitude": "19.1258",
"longitude": "74.7453",
"ip": "30.169.159.167",
"outletId":"2"
}
'
POST /apis/v1/billPayment HTTP/1.1
Accept: application/json
Content-Type: application/json
Secret: Unique secret key
Host: pay2new.in
Content-Length: 255
{ "number": "1234567890", "amount": "100", "product_code": "81", "request_id": "ABC123456789", "bill_fetch_ref": "P2N545454545445FFD", "optional1": "1234", "optional2": "", "optional3": "", "optional4": "", "customer_number": "9876543210", "pincode": "414003", "latitude": "19.1258", "longitude": "74.7453", "ip": "30.169.159.167", "outletId": "2" }
Response Parameters
Name | Type | Description |
---|---|---|
status | Integer | Pay2New Transaction Status |
order_id | String | Pay2New Txn ID |
request_id | String | Your Unique Transaction ID |
message | String | Transaction Message |
operator_reference | String | Operator Transaction Ref ID |
number | String | Bill Number |
amount | String | Transaction Amount |
balance | String | Remaining Wallet Balance |
Sample Response
{
"status": 1,
"order_id": "P2F16XXX376XM3RZ",
"request_id": "P2N54544444545",
"message": "Transaction Success",
"operator_reference": "REF1658828376",
"number": "123456",
"amount": "100",
"balance": "9313.67"
}