Request body:
{ "event_type": "survey_data_request", "action": "get_shop_shelf_detail_purchases", "data": { "target": { "survey_id": "SURV01FYE81P9SN5N66XG9YFCEVSQ9", "block_id": "shelf", "respondent_id": "preview" } } }
Response:
{ "reason": null, "code": 200, "data": { "survey_id": "SURV01FYE81P9SN5N66XG9YFCEVSQ9", "block_id": "shelf", "respondent_id": "preview", "basket_details": { "aggregated_purchase_details": { "9310055790919": { "sku": "9310055790919", "quantity": 1, "price_for_one": 5.99 } }, "raw_purchase_details": [ { "sku": "9310055790919", "quantity": 1, "price_for_one": 5.99, "bay_id": "1", "zone": "Default_zone", "time": 1647849800007.0, "relative_time": 8410.0 } ] } }, "event_type": "survey_data_request", "action": "get_shop_shelf_detail_purchases", "client_msg_id": "" }
respondent_id
is the one passed in the respondent App url
block_id
is the same as present in Admin App
Inside the target , each parameter must be set manually. The provided by survey_id
, respondent_id
and block_id
ARE ONLY EXAMPLES.
If the specified value is invalid, response for such a request will be with code: 802 (which means: No data available for specified target)
The response with 802 code may also mean: The target is alright, but no respondent bought anything yet.