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.eyJzdWIiOiI4OTYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0NTMsImV4cCI6MTc2MzU0MjQ1MywianRpIjoiNWQxODU3MDMtZTZjZC00Y2FkLTk0YzMtMjc4MDlhYTcxNmYyIn0.by2c_b8Hnf90G_2qj2jWb9X4ZkijJJV4bEfP5Aevgio
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/"a86666537286dbb601c186dc7bd8deff"
cache-control: max-age=0, private, must-revalidate
x-request-id: c8941495-dfe8-43b6-b2fa-6e454751652a
x-runtime: 0.066113
content-length: 2189

Body

{
  "timesheets": [
    {
      "id": 151,
      "company_name": "Walker Group",
      "currency": "GBP",
      "date": "2025-10-20",
      "driver": {
        "id": 887,
        "first_name": "Kam",
        "last_name": "Carter",
        "profile_id": 434,
        "referral_code": "675913"
      },
      "job_title": "Senior Marketing Executive",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 166,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-10-20T12:54:12.820Z",
        "start_at": "2025-10-20T08:54:12.815Z"
      },
      "total": "324.0"
    },
    {
      "id": 152,
      "company_name": "Walker, Maggio and MacGyver",
      "currency": "GBP",
      "date": "2025-10-20",
      "driver": {
        "id": 889,
        "first_name": "Santo",
        "last_name": "Reinger",
        "profile_id": 435,
        "referral_code": "267815"
      },
      "job_title": "Consulting Analyst",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 167,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-10-20T12:54:12.883Z",
        "start_at": "2025-10-20T08:54:12.878Z"
      },
      "total": "262.8"
    },
    {
      "id": 153,
      "company_name": "Blanda Inc",
      "currency": "GBP",
      "date": "2025-10-20",
      "driver": {
        "id": 891,
        "first_name": "Chassidy",
        "last_name": "Kihn",
        "profile_id": 436,
        "referral_code": "586864"
      },
      "job_title": "Direct Representative",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 168,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-10-20T12:54:12.947Z",
        "start_at": "2025-10-20T08:54:12.943Z"
      },
      "total": "234.0"
    },
    {
      "id": 154,
      "company_name": "Mills-MacGyver",
      "currency": "GBP",
      "date": "2025-10-20",
      "driver": {
        "id": 893,
        "first_name": "Narcisa",
        "last_name": "Satterfield",
        "profile_id": 437,
        "referral_code": "317046"
      },
      "job_title": "Manufacturing Strategist",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 169,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-10-20T12:54:13.010Z",
        "start_at": "2025-10-20T08:54:13.006Z"
      },
      "total": "201.6"
    },
    {
      "id": 155,
      "company_name": "Volkman, Kris and Moore",
      "currency": "GBP",
      "date": "2025-10-20",
      "driver": {
        "id": 895,
        "first_name": "Pete",
        "last_name": "Wehner",
        "profile_id": 438,
        "referral_code": "659815"
      },
      "job_title": "Education Liaison",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 170,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-10-20T12:54:13.077Z",
        "start_at": "2025-10-20T08:54:13.072Z"
      },
      "total": "111.6"
    }
  ]
}