Send OTP
Send OTP
Postman Collection
URL
POST : /v1/service/aeps/sendOTPHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
merchantCode (String) Required
Merchant unique Code (You will get merchantCode from Merchant Onboarding API) (Max Length: 50)
Merchant unique Code (You will get merchantCode from Merchant Onboarding API) (Max Length: 50)
mobile (String) Required
Merchant Mobile Number (Max Length: 10)
Merchant Mobile Number (Max Length: 10)
aadhaarNo (String) Required
Merchant Aadhaar Number (Max Length: 12)
Merchant Aadhaar Number (Max Length: 12)
panNo (String) Required
Merchant PAN Number (Max Length: 10)
Merchant PAN Number (Max Length: 10)
routeType (String) Required
Api Service Type (Like icici) (Max Length: Fixed)
Api Service Type (Like icici) (Max Length: Fixed)
latitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
longitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
Request
Example Request
curl --location --request POST '/v1/service/aeps/sendOTP' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"merchantCode": "MC000123123",
"mobile": "9999999999",
"aadhaarNo": "987654321012",
"panNo": "ASDFG1234H",
"routeType":"icici",
"latitude": "27.8230122",
"longitude": "35.2121"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "000: OTP send successfully.",
"status": "SUCCESS",
"data": {
"token": "794d213a-3187-4a66-9ad6-b151451d314c",
"requestId": "e31abb0c-7066-40d9-9350-881b25b398a7",
"primaryId": "",
"info1": "",
"info2": ""
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "Send OTP Failed."
}
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 |