Remitter Registration

📘

Header Request

secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)

Request Parameters

ParametersTypeDescription
mobileStringMobile number of the Remitter
aadhaarNumberStringAadhaar number of the Remitter
referenceKeyStringRemitter 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

ParametersTypeDescription
statusIntegerPay2New Status Code Status 4 = OTP Successfully sent
messageStringMessage from API
dataArrayResponse Data (If Present)
data.validityStringOTP validity
data.referenceKeyStringOTP Reference Key
order_idStringTransaction 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
}
Language
Click Try It! to start a request and see the response here!