Finance > Timesheets

Mark as paid/pending

PATCH update state

Endpoint

PATCH /api/v1/finance/timesheets/bulk_update

Parameters

Name Description In
timesheet[timesheet_ids] required Array of timesheet ids
timesheet[state] required State to update ["paid", "pending"]

Request

Route

PATCH /api/v1/finance/timesheets/bulk_update

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI4OTYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY1MTQsImV4cCI6MTc1MTEwODUxNCwianRpIjoiYzE0NmIzNTQtMDEwZC00YTQ4LWIyYzctOWJiNTJlNGYwN2Y3In0.jyha7g1XP31NJ_APzQos6bbddSpsTqNs4SFLz_DsrB8
Host: example.org
Cookie: 

Body

{
  "timesheet": {
    "timesheet_ids": [
      151,
      152,
      153,
      154,
      155
    ],
    "state": "paid",
    "passcode": 1234
  }
}

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: 5
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"fd4ba478e81c396ab771617e7501d592"
cache-control: max-age=0, private, must-revalidate
x-request-id: d09b0a17-e9ac-4b55-b54c-71eafc4028d4
x-runtime: 0.050272
content-length: 2137

Body

{
  "timesheets": [
    {
      "id": 151,
      "company_name": "Wunsch, Luettgen and Kulas",
      "date": "2025-05-29",
      "driver": {
        "id": 887,
        "first_name": "Joey",
        "last_name": "Prosacco",
        "profile_id": 434,
        "referral_code": "174185"
      },
      "job_title": "Administration Consultant",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 166,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-05-29T15:01:54.396Z",
        "start_at": "2025-05-29T11:01:54.391Z"
      },
      "total": "277.2"
    },
    {
      "id": 152,
      "company_name": "Kozey and Sons",
      "date": "2025-05-29",
      "driver": {
        "id": 889,
        "first_name": "Linwood",
        "last_name": "O'Connell",
        "profile_id": 435,
        "referral_code": "018909"
      },
      "job_title": "Manufacturing Specialist",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 167,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-05-29T15:01:54.461Z",
        "start_at": "2025-05-29T11:01:54.455Z"
      },
      "total": "356.4"
    },
    {
      "id": 153,
      "company_name": "Schowalter, Mraz and Kovacek",
      "date": "2025-05-29",
      "driver": {
        "id": 891,
        "first_name": "Freeman",
        "last_name": "Gulgowski",
        "profile_id": 436,
        "referral_code": "829617"
      },
      "job_title": "Human Coordinator",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 168,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-05-29T15:01:54.525Z",
        "start_at": "2025-05-29T11:01:54.521Z"
      },
      "total": "284.4"
    },
    {
      "id": 154,
      "company_name": "Rosenbaum, Armstrong and Considine",
      "date": "2025-05-29",
      "driver": {
        "id": 893,
        "first_name": "Rupert",
        "last_name": "Buckridge",
        "profile_id": 437,
        "referral_code": "497953"
      },
      "job_title": "Direct Design Supervisor",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 169,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-05-29T15:01:54.590Z",
        "start_at": "2025-05-29T11:01:54.585Z"
      },
      "total": "345.6"
    },
    {
      "id": 155,
      "company_name": "Predovic-Funk",
      "date": "2025-05-29",
      "driver": {
        "id": 895,
        "first_name": "Celsa",
        "last_name": "Murazik",
        "profile_id": 438,
        "referral_code": "267278"
      },
      "job_title": "IT Manager",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 170,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-05-29T15:01:54.654Z",
        "start_at": "2025-05-29T11:01:54.651Z"
      },
      "total": "100.8"
    }
  ]
}