Timesheets

Show timesheet

GET timesheet

Endpoint

GET /api/v1/timesheets/:id

Request

Route

GET /api/v1/timesheets/205

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjQyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ3LCJleHAiOjE3NDUwNTY5NDcsImp0aSI6IjgyMTQ1MzZjLWRiNjEtNGE0YS05MTNlLTY2MzVmMGFiMGI4YiJ9.jCSQGsbCOoSnPhiNfcXvlXLFZR-Vlx1uJLs8PMo6Kz0
Host: example.org
Cookie: 

Query Parameters

{}=

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
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"23270712f2f64bde0706e82e5d9881b2"
cache-control: max-age=0, private, must-revalidate
x-request-id: 41e8f8ba-d5d7-40a6-8b11-3cc0afeca3e2
x-runtime: 0.014254
content-length: 616

Body

{
  "timesheet": {
    "id": 205,
    "date": "2025-03-20",
    "job_number": 60345080,
    "job_title": "Retail Liaison",
    "payment_state": "pending",
    "status": "pending",
    "timelog": {
      "id": 234,
      "amend_status": "original",
      "breaks": [

      ],
      "duration": {
        "hours": 2
      },
      "end_at": "2025-03-20T12:02:27.948Z",
      "start_at": "2025-03-20T10:02:27.945Z"
    },
    "timelogs": [
      {
        "id": 234,
        "amend_status": "original",
        "breaks": [

        ],
        "duration": {
          "hours": 2
        },
        "end_at": "2025-03-20T12:02:27.948Z",
        "start_at": "2025-03-20T10:02:27.945Z",
        "timeloged_by": {
          "id": 1642,
          "admin": false,
          "image": null,
          "referral_code": "395774",
          "title": "Angelo Quitzon"
        },
        "updated_at": "2025-03-20T10:02:27.949Z"
      }
    ],
    "total": "130.76"
  }
}