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.eyJzdWIiOiI4OTYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxOTQsImV4cCI6MTc1NTg1ODE5NCwianRpIjoiMDU1YjI5OGUtZmM0Yi00Yjg0LWJiNDktNTg2MTNiZWMyNDgyIn0.YPR90r1V1AWXVWh7rhujuDRqhju6zheOOJU2-ouch8Q
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/"f3b3466e3c14f80c3046483461857e1d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 81dce2e9-2d31-4ef3-8a80-29f6940ae2f0
x-runtime: 0.051013
content-length: 2108

Body

{
  "timesheets": [
    {
      "id": 151,
      "company_name": "Gerlach-Hoeger",
      "date": "2025-07-23",
      "driver": {
        "id": 887,
        "first_name": "Mark",
        "last_name": "Lakin",
        "profile_id": 434,
        "referral_code": "496387"
      },
      "job_title": "Future Healthcare Orchestrator",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 166,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-07-23T14:23:13.654Z",
        "start_at": "2025-07-23T10:23:13.648Z"
      },
      "total": "295.2"
    },
    {
      "id": 152,
      "company_name": "Bins-Grady",
      "date": "2025-07-23",
      "driver": {
        "id": 889,
        "first_name": "Dalton",
        "last_name": "O'Keefe",
        "profile_id": 435,
        "referral_code": "079585"
      },
      "job_title": "Chief Education Associate",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 167,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-07-23T14:23:13.734Z",
        "start_at": "2025-07-23T10:23:13.729Z"
      },
      "total": "273.6"
    },
    {
      "id": 153,
      "company_name": "Dooley-Satterfield",
      "date": "2025-07-23",
      "driver": {
        "id": 891,
        "first_name": "Kenton",
        "last_name": "Von",
        "profile_id": 436,
        "referral_code": "371749"
      },
      "job_title": "District Orchestrator",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 168,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-07-23T14:23:13.821Z",
        "start_at": "2025-07-23T10:23:13.816Z"
      },
      "total": "144.0"
    },
    {
      "id": 154,
      "company_name": "VonRueden, Braun and Becker",
      "date": "2025-07-23",
      "driver": {
        "id": 893,
        "first_name": "Sol",
        "last_name": "Gutkowski",
        "profile_id": 437,
        "referral_code": "528332"
      },
      "job_title": "Human Banking Supervisor",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 169,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-07-23T14:23:13.913Z",
        "start_at": "2025-07-23T10:23:13.908Z"
      },
      "total": "140.4"
    },
    {
      "id": 155,
      "company_name": "Strosin-Wolff",
      "date": "2025-07-23",
      "driver": {
        "id": 895,
        "first_name": "Leonard",
        "last_name": "Veum",
        "profile_id": 438,
        "referral_code": "840890"
      },
      "job_title": "Government Technician",
      "payment_state": "paid",
      "state": "paid",
      "timelog": {
        "id": 170,
        "amend_status": "approved",
        "breaks": [

        ],
        "duration": {
          "hours": 4
        },
        "end_at": "2025-07-23T14:23:14.004Z",
        "start_at": "2025-07-23T10:23:13.998Z"
      },
      "total": "219.6"
    }
  ]
}