List timesheets OR amends
Timesheets
GET timesheets
Endpoint
GET /api/v1/timesheets
Parameters
Name | Description | In |
---|---|---|
by_name | Filter by name | |
from_date | Filter by date | |
to_date | Filter by date | |
by_job | Filter by job ID | |
by_kind required | Filter by kind | ["timesheet", "amended", "deleted", "in_progress"] |
Request
Route
GET /api/v1/timesheets?by_kind=timesheet
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjA2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg4LCJleHAiOjE3NDAxNDM1ODgsImp0aSI6IjA4Njg5ZDg1LWRkNjgtNDkxNC1hNWVhLTYxOTUyMzFmMzAzMyJ9.GhcvZ44uXPv909GpPNLn6FprFEqIcopV2aGUqrg5Vv8
Host: example.org
Cookie:
Query Parameters
by_kind=timesheet
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 1
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"c2d1c25887c7eb0b3838dd54034fe7db"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3559addb-670c-49a5-947f-134538034ccb
x-runtime: 0.042994
content-length: 278
Body
{
"timesheets": [
{
"id": 190,
"date": "2025-01-22",
"job_number": 64483680,
"job_title": "National Banking Planner",
"payment_state": "pending",
"status": "pending",
"timelog": {
"id": 219,
"amend_status": "original",
"breaks": [
],
"end_at": null,
"start_at": "2025-01-22T13:13:08.102Z"
},
"total": "0.0"
}
]
}