User login with OTP

This api is for User login with OTP


REST


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring/v1/otp/loginM
METHODstringPOSTM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenM

Request

{
            "mobile": "919891055605",
            "otp": "xxxx"
}


Success

{
                     "token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNTk3MDVkNmUzZDUzMmFjMDEs"

}


Error



Above api will return a valid token only if the user has already attached his mobile number to his paysack account by clicking the link in the Welcome email.