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",
}'
Name | Description |
---|---|
journeyId | The 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.
Name | Description |
---|---|
sdkToken | A newly generated access token for the individual. The expired time is 90 minutes, once the token expired, please regenerate it. |
transId | The trasactionID, which you can use it to retrieve the results |
Updated about 1 year ago