Get OTP

API to generate an OTP and get MFC redirect URL from MFCentral for a particular transactionId, phone and PAN combination

👍

Learn how to create a transactionId for the Mutual Fund Holdings Import -

https://developers.gateway.smallcase.com/reference/mutual-fund-holdings-import-transaction

On hitting the API for a 200 response, an OTP will be shared by MFCentral, to the user on the phone number provided in this particular API call

The same OTP is to be used in the /verifyOTP API call

Error Maps

DescriptionstatusCodeerror messageerrorType
Internal Error on the smallcase gateway server500Internal ErrorInternalError
transactionId passed is either non-existent or invalid400TransactionIdNotFoundInputException
transactionId passed is not of the intent MF_HOLDINGS_IMPORT400InvalidIntentInputException
transactionId passed is expired400TransactionIdExpiredAccessDenied
maximum number of otp resend exceeded with this particular transactionId
(max. 5 attemps allowed per transaction)
400otp_resend_limit_exceededAccessDenied
PAN and phone combination is invalid (can happen when the used number is not linked to any folios)422Invalid PAN and Mobile combinationMFCException
PAN and email combination is invalid (can happen when the used email is not linked to any folios)422Invalid PAN and Email combinationMFCException
Invalid request sent to MFCentral422Invalid Input or Request FormatMFCException
Ratelimit exceeded on MFCentral for the Client429Too many requests to the API (rate limiting)MFCException
validation error on MFCentral400Validation error or Invalid request parameters or valuesMFCException
Invalid access token or client Id401Invalid token or client IdMFCException
Body Params
string
required
Defaults to ABCDEF14G

PAN for which the mutual funds holdings are to be imported

string
Defaults to +911234567890

phone number which must be linked with any of the invested folios or pan. The OTP will be sent on this number. Either of phone or email needs to be passed.

string
required
Defaults to TRX_dc73061e7f79470dbb7bad384243f210

the transactionId for generated for the intent MF_HOLDINGS_IMPORT

string
Defaults to user@domain

email which must be linked with any of the invested folios or pan. The OTP will be sent on this email

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json