VAS Connector
🛠️🌐 Odin VAS Connector URL
This URL redirects the user to ODIN VAS Connector, where they can select a broker to trade with.
note
This URL needs to be used as an href from the client side.
| Field | Value |
|---|---|
| Name | VAS – Portal redirect |
| URL | http://<domain>/landing/redirect |
| Description | This API will return redirect URL |
📄 Request Parameters
| Parameter | Data Type | Mandatory/Optional | Description |
|---|---|---|---|
| sAppToken | String | M | Shared by VAS at time of onboarding |
| sProductCode | String | O | Unique Product Code (Mandatory for Request Type 1 & 3) |
| sTpUserId | String | O | Third party user id (Mandatory for Request Type 1) |
| sTwoWayToken | String | M | Token generated by Third party for two-way authentication |
| nRequestType | String | M | 1 = Basket (On Every Execution User Login); 2 = Persistence Login request; 3 = Execute Basket with Persistence Login |
| oEchoBackObject | Json Object | O | Object returned back to calling application (base64 encoded; only on Request Type 1) |
| sPartnerId | String | O | Broker's Id from VAS Broker list call. Skips broker selection page. |
| sSession | String | M (Request Type 3) | Session received from Persistence Login Request (Mandatory for Request Type 3) |
** 📝 Examples**
Request Type = 1 (sProductCode and sTpUserId are mandatory)
http://<SERVER IP/DOMAIN>/landing/redirect?sAppToken=xx-xxxx&sProductCode=P001&sTpUserId=XXXXX&sTwoWayToken=XXX&nRequestType=1&oEchoBackObject=<JsonObject>&sPartnerId=xxx
Request Type = 2 (sPartnerId is mandatory)
http://<SERVER IP/DOMAIN>/landing/redirect?sAppToken=xx-xx-xx&sTwoWayToken=XXX&nRequestType=2&oEchoBackObject=<JsonObject>&sPartnerId=ABC123
Request Type = 3 (sProductCode and sSession are mandatory)
http://<SERVER IP/DOMAIN>/landing/redirect?sAppToken=xx-xx-xx&sProductCode=p001&sTwoWayToken=XXX&nRequestType=3&sSession=ABC123