{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/search/timecard.json","auth":"required","method":"get","params":[{"name":"userIds","type":"int","default":"","desc":"Unique identifier of the user","required":false,"in":"query","ref":"","_id":"573328e345fc0c0e00c15462"},{"name":"userNames","type":"string","default":"","desc":"User name of the account","required":false,"in":"query","ref":"","_id":"573328e345fc0c0e00c15461"},{"name":"shiftIds","type":"int","default":"","desc":"Unique identifier of a shift. Multiple IDs can be passed, separated by commas","required":false,"in":"query","ref":"","_id":"573328e345fc0c0e00c15460"}],"results":{"codes":[{"status":200,"language":"json","code":"{ \n \"timeCardFeed\":{ \n \"code\":200,\n \"message\":\"Success\",\n \"generatedAtInMillis\":1460114543880,\n \"timeCardList\":[ \n \"824c0af5-2bd8-11e5-8d2a-59c6366b245d\",\n { \n \"eventTime\":1459504800000,\n \"location\":{ \n \"address\":{ \n \"city\":\"Hayward\",\n \"country\":\"USA\",\n \"formattedAddress\":\"370 Rotary St, Hayward, CA 94541, USA\",\n \"state\":\"CA\",\n \"zip\":\"94541\",\n \"locality\":null\n },\n \"latitude\":37.664639,\n \"longitude\":-122.090981,\n \"accuracy\":75,\n \"altitude\":-1,\n \"bearing\":-1,\n \"speed\":-1,\n \"time\":1456278813000,\n \"mapProviderId\":null\n },\n \"shiftId\":null,\n \"eventType\":1,\n \"comments\":null\n },\n { \n \"eventTime\":1459523400000,\n \"location\":{ \n \"address\":{ \n \"city\":\"Hayward\",\n \"country\":\"USA\",\n \"formattedAddress\":\"28312 Industrial Blvd, Hayward, CA 94545, USA\",\n \"state\":\"CA\",\n \"zip\":\"94545\",\n \"locality\":null\n },\n \"latitude\":37.618377,\n \"longitude\":-122.093958,\n \"accuracy\":75,\n \"altitude\":-1,\n \"bearing\":-1,\n \"speed\":-1,\n \"time\":1456278813000,\n \"mapProviderId\":null\n },\n \"shiftId\":1221,\n \"eventType\":4,\n \"comments\":null\n }\n ]\n }\n}\n","name":""}]},"settings":"559288b86bf22f170075b794","examples":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Timecard","type":"endpoint","slug":"timecard","excerpt":"This API allows you to fetch shift details of all the drivers present in your account. Multiple shift details can be obtained through this API.","body":"[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"Sample Request\",\n \"body\": \"https://api.azuga.com/azuga-ws/search/timecard.json\"\n}\n[/block]\n##API Response Explanation \n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Field\",\n \"h-1\": \"Description\",\n \"0-0\": \"eventTime\",\n \"1-0\": \"address\",\n \"2-0\": \"city\",\n \"3-0\": \"country\",\n \"4-0\": \"formattedAddress\",\n \"5-0\": \"state\",\n \"6-0\": \"zip\",\n \"7-0\": \"locality\",\n \"8-0\": \"latitude\",\n \"9-0\": \"longitude\",\n \"10-0\": \"accuracy\",\n \"11-0\": \"altitude\",\n \"12-0\": \"bearing\",\n \"13-0\": \"speed\",\n \"14-0\": \"time\",\n \"15-0\": \"mapProviderId\",\n \"16-0\": \"id\",\n \"17-0\": \"eventType\",\n \"18-0\": \"comments\",\n \"19-0\": \"error\",\n \"0-1\": \"Time stamp of the event in milliseconds\",\n \"1-1\": \"Address of the shift location\",\n \"2-1\": \"City of the shift location\",\n \"3-1\": \"Country of the shift location\",\n \"4-1\": \"Concatenated string containing the complete address\",\n \"5-1\": \"State of the shift location\",\n \"6-1\": \"Postal code of the shift location\",\n \"7-1\": \"Locality or the surrounding area of the shift location\",\n \"8-1\": \"Latitude coordinates of the shift location\",\n \"9-1\": \"Longitude coordinates of the shift location\",\n \"10-1\": \"Precision of the location point\",\n \"11-1\": \"Elevation of the shift location\",\n \"12-1\": \"Used for navigation and direction\",\n \"13-1\": \"Speed of the vehicle which is tracked\",\n \"14-1\": \"Address generation timestamp in milliseconds\",\n \"15-1\": \"Unique identifier of the map provider (Google map, Bing map etc,.)\",\n \"16-1\": \"Unique shift identifier\",\n \"17-1\": \"Type of event. There are 4 types of events: 1 - Shift start, 2 - Break start, 3 - Break End, 4 - Shift End\",\n \"18-1\": \"Additional information about the shift activity\",\n \"19-1\": \"Error message\"\n },\n \"cols\": 2,\n \"rows\": 20\n}\n[/block]","updates":[],"order":4,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"573328e345fc0c0e00c1545f","parentDoc":null,"user":"5656a3dd5656350d001d83a0","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["559286c7c39c4b2d00127a72","55928a98c39c4b2d00127a83","5592bd7b9a68220d00f1c3db","5593dcaf0e82e81700334e25","5594342f0c33bd0d000595a3","563081713998420d00a509e4","5630941c7581b80d00c51c86","56309f4ff1c0580d00fac666","567923b8239fac0d00c7df25","573306dea6a9c40e00e13875","577a288fd051530e00f65563","579af3982b865e17005a4357","57ee06aa1e42900e0014a374","5951f49a63f39000159e7ef1","5951f4c563f39000159e7ef2","598951542a9dfc000fcacd40","5b3375cc98cb500003e4b363","5bbcd4e29667280003084100"],"_id":"559286c6c39c4b2d00127a71","createdAt":"2015-06-30T12:08:38.768Z","project":"55926c913735880d005f7c65","releaseDate":"2015-06-30T12:08:38.768Z","__v":18,"forked_from":"559286b6c39c4b2d00127a6e"},"createdAt":"2016-05-11T12:43:15.458Z","editedParams2":true,"githubsync":"","project":"55926c913735880d005f7c65","__v":0,"editedParams":true,"category":{"sync":{"isSync":false,"url":""},"pages":["5592bda06bf22f170075b858","5593dbb99755e117000fbf3d","5593dc7a0e82e81700334e23","5631abc1fc94aa0d00e9b5e6","5631b5acbddb091700ad5de2","5631be58fc94aa0d00e9b5f5","56dfa9429cd22c0e00cab10c"],"title":"REPORTS","slug":"fleet-web","order":2,"from_sync":false,"reference":true,"_id":"5592bd7b9a68220d00f1c3db","createdAt":"2015-06-30T16:02:03.540Z","version":"559286c6c39c4b2d00127a71","__v":7,"project":"55926c913735880d005f7c65"}}
getTimecard
This API allows you to fetch shift details of all the drivers present in your account. Multiple shift details can be obtained through this API.
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Query Params
userIds:
integer
Unique identifier of the user
userNames:
string
User name of the account
shiftIds:
integer
Unique identifier of a shift. Multiple IDs can be passed, separated by commas