This API call will give you the shopping summary for each respondent. If you look in the basket_summary
you will see data relating to this respondent. sku_list
is a list of all the unique SUKs in the basket.
Excerpt | ||
---|---|---|
| ||
This API call will give you the shopping summary for each respondent. If you look in the |
New server Endpoint (note this is different to get params_id):
Code Block |
---|
https://public-survey-data-api.rose.conceptsauce.io/api |
Request body:
Code Block | ||
---|---|---|
| ||
{
"event_type": "survey_data_request",
"action": "get_shop_shelf_summary_purchases",
"data": {
"target": {
"survey_id": "SURV01FNR7YQ7T01GJACN4P90ZCBRG",
"respondent_encoded": "enc14367fa406b368698d7dfa3034bda0d005b10eea",
"block_id": "shelf"
}
}
} |
Response:
Code Block | ||
---|---|---|
| ||
{
"reason": null,
"code": 200,
"data": {
"data_complete": true,
"survey_id": "SURV01FNR7YQ7T01GJACN4P90ZCBRG",
"block_id": "shelf",
"respondent_id": null,
"respondent_encoded": "enc14367fa406b368698d7dfa3034bda0d005b10eea",
"run_id": null,
"exercise_duration": 17759.0,
"basket_summary": {
"total_unique_sku": 2,
"total_value": 55.0,
"sku_list": "W23, W08"
}
},
"event_type": "survey_data_request",
"action": "get_shop_shelf_summary_purchases",
"client_msg_id": "",
"platform_status": {
"status": "running",
"shut_down_timestamp": 0
}
} |
respondent_encoded
is the one passed in via the respondent App url as respondent_id
block_id
is the same as present in Admin App
Note |
---|
Inside the target , each parameter must be set manually. The provided |
Info |
---|
If the specified value is invalid, response for such a request will be with code: 802 (which means: No data available for specified target) |
Info |
---|
The response with 802 code may also mean: The target is alright, but no respondent bought anything yet. |
Other requests will be documented later…