Verify OTP Sent to Email API

The Verify OTP Sent to Email API is used to verify the OTP that was sent an OTP to the customer’s email ID.

Environment

Sample request
curl --request POST \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v1/verifyEmailOtp \
     --header 'X-Consumer-Custom-ID: F42BC4E7B801C834B630DE498473533F' \
     --header 'bankId: 6060' \
     --header 'clientId: 1060' \
     --header 'content-type: application/json' \
     --header 'entityId: 100' \
     --header 'secureCode: pu8gSMLNE7pNv36IlUmstU' \
     --header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
     --data '
{
  "token": "rYJGrjmkDUO1GaaSuvWoG27iiXeFG47Mf3yU4fmtVKy8ya3gJZj91DeRfnpAuc5SZR1ifwuO+iidDQ7+yiAALNg7pZkq0PlztdVpBNuoaqn73eVCTd4uYvDTRXHREaQiF1zLwzktvtoTjhp/v133hSzmcrdR5E0L8XzoTFcu3EDN6JfXlnwoWaFZQylpMCgFT69oWXtDDuFDt7cYEMoMgA=="
}
'
Response parameters (Decrypted)

This API will provide a token in the response that must be decrypted using the Decrypt API. The decrypted response is similar to the following:

ParameterTypeParameter RequirementDescription
messageCodenumeric(4)MandatoryAPI Unique IDentifier.
clientTxnIdstring(100)MandatoryUnique ID generated by the calling application for each API request.
responseDateTimenumeric(14)MandatoryResponse date time in the format YYYYMMDDHHMMSS with time in 24-hour format
responseCodestring(4)MandatoryRepresents the status of the transaction.
responseMessagestring(100)OptionalResponse message based on the response code.
bankIdnumeric(4)MandatoryValue echoed from the request header.
clientIdStringMandatoryValue echoed from the request header.
Sample response (Decrypted)
{
  "messageCode": "2090",
  "clientTxnId": "MAILSENTOTPTEST53",
  "requestDateTime": "20220909112862",
  "emailId": "[email protected]",
  "otp": 831676
}
Error codes
Error CodeDescription
00SUCCESS
1001CARD_NOT_FOUND
1017INVALID OTP
1030INVALID MESSAGE
1031INVALID BANK ID
1032INVALID_CLIENT_CHANNEL
1049INVALID SECURE CODE
1052SYSTEM_ERROR
1055MALFORMED_REQUEST
1081OPERATION NOT ALLOWED
1088INVALID DATE format
1093INVALID CLIENT TXN ID
1262CLIENT ID NOT PRESENT
1264BANK ID NOT PRESENT
1310XCONSUMERKEY NOT PRESENT
1311SECURE CODE NOT PRESENT
1320REQUEST_DATETIME_IS_MANDATORY
1500SYSTEM_ERROR_UNKNOWN
1501SYSTEM_ERROR_DB

Request parameters

Language
URL
Click Try It! to start a request and see the response here!