Skip to main content

Track a User Journey

Flow Example for Fill Form

After user scan QR on digital dignage and being redirected to your form, we expect you to send updates to SR server after each step, e.g.
FORM_SUBMITTED -> FORM_REVIEWING -> FORM_APPROVED
Then, you issue a coupon to user using "Issue Coupon" endpoint

API Documentation for this endpoint

Endpoint Path

POST <BASE_URL>/smart-engage/post/update-session-status

Request Parameters

TypeNameRequiredExample Value
Request Bodysession_idYes8960569d-db50-4742-8668-1da5c8ddf652
Request Bodynew_statusYesFORM_REVIEWING

Request Body

{
"session_id": "8960569d-db50-4742-8668-1da5c8ddf652",
"new_status": "FORM_REVIEWING"
}

Response Status

Status CodeMeaning
200Success
400Bad Request
401Unauthorized
404Not Found
500Internal Server Error

Response Body

{
"message": "Status updated successfully"
}

Code Example to Request the Endpoint

curl -X POST "<BASE_URL>/smart-engage/post/update-session-status" \
-H "Content-Type: application/json" \
-H "API-KEY: <YOUR_API_KEY>" \
-d '{
"session_id": "8960569d-db50-4742-8668-1da5c8ddf652",
"new_status": "FORM_REVIEWING"
}'