Add Agent
Add Agent
Postman Collection
URL
POST : /v1/service/dmt/agentHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
mobile (String) Required
Merchant Mobile Number (Max Length: 10)
Merchant Mobile Number (Max Length: 10)
pan (String) Required
Merchant PAN Number (Max Length: 10)
Merchant PAN Number (Max Length: 10)
email (String) Required
Merchant Email Id (Max Length: 50)
Merchant Email Id (Max Length: 50)
aadhaar (String) Required
Merchant Aadhaar Number (Max Length: 12)
Merchant Aadhaar Number (Max Length: 12)
latitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
longitude (String) Required
Current location longitude (Max Length: 20)
Current location longitude (Max Length: 20)
merchantCode (String) Optional
Merchant unique ID (Max Length: 10)
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
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "OTP send successfully.",
"status": "SUCCESS",
"data":{
"aadhaar": "xxxxxxxx2222",
"otpReference": "OGVmOTE3dhxmnckvkhgkdkjdwhdsjhjhdI0NmRhYzM4",
"hash": "fgBVHnqXWsBw+AAdPVk+MSL4jOdqxiKl2uM+fHYOwBjYQ+J3YuC8O0FcDqoMoY2xawmPvzDZU5lGXYP/O08tdn7CTSEtsjjUDOAn6a3jVzncRff"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "UIDAI currently looks down, please try after some time #AVSGAA3"
}
Response Code
| Status Code | Status | Message |
|---|---|---|
| 0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
| 0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
| 0x0202 | FAILURE | FAILURE USER |
| 0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
| 0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
| 0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
| 0x0206 | PENDING | TRANSACTION PENDING |
| 0x0208 | 2FA | TWO FACTOR AUNTHENTICATION |