Skip to main content

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.

FieldValue
NameVAS – Portal redirect
URLhttp://<domain>/landing/redirect
DescriptionThis API will return redirect URL

📄 Request Parameters

ParameterData TypeMandatory/OptionalDescription
sAppTokenStringMShared by VAS at time of onboarding
sProductCodeStringOUnique Product Code (Mandatory for Request Type 1 & 3)
sTpUserIdStringOThird party user id (Mandatory for Request Type 1)
sTwoWayTokenStringMToken generated by Third party for two-way authentication
nRequestTypeStringM1 = Basket (On Every Execution User Login); 2 = Persistence Login request; 3 = Execute Basket with Persistence Login
oEchoBackObjectJson ObjectOObject returned back to calling application (base64 encoded; only on Request Type 1)
sPartnerIdStringOBroker's Id from VAS Broker list call. Skips broker selection page.
sSessionStringM (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