On this page
What this endpoint does

The other side of Get HS Token. The third-party site calls this from its own server to check the ticket is real.

POSThttps://api.infinn.in/NorenWClientAPI/ValidateHsToken
Method
POST
Authentication
Token required
Content-Type
text/plain
Body
jData=<json>
Returns
JSON object
Rate limit
20 orders/sec, 200/min (account-wide)

What it does

The other side of Get HS Token. The third-party site calls this from its own server to check the ticket is real.

Checks whether an HS token is genuine. Returns plain text, not JSON.

Server-side only

The API specification marks this endpoint "to be used only from server". Do not call it from a browser or a mobile app: a client that can ask "is this token valid?" can also be tricked into accepting its own answer.

How the hand-off works
  1. The user clicks a link to the third-party site. 2. Your site passes the user ID, token and client ID to it. 3. That site's server calls ValidateHsToken. 4. If the answer is TRUE, it grants the user access.

Request

Send a POST with the header Content-Type: text/plain. The body is a single form field, jData, whose value is a JSON string. Include Authorization: Bearer <access_token>. See how requests are shaped if that sounds unfamiliar.

Headers

Request headers
HeaderTypeDescription
Authorization
required
string

Bearer <access_token>, using the access_token from GenAcsTok. A missing or rejected token returns an HTTP error (usually 403) with an empty body.

Content-Type
required
string

text/plain (used in these docs) or application/json. Both work. The body is always jData=<JSON>.

jData fields

Request parameters
FieldTypeDescription
LoginId
required
string

The sLoginId received from the initiating site.

The user ID the first site passed along.

token
required
string

The token obtained on login success.

Example2885

Request and response together

The same call, shown as raw HTTP on the left and the documented response on the right.

Request
HTTP request
POST /NorenWClientAPI/ValidateHsToken HTTP/1.1
Host: api.infinn.in
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: text/plain

jData={"LoginId":"REPLACE_ME","token":"2885"}
Response
Response

No sample response is published for this endpoint. See Known limitations.

Code examples

Each sample is a complete, runnable program. Replace YOUR_ACCESS_TOKEN and the placeholder field values, and it will run as-is. Every one checks both error layers.

cURL
curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/ValidateHsToken' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: text/plain' \
--data 'jData={"LoginId":"REPLACE_ME","token":"2885"}'

Response

About this response

This endpoint does not return JSON. The body is the plain text TRUE when the token is valid, or FALSE when the user ID or token is invalid. Do not try to parse it as JSON.

Errors

This endpoint can fail at either layer. A transport failure returns a 4xx or 5xx with an empty body; an application failure returns 200 with stat: "Not_Ok" and an emsg.

Esc
↑↓ navigate↵ openEsc close/ to search