List all time logs recorded against the work order, including check-in/out and verification details.
List all time logs recorded against the work order, including check-in/out and verification details.
access_token OAuth 2.0 Access Token
In: query
Work Order ID
ID of the user acting on behalf of another user
curl -X GET "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/time_logs"{
"actions": [
"add"
],
"hours": 1001.74,
"metadata": {
"total": 2,
"pages": 1,
"per_page": 2,
"page": 1,
"columns": "id,reason,devices,work_order,role,in,out,time_zone,verified,on_time,was_early,was_late,minutes_late,edited,status,hours,logged_by,should_verify,actions",
"view": "model",
"sort": "",
"order": "asc"
},
"results": [
{
"id": 1179,
"reason": "",
"devices": 0,
"in": {
"created": {
"utc": "2020-02-27 18:45:00",
"local": {
"date": "2020-02-27",
"time": "12:45:00"
}
},
"coords": {
"latitude": 0,
"longitude": 0
},
"verified": true,
"distance": 6385.4231353001815,
"actions": [],
"requires_verification": false
},
"out": {
"created": {
"utc": "2020-02-27 20:30:00",
"local": {
"date": "2020-02-27",
"time": "14:30:00"
}
},
"coords": {
"latitude": 0,
"longitude": 0
},
"verified": true,
"distance": 6385.4231353001815,
"distance_from_in": 6225.329108552546,
"actions": [],
"requires_verification": false
},
"time_zone": {
"offset": 0,
"id": 4,
"name": "America/Chicago",
"short": "CDT"
},
"verified": true,
"edited": false,
"status": "checked_out",
"hours": 1.75,
"logged_by": {
"id": 1145,
"first_name": "FN Manager",
"last_name": "User",
"created": {
"utc": "2020-02-27 18:30:33",
"local": {
"date": "2020-02-27",
"time": "12:30:33"
}
},
"out": {
"utc": "2020-02-27 18:30:35",
"local": {
"date": "2020-02-27",
"time": "12:30:35"
}
}
},
"actions": [],
"first_check_in": false,
"was_late": true
}
],
"correlation_id": "66a86ffec859cf407ac447458c8f1ae024332ca8"
}{
"status": 400,
"message": "Validation failed: field 'title' is required"
}{
"status": 500,
"message": "Operation successful."
}{
"status": 403,
"message": "You do not have permission to access this work order"
}{
"status_code": 404,
"message": "Work order not found"
}{
"status": 500,
"message": "An unexpected error occurred. Please try again later or contact support."
}application/json
application/json
application/json
application/json
application/json
application/json
Last updated on