{ "parameters": [ { "name": "session_id", "description": "A unique session_id you keep for an anonymous browser" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "session_id": "5d5eca9dd4322a04dfbf6fd7" }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "ETag": "W/\"8650d1d52eb601fb72b95b72bc086ea8\"", "Last-Modified": "Thu, 22 Aug 2019 17:02:21 GMT", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Flash-Messages", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "29576e5f-d2b5-46ad-8ad8-ed92ed16e53e", "X-Runtime": "0.015878", "Expires": "0", "Content-Length": "849" }, "request_method": "GET", "request_path": "/api/storefront/recent_views?session_id=5d5eca9dd4322a04dfbf6fd7", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"id\": \"5d5eca9dd4322a04dfbf6fd7\",\n \"categories\": [\n {\n \"id\": \"5d5eca9dd4322a04dfbf6fd4\",\n \"name\": \"Shirts\",\n \"slug\": \"shirts\",\n \"url\": \"http://www.example.com/api/storefront/categories/shirts\"\n }\n ],\n \"products\": [\n {\n \"id\": \"A742F5D48A\",\n \"name\": \"Cool Shirt\",\n \"description\": null,\n \"slug\": \"cool-shirt\",\n \"browser_title\": \"Cool Shirt\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5eca9cd4322a04dfbf6fd3\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n }\n ],\n \"searches\": [\n \"shirt\"\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/recent_views?session_id=5d5eca9dd4322a04dfbf6fd7\" -X GET " } ], "resource": "Recent views", "description": "Showing recent views with a session_id", "route": "/api/storefront/recent_views", "http_method": "GET", "explanation": " Display recent views based on a session_id you've kept for an\n anonymous browser (as opposed to displaying them based on\n authentication).\n" }