POST/NorenWClientAPI/ValidateHsToken
Validate HS Token
Server-to-server check that confirms a LoginId/token pair issued at login is still valid — used to gate access before handing a user off to an external integration such as Back Office.
Server-to-server check that confirms a LoginId/token pair issued at login is still valid — used to gate access before handing a user off to an external integration such as Back Office.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/ValidateHsTokenapplication/x-www-form-urlencodedLoginId=<sLoginId>&token=<token>— plain form fields, not ajData/jKeyenvelope.Overview
Validate HS Token lets a third-party server confirm that a
LoginIdandtokenpair, handed to it by the trading site on redirect, is genuine and still active — before it grants that user access on its own end. This is the check step in an external integration flow: trading site → redirect with credentials → third party validates server-side → third party grants access.tokenis a live session credential — sending this request from the client would expose it in the same request meant to validate it.Parameters
sLoginIdvalue received from the Initiator site at login.LoginIdto the third-party URL.Request Examples
Response
TRUEorFALSE— there is nostat/emsgenvelope here, unlike most other endpoints. Compare the trimmed response body directly; don't attempt to JSON-parse it.TRUEFALSEExternal Integration Flow
User Id,Token, andClient IDto the third-party URL, typically as query params on the redirect.TRUE, the third-party application grants the user access; onFALSE, it denies it.Best Practices
"TRUE"/"FALSE"), not as JSON — this endpoint doesn't follow thestat/emsgconvention used elsewhere in the API.FALSEas a hard deny. Don't retry automatically — an expired or invalid token needs the user to re-authenticate from the trading site, not a repeated validation call.TRUEresult past the immediate access decision — re-validate on each new redirect rather than trusting a previously-validated token indefinitely, since the underlying session can expire or be invalidated independently.