Skip to content

Login

Request to be POSTed to uri : /NorenWClientTP/QuickAuth

Request Details

Parameter Name Possible value Description
jData* Should send json object with fields in below list
Json Fields Possible value Description
apkversion* Application version.
uid* User Id of the login user
pwd* Sha256 of the user entered password
factor2* OTP or TOTP as entered by the user
vc* Vendor code provided by infin team, along with connection URLs
appkey* Sha256 of uid|API_key
imei* Send mac if users logs in for desktop, imei is from mobile
addldivinf Optional field, Value must be in below format:
iOS - iosInfo.utsname.machine - iosInfo.systemVersion
Android - androidInfo.model - androidInfo.version. Examples: iOS - iPhone 8.0 - 9.0, Android - Moto G - 9 PKQ1.181203.01
ipaddr Optional field
source API

Example

curl https://apitest.kambala.co.in/NorenWClientTP/QuickAuth \
-d "jData={ \"apkversion\": \"1.0.0\", \"uid\": \"VIDYA\", \"pwd\": \"s3cur3Id\", \"factor2\": \"31-08-2017\", \"imei\": \"134243434\", \"source\": \"API\"}"

Response Details

Response data will be in json format with below fields:

Json Fields Possible value Description
stat Ok or Not_Ok Login Success Or failure status
susertoken It will be present only on login success. This data to be sent in subsequent requests in jKey field and web socket connection while connecting.
lastaccesstime It will be present only on login success.
spasswordreset Y If Y Mandatory password reset to be enforced. Otherwise the field will be absent.
exarr Json array of strings with enabled exchange names
uname User name
prarr Json array of Product Obj with enabled products, as defined below.
actid Account id
email Email Id
brkname Broker id
emsg This will be present only if Login fails.
(Redirect to force change password if message is
“Invalid Input : Password Expired” or “Invalid Input : Change Password” )

Sample Success Response

{
"request_time": "20:18:47 19-05-2020",
"stat": "Ok",
"susertoken": "3b97f4c67762259a9ded6dbd7bfafe2787e662b3870422ddd343a59895f423a0",
"lastaccesstime": "1589899727"
}

Sample Failure Response

{
"request_time": "20:32:14 19-05-2020",
"stat": "Not_Ok",
"emsg": "Invalid Input : Wrong Password"
}