post https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v1/verifyEmailOtp
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
Sandbox | https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v1/verifyEmailOtp |
Production | Contact your WIBMO KAM or support. |
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:
Parameter | Type | Parameter Requirement | Description |
---|---|---|---|
messageCode | numeric(4) | Mandatory | API Unique IDentifier. |
clientTxnId | string(100) | Mandatory | Unique ID generated by the calling application for each API request. |
responseDateTime | numeric(14) | Mandatory | Response date time in the format YYYYMMDDHHMMSS with time in 24-hour format |
responseCode | string(4) | Mandatory | Represents the status of the transaction. |
responseMessage | string(100) | Optional | Response message based on the response code. |
bankId | numeric(4) | Mandatory | Value echoed from the request header. |
clientId | String | Mandatory | Value echoed from the request header. |
Sample response (Decrypted)
{
"messageCode": "2090",
"clientTxnId": "MAILSENTOTPTEST53",
"requestDateTime": "20220909112862",
"emailId": "[email protected]",
"otp": 831676
}
Error codes
Error Code | Description |
---|---|
00 | SUCCESS |
1001 | CARD_NOT_FOUND |
1017 | INVALID OTP |
1030 | INVALID MESSAGE |
1031 | INVALID BANK ID |
1032 | INVALID_CLIENT_CHANNEL |
1049 | INVALID SECURE CODE |
1052 | SYSTEM_ERROR |
1055 | MALFORMED_REQUEST |
1081 | OPERATION NOT ALLOWED |
1088 | INVALID DATE format |
1093 | INVALID CLIENT TXN ID |
1262 | CLIENT ID NOT PRESENT |
1264 | BANK ID NOT PRESENT |
1310 | XCONSUMERKEY NOT PRESENT |
1311 | SECURE CODE NOT PRESENT |
1320 | REQUEST_DATETIME_IS_MANDATORY |
1500 | SYSTEM_ERROR_UNKNOWN |
1501 | SYSTEM_ERROR_DB |