timeclock.timesheets

Returns a list of all Timesheets.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
period (accepted)varcharAccepted values:
-'Today'
-'Yesterday'
-'Last 7 Days'
-'This Week'
-'Last Week'
-'All'
status (accepted)enum (All, Approved, Unapproved)"All": All timesheets
"Approved": Approved timesheets
"Unapprove": Unapproved timesheets

DOCUMENTATION

GET
Returns array of timesheets for the specified period.
Level 5 is required (all users can fetch this module)

--
Example Request:

{
   "module":"timeclock.timesheets",
   "method":"GET",
   "request":{
      "period":"Last 7 Days",
      "status":"All"
   }
}

Example Response:

{
  "status": 1,
  "data": [
    {
      "id": "64598896",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1497018132",
      "in_timestamp": "1497018132",
      "in_day": "2963",
      "out_timestamp": "1497019885",
      "out_day": "2963",
      "in_hour": "70",
      "out_hour": "72",
      "in_location": "73259",
      "out_location": "73259",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "2097936",
      "approved_time": "1497019885",
      "approved_notes": "autoapproved",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-09 17:22:12",
      "end_timestamp": "2017-06-09 17:51:25",
      "in_picture_url": "",
      "out_picture_url": null,
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "name": "Jelena Pavlovic",
      "schedule_name": null
    },
    {
      "id": "64580315",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1497008316",
      "in_timestamp": "1497008316",
      "in_day": "2963",
      "out_timestamp": "1497018128",
      "out_day": "2963",
      "in_hour": "60",
      "out_hour": "70",
      "in_location": "73259",
      "out_location": "73259",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "0",
      "approved_time": "0",
      "approved_notes": "",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-09 14:38:36",
      "end_timestamp": "2017-06-09 17:22:08",
      "in_picture_url": "",
      "out_picture_url": "",
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "name": "Jelena Pavlovic",
      "schedule_name": null
    },
    {
      "id": "64579095",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1497007007",
      "in_timestamp": "1497007007",
      "in_day": "2963",
      "out_timestamp": "1497008313",
      "out_day": "2963",
      "in_hour": "58",
      "out_hour": "60",
      "in_location": "73259",
      "out_location": "73259",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "2097936",
      "approved_time": "1497008313",
      "approved_notes": "autoapproved",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-09 14:16:47",
      "end_timestamp": "2017-06-09 14:38:33",
      "in_picture_url": "",
      "out_picture_url": "",
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "name": "Jelena Pavlovic",
      "schedule_name": null
    },
    {
      "id": "64522004",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1496929705",
      "in_timestamp": "1496929705",
      "in_day": "2962",
      "out_timestamp": "1496972905",
      "out_day": "2963",
      "in_hour": "68",
      "out_hour": "0",
      "in_location": "73259",
      "out_location": "0",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "0",
      "approved_time": "0",
      "approved_notes": "",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-08 16:48:25",
      "end_timestamp": "2017-06-09 04:48:25",
      "in_picture_url": "",
      "out_picture_url": null,
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": null,
      "name": "Jelena Pavlovic",
      "schedule_name": null
    },
    {
      "id": "64510049",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1496923275",
      "in_timestamp": "1496923275",
      "in_day": "2962",
      "out_timestamp": "1496927819",
      "out_day": "2962",
      "in_hour": "61",
      "out_hour": "66",
      "in_location": "73259",
      "out_location": "73259",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "2097936",
      "approved_time": "1496927819",
      "approved_notes": "autoapproved",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-08 15:01:15",
      "end_timestamp": "2017-06-08 16:16:59",
      "in_picture_url": "",
      "out_picture_url": "",
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "name": "Jelena Pavlovic",
      "schedule_name": null
    },
    {
      "id": "64428791",
      "user": "2097936",
      "store": "202039",
      "status": "0",
      "schedule": null,
      "notes": null,
      "created": "1496831874",
      "in_timestamp": "1496831874",
      "in_day": "2961",
      "out_timestamp": "1496875074",
      "out_day": "2961",
      "in_hour": "55",
      "out_hour": "0",
      "in_location": "73259",
      "out_location": "0",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "0",
      "approved_time": "0",
      "approved_notes": "",
      "in_picture": null,
      "out_picture": "",
      "screenshots": null,
      "break_time": "0",
      "start_timestamp": "2017-06-07 13:37:54",
      "end_timestamp": "2017-06-08 01:37:54",
      "in_picture_url": "",
      "out_picture_url": null,
      "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
      "out_gps": null,
      "name": "Jelena Pavlovic",
      "schedule_name": null
    }
  ],
  "token": "xxxxxxx"
}