Verify Agent
Verify Agent
Postman Collection
URL
POST : /v1/service/dmt/agent/verifyHeaders
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)
otp (String) Required
OTP received on Merchant Mobile Number (Max Length: 8)
OTP received on Merchant Mobile Number (Max Length: 8)
otpReference (String) Required
Same as received in Add Agent API response (Max Length: 50)
Same as received in Add Agent API response (Max Length: 50)
hash (String) Required
Same as received in Add Agent API response (Max Length: --)
Same as received in Add Agent API response (Max Length: --)
Request
Example Request
curl --location --request POST '/v1/service/dmt/agent/verify' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"mobile": "9999999999",
"otp": "123456",
"otpReference": "OGVmOTE3dhxmnckvkhgkdkjdwhdsjhjhdI0NmRhYzM4",
"hash": "fgBVHnqXWsBw+AAdPVk+MSL4jOdqxiKl2uM+fHYOwBjYQ+J3YuC8O0FcDqoMoY2xawmPvzDZU5lGXYP/O08tdn7CTSEtsjjUDOAn6a3jVzncRff"
}
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "OTP verify successfully.",
"status": "SUCCESS",
"data":{
"outletId": 249385,
"name": "SWAPNIL KUMAR",
"dateOfBirth": "09-10-1989",
"gender": "M",
"pincode": "400050",
"state": "Maharashtra",
"districtName": "Mumbai",
"address": "28/6, Bandra, , SV Road, ",
"profilePic": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEwBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wByMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADIAKADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEECAwQFBgcICQoL"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "Invalid otpReferenceID"
}
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 |