post https://pay2new.in/apis/dmt/v2/remitterRegistration
Header Request
secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)
Request Parameters
Parameters | Type | Description |
---|---|---|
mobile | String | Mobile number of the Remitter |
aadhaarNumber | String | Aadhaar number of the Remitter |
referenceKey | String | Remitter Profile API responce referenceKey |
Sample Request
curl --location 'https://pay2new.in/apis/dmt/v2/remitterRegistration' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'outletId: 2' \
--header 'Content-Type: application/json'
--data '{
"mobile": "9876543210",
"aadhaarNumber" : "987654321012",
"referenceKey" : "gje1myrSH3Di2yWimkCjjIHl2PyjLO92C7vVA8shdQtxa0XXAfdhB/epxk1LrRyjNc"
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay2new.in/apis/dmt/v1/remitterRegistration',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"mobile": "9876543210",
"firstName": "Test",
"lastName": "Test",
"pinCode": "123456"
}',
CURLOPT_HTTPHEADER => array(
'secret: qwertyuQWERTY12345asdf',
'outletId: 2',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response Parameters
Parameters | Type | Description |
---|---|---|
status | Integer | Pay2New Status Code Status 4 = OTP Successfully sent |
message | String | Message from API |
data | Array | Response Data (If Present) |
data.validity | String | OTP validity |
data.referenceKey | String | OTP Reference Key |
order_id | String | Transaction Id ( If transaction otherwise it is null ) |
Sample Response
{
"status": 4,
"message": "OTP Successfully sent",
"data": {
"validity": "2025-01-30 15:42:47",
"referenceKey": "Dsx932+/d9sP3iNKSQQu2kTTsiA9ipMqitgaaa6ttWpQBfX0PYq7Wu2cLzrc7vKd.v2.523e89d2aa4f0289-0287-475f-9af8-261ffdb5c7c4"
},
"order_id": null
}