Timesheets

List timesheets OR amends

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.eyJzdWIiOiIxNjM3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ3LCJleHAiOjE3NDUwNTY5NDcsImp0aSI6IjY4YzJiZDQ2LTY1MjktNGUxOS1iNzRlLWFjMzZmZTExNTQ0ZiJ9.TN0XF6q9Y3rD0Kr18bu8WMfNXPhlgnYPjt1QTluODsM
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/"9494d141b4f931f3835a94bf4dd14ec9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8e937e7f-e6c8-4007-85d0-a6074071d183
x-runtime: 0.091261
content-length: 283

Body

{
  "timesheets": [
    {
      "id": 203,
      "date": "2025-03-20",
      "job_number": 63728323,
      "job_title": "Forward Real-Estate Developer",
      "payment_state": "pending",
      "status": "pending",
      "timelog": {
        "id": 232,
        "amend_status": "original",
        "breaks": [

        ],
        "end_at": null,
        "start_at": "2025-03-20T10:02:27.728Z"
      },
      "total": "0.0"
    }
  ]
}