Skip to main content

Add Agent

Add Agent

Postman Collection

URL

POST : /v1/service/dmt/agent

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

mobile  (String)   Required
Merchant Mobile Number (Max Length: 10)
pan  (String)   Required
Merchant PAN Number (Max Length: 10)
email  (String)   Required
Merchant Email Id (Max Length: 50)
aadhaar  (String)   Required
Merchant Aadhaar Number (Max Length: 12)
latitude  (String)   Required
Current location latitude (Max Length: 20)
longitude  (String)   Required
Current location longitude (Max Length: 20)
merchantCode  (String)   Optional
Merchant unique ID (Max Length: 10)

Request

Example Request
    curl --location --request POST '/v1/service/dmt/agent' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"mobile": "999999999",
"pan": "ABCDExxxxF",
"email": "abcd@example.com",
"aadhaar": "xxxxxxxx2222",
"latitude": "76.322410",
"longitude": "21.1230348",
"merchantCode": "MC1234567"
}'

Response Samples

{
"code": "0x0200",
"message": "OTP send successfully.",
"status": "SUCCESS",
"data":{
"aadhaar": "xxxxxxxx2222",
"otpReference": "OGVmOTE3dhxmnckvkhgkdkjdwhdsjhjhdI0NmRhYzM4",
"hash": "fgBVHnqXWsBw+AAdPVk+MSL4jOdqxiKl2uM+fHYOwBjYQ+J3YuC8O0FcDqoMoY2xawmPvzDZU5lGXYP/O08tdn7CTSEtsjjUDOAn6a3jVzncRff"
}
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x02082FATWO FACTOR AUNTHENTICATION