Infinn API Documentation
Login and User Details

GenAcsTok

POST/NorenWClientAPI/GenAcsTok

jData fields

Values are sent as a JSON string in the jData form field.

code will get from successful login url

It is a SHA-256 hash created from the combination of the app key, secret key, and code without any spaces. Example: If your app key is ABC, secret key is 123, and code is x1y2z3, combine them as ABC123x1y2z3, then generate the SHA-256 hash of that string.

Request to be POSTed to url : /NorenWClientAPI/GenAcsTok

Request Details

Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
Json FieldsPossible valueDescription
code*code will get from successful login url
checksum*It is a SHA-256 hash created from the combination of the app key, secret key, and code without any spaces. Example: If your app key is ABC, secret key is 123, and code is x1y2z3, combine them as ABC123x1y2z3, then generate the SHA-256 hash of that string.

Example:

curl -location 'https://api.infinn.in/NorenWClientAPI/GenAcsTok' \
-d 'jData={"code":"v1c6d38b-7c0e-46e4-8abe-acb1f6a15089","checksum":"c5f9e0537cfa219885495ace4930b38280a39790ad43a4e713afd27e6ec93c5"}'

Response Details

Response data will be in json format with below fields.

Json FieldsPossible valueDescription
statOk or Not_OkLogin Success Or failure status
unameUser name
actidAccount id
emailEmail id
brknameBroker id
uidUser id
cnmCompany Name
emsgDisplay message (It will be present only in case of errors.)
access_typeAccess Type
access_tokenAccess Token
refresh_tokenRefresh Token
expires_inAccess Token Expire date
request_timeIt will be present only on login success.

Sample Success Response:

{
    "request_time":"20:18:47 19-05-2020",
    "stat":"Ok",
    "access_token":"e49d37bb203ad9eb5ea512d967fad5b18af504814a6b90209e21aa76e687c",
    "expires_in":"1756990407",
    "refresh_token":"51444ac9b561e007411425d440012a6d41a0d49f1413de26c1d400d52143b79",
    "lastaccesstime":"1589897972"
}

Sample Failure Response:

{
    "stat":"Not_Ok",
    "emsg":"Invalid Input : INVALID_VERIFIER",
    "uid":"TEST"
}

This Postman screenshot demonstrates how to include the access token in the request header under the Authorization field.

Postman Authorization header example

curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/GenAcsTok' \
  --header 'Content-Type: text/plain' \
  --data 'jData={}'
Response will appear here after sending a request