{"_id":"59e70b9fe027ae002e7d2f18","category":{"_id":"59e70b9ee027ae002e7d2eda","version":"59e70b9ee027ae002e7d2ed2","project":"5496d393f52a630b00519cdd","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-21T18:49:06.424Z","from_sync":false,"order":8,"slug":"structures","title":"Structures"},"parentDoc":null,"user":"5496d353f52a630b00519cdc","project":"5496d393f52a630b00519cdd","version":{"_id":"59e70b9ee027ae002e7d2ed2","project":"5496d393f52a630b00519cdd","__v":2,"createdAt":"2017-10-18T08:06:54.462Z","releaseDate":"2017-10-18T08:06:54.462Z","categories":["59e70b9ee027ae002e7d2ed3","59e70b9ee027ae002e7d2ed4","59e70b9ee027ae002e7d2ed5","59e70b9ee027ae002e7d2ed6","59e70b9ee027ae002e7d2ed7","59e70b9ee027ae002e7d2ed8","59e70b9ee027ae002e7d2ed9","59e70b9ee027ae002e7d2eda","59e70b9ee027ae002e7d2edb","59e70b9ee027ae002e7d2edc","59e70b9ee027ae002e7d2edd","59e70b9ee027ae002e7d2ede","59e70b9ee027ae002e7d2edf","5b8661ccdd19310003a3fa0b"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.10","version":"2.0.10"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-05T13:22:45.464Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"Each Check-in Export item is structured as follows:\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"user_info\",\n    \"0-1\": \"Contains the User ID, Device ID and Custom Data.\",\n    \"1-0\": \"visit\",\n    \"1-1\": \"Contains the visit information and place information if needed. See [Visit Structure](doc:visit)\",\n    \"3-0\": \"timestamp\",\n    \"3-1\": \"UTC timestamp in ISO-8601 format.\",\n    \"2-0\": \"visit_status\",\n    \"2-1\": \"May be 'new' or 'modified'. \\\"Modified\\\" visits are visits that were previously exported but their end-time, place or venue details have changed due to new data received.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"user_info\\\": {\\n    \\\"user_id\\\": \\\"YOUR_USER_ID\\\",\\n    \\\"device_id\\\": \\\"5772c1b9fdef26427a455153\\\"\\n  },\\n  \\\"visit\\\": {\\n    \\\"event_type\\\": \\\"visit\\\",\\n    \\\"is_confirmed\\\": false,\\n    \\\"start_time\\\": \\\"2016-10-04T10:47:12.000-07:00\\\",\\n    \\\"place_id\\\": \\\"57f3e746e4b01d4af1e1c050\\\",\\n    \\\"place\\\": {\\n      \\\"estimated_address\\\": {\\n        \\\"city\\\": \\\"San Francisco\\\",\\n        \\\"country\\\": \\\"United States\\\",\\n        \\\"state\\\": \\\"California\\\",\\n        \\\"formatted_city\\\": \\\"San Francisco, California, United States\\\",\\n        \\\"postal_code\\\": \\\"94103\\\",\\n        \\\"formatted_address\\\": \\\"135 4th Street, San Francisco, California, United States\\\",\\n        \\\"street_address\\\": \\\"135 4th Street\\\"\\n      },\\n      \\\"estimated_geolocation\\\": {\\n        \\\"lat\\\": 37.784469903416,\\n        \\\"long\\\": -122.40330482239,\\n        \\\"accuracy\\\": 3.3771327633926\\n      },\\n      \\\"type_id\\\": 20,\\n      \\\"venue_info\\\": {\\n        \\\"category\\\": \\\"Shop & Service\\\",\\n        \\\"name\\\": \\\"Metreon\\\",\\n        \\\"probability\\\": 0.85,\\n        \\\"sub_category\\\": \\\"Mall\\\"\\n      },\\n      \\\"first_visit_time\\\": \\\"2016-10-04T16:03:11.000Z\\\",\\n      \\\"venues\\\": [\\n        {\\n          \\\"category\\\": \\\"Shop & Service\\\",\\n          \\\"name\\\": \\\"Metreon\\\",\\n          \\\"probability\\\": 0.85,\\n          \\\"sub_category\\\": \\\"Mall\\\"\\n        },\\n        {\\n          \\\"category\\\": \\\"Food\\\",\\n          \\\"name\\\": \\\"Mel's Drive-In\\\",\\n          \\\"probability\\\": 0.06,\\n          \\\"sub_category\\\": \\\"Diner\\\"\\n        },\\n        {\\n          \\\"category\\\": \\\"Shop & Service\\\",\\n          \\\"name\\\": \\\"Off the Grid: 5M :::at::: Fifth and Minna\\\",\\n          \\\"probability\\\": 0.04,\\n          \\\"sub_category\\\": \\\"Street Food Gathering\\\"\\n        },\\n        {\\n          \\\"category\\\": \\\"Food\\\",\\n          \\\"name\\\": \\\"Sharetea\\\",\\n          \\\"probability\\\": 0.04,\\n          \\\"sub_category\\\": \\\"Bubble Tea Shop\\\"\\n        }\\n      ],\\n      \\\"last_visit_time\\\": \\\"2016-10-04T17:54:21.000Z\\\",\\n      \\\"type\\\": \\\"Shop & Service\\\",\\n      \\\"id\\\": \\\"57f3e746e4b01d4af1e1c050\\\"\\n    },\\n    \\\"id\\\": \\\"57f3eccdfdef263fe1e66df8\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"The 'Check-in' export JSON structure","slug":"check-in-export","type":"basic","title":"Check-in Export"}

Check-in Export

The 'Check-in' export JSON structure

Each Check-in Export item is structured as follows: [block:parameters] { "data": { "h-0": "Field", "h-1": "Description", "0-0": "user_info", "0-1": "Contains the User ID, Device ID and Custom Data.", "1-0": "visit", "1-1": "Contains the visit information and place information if needed. See [Visit Structure](doc:visit)", "3-0": "timestamp", "3-1": "UTC timestamp in ISO-8601 format.", "2-0": "visit_status", "2-1": "May be 'new' or 'modified'. \"Modified\" visits are visits that were previously exported but their end-time, place or venue details have changed due to new data received." }, "cols": 2, "rows": 4 } [/block] [block:api-header] { "type": "basic", "title": "Example" } [/block] [block:code] { "codes": [ { "code": "{\n \"user_info\": {\n \"user_id\": \"YOUR_USER_ID\",\n \"device_id\": \"5772c1b9fdef26427a455153\"\n },\n \"visit\": {\n \"event_type\": \"visit\",\n \"is_confirmed\": false,\n \"start_time\": \"2016-10-04T10:47:12.000-07:00\",\n \"place_id\": \"57f3e746e4b01d4af1e1c050\",\n \"place\": {\n \"estimated_address\": {\n \"city\": \"San Francisco\",\n \"country\": \"United States\",\n \"state\": \"California\",\n \"formatted_city\": \"San Francisco, California, United States\",\n \"postal_code\": \"94103\",\n \"formatted_address\": \"135 4th Street, San Francisco, California, United States\",\n \"street_address\": \"135 4th Street\"\n },\n \"estimated_geolocation\": {\n \"lat\": 37.784469903416,\n \"long\": -122.40330482239,\n \"accuracy\": 3.3771327633926\n },\n \"type_id\": 20,\n \"venue_info\": {\n \"category\": \"Shop & Service\",\n \"name\": \"Metreon\",\n \"probability\": 0.85,\n \"sub_category\": \"Mall\"\n },\n \"first_visit_time\": \"2016-10-04T16:03:11.000Z\",\n \"venues\": [\n {\n \"category\": \"Shop & Service\",\n \"name\": \"Metreon\",\n \"probability\": 0.85,\n \"sub_category\": \"Mall\"\n },\n {\n \"category\": \"Food\",\n \"name\": \"Mel's Drive-In\",\n \"probability\": 0.06,\n \"sub_category\": \"Diner\"\n },\n {\n \"category\": \"Shop & Service\",\n \"name\": \"Off the Grid: 5M @ Fifth and Minna\",\n \"probability\": 0.04,\n \"sub_category\": \"Street Food Gathering\"\n },\n {\n \"category\": \"Food\",\n \"name\": \"Sharetea\",\n \"probability\": 0.04,\n \"sub_category\": \"Bubble Tea Shop\"\n }\n ],\n \"last_visit_time\": \"2016-10-04T17:54:21.000Z\",\n \"type\": \"Shop & Service\",\n \"id\": \"57f3e746e4b01d4af1e1c050\"\n },\n \"id\": \"57f3eccdfdef263fe1e66df8\"\n }\n}", "language": "json" } ] } [/block]