Skip to main content

Two Way Authentication

♾️🔐 Two-Way Authentication of VAS from Third-Party (Implemented by VAS)

This API validates the Two-way authentication token generated by VAS. Called from Third Party.

FieldValue
NameTwo-WayAuthenticationAPI
URLhttp://<domain>/loginservice/vas-auth
DescriptionTwo-way authentication between VAS and third party
MethodPOST

📄 Request

Header

ParameterDescription
Content-Typeapplication/json

Body

ParameterData TypeMandatory/OptionalDescription
tokenStringMAs received in GetOrderDetails API
userRefIdStringMTrading User ID
applicationTokenStringMToken generated at VAS system at time of Publisher Onboarding (shown in Organization → Admin login)

Example Request

{
"token": "auth_code_generated_by_system",
"userRefId": "W001",
"applicationToken": "29fc4b9fdgghhjj"
}

📄 Response

ParameterData TypeMandatory/OptionalDescription
SuccessBooleanMtrue – Success, false – Failure
DataStringMJSON string, details of order
MessageStringMSuccess/Failure message for the API
statusCodeStringMApplication status code
traceIdStringMSystem generated Code by third-party, used for VAS log purpose

** ✅ Example Success Response**

{
"success": true,
"statusCode": "reg-200-043",
"data": null,
"message": "vas authorization Successful.",
"traceId": "98531cc2-315c-4ebc-b8c6-ee1fb13feeaa"
}

** 🔴 Example Failure Response**

{
"success": false,
"statusCode": "reg-400-042",
"data": null,
"message": "vas authorization failed.",
"traceId": "98531cc2-315c-4ebc-b8c6-ee1fb13feeaa"
}

🔁🛡️ Two-Way Authentication of VAS from Third-Party (Implemented by Third Party)

This API validates the Two-way authentication token generated by Third Party. Called from VAS.

FieldValue
NameTwo-WayAuthenticationAPI
URLhttp://<Third party URL>
DescriptionTwo-way authentication between third party and VAS
MethodPOST

🧾 Request

Header

ParameterMandatory/OptionalDescription
Content-Type = application/jsonMapplication/json

Body

ParameterData TypeMandatory/OptionalDescription
sAuthTokenStringMAs received from third party (sTwoWayToken)
sApplicationTokenStringMToken generated at VAS system at time of Publisher Onboarding (shown in Organization → Admin login)

Example Request

{
"sAuthToken": "XXXX-XXXX-XXXX-XX",
"sApplicationToken": "29fc4b9fdgghhjj"
}

📄 Response

ParameterData TypeMandatory/OptionalDescription
successBooleanMtrue – Success, false – Failure
dataStringMJSON string, details of order
messageStringMSuccess/Failure message for the API
statusCodeStringMApplication status code
traceIdStringMSystem generated Code by third-party, used for VAS log purpose

** ✅ Example Success Response**

{
"success": true,
"statusCode": "reg-200-2066",
"data": null,
"message": "Two Way Authentication Success.",
"traceId": "98531cc2-315c-4ebc-b8c6-ee1fb13feeaa"
}

** 🔴 Exception 1**

{
"success": false,
"statusCode": "reg-400-2052",
"data": null,
"message": "Two way authentication failed.",
"traceId": "98531cc2-315c-4ebc-b8c6-ee1fb13feeaa"
}

** 🔴 Exception 2**

{
"success": false,
"data": null,
"message": "Invalid application token.;",
"statusCode": "vasprd-400-2060",
"traceId": "79b63bfb-6553-4199-a094-ffb293c9bda9"
}