Generate SDK Token

To initialize the SDK, you must generate a temporary SDKtoken which you will pass during initialization. This action must be performed on the server side. You also have to provide a unique and meaningful parameter, which can be an external journey ID in your system.

To generate a token, use the following POST method of our API:

curl --location --request POST 'https://sandbox-oop-api.advai.net/intl/openapi/sdk/v2/trans/start' \
--header 'X-ADVAI-KEY: XXXX' \
--header 'journeyId: 631' \
--header 'Content-Type: application/json' \
--data '{
    "referenceId": "123213123",
}'

NameDescription
journeyIdThe Workflow unqiue ID

Respose

{
    "code": "SUCCESS",
    "message": "SUCCESS",
    "data": {
        "sdkToken": "fbbcc9f3-fcb2-4d1e-a4c2-7a443f0d5307",
        "transId": "073a78797a4e111f",   # You need store this in your DB and fetch transaction detail using this one. 
NameDescription
sdkTokenA newly generated access token for the individual. The expired time is 90 minutes, once the token expired, please regenerate it.
transIdThe trasactionID, which you can use it to retrieve the results