Mark as paid/pending
Finance > Timesheets
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.eyJzdWIiOiI5MzMiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzODMsImV4cCI6MTc2NjIxODM4MywianRpIjoiZDBiY2QwNjYtOGFmZi00ZjA3LWFkZWYtYmRjNjI5ZDhkZGEzIn0.AULcS1LzJMmRI1p34AlexedHysRci0S7x1jNxKxYx0M
Host: example.org
Cookie:
Body
{
"timesheet": {
"timesheet_ids": [
167,
168,
169,
170,
171
],
"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/"03cb9797b23c1b8fd207da8bc71e536a"
cache-control: max-age=0, private, must-revalidate
x-request-id: d194c195-2046-45ec-9841-a4d4b3141cb2
x-runtime: 0.039284
content-length: 2309
Body
{
"timesheets": [
{
"id": 167,
"company_name": "McDermott-Effertz",
"currency": "GBP",
"date": "2025-11-20",
"driver": {
"id": 924,
"financial_company_id": null,
"first_name": "Nina",
"last_name": "Bradtke",
"profile_id": 453,
"referral_code": "592606"
},
"job_title": "Legal Supervisor",
"payment_state": "paid",
"state": "paid",
"timelog": {
"id": 185,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 4
},
"end_at": "2025-11-20T12:13:03.293Z",
"start_at": "2025-11-20T08:13:03.289Z"
},
"total": "255.6"
},
{
"id": 168,
"company_name": "Strosin-Gulgowski",
"currency": "GBP",
"date": "2025-11-20",
"driver": {
"id": 926,
"financial_company_id": null,
"first_name": "Genny",
"last_name": "Volkman",
"profile_id": 454,
"referral_code": "290043"
},
"job_title": "Global Producer",
"payment_state": "paid",
"state": "paid",
"timelog": {
"id": 186,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 4
},
"end_at": "2025-11-20T12:13:03.361Z",
"start_at": "2025-11-20T08:13:03.355Z"
},
"total": "320.4"
},
{
"id": 169,
"company_name": "Brekke LLC",
"currency": "GBP",
"date": "2025-11-20",
"driver": {
"id": 928,
"financial_company_id": null,
"first_name": "Trent",
"last_name": "Blick",
"profile_id": 455,
"referral_code": "697841"
},
"job_title": "IT Liaison",
"payment_state": "paid",
"state": "paid",
"timelog": {
"id": 187,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 4
},
"end_at": "2025-11-20T12:13:03.433Z",
"start_at": "2025-11-20T08:13:03.430Z"
},
"total": "201.6"
},
{
"id": 170,
"company_name": "Lindgren, Swift and Pouros",
"currency": "GBP",
"date": "2025-11-20",
"driver": {
"id": 930,
"financial_company_id": null,
"first_name": "Avery",
"last_name": "O'Connell",
"profile_id": 456,
"referral_code": "335983"
},
"job_title": "Technology Orchestrator",
"payment_state": "paid",
"state": "paid",
"timelog": {
"id": 188,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 4
},
"end_at": "2025-11-20T12:13:03.498Z",
"start_at": "2025-11-20T08:13:03.495Z"
},
"total": "288.0"
},
{
"id": 171,
"company_name": "Wintheiser-Bogan",
"currency": "GBP",
"date": "2025-11-20",
"driver": {
"id": 932,
"financial_company_id": null,
"first_name": "Virgil",
"last_name": "Yundt",
"profile_id": 457,
"referral_code": "413048"
},
"job_title": "Dynamic Banking Specialist",
"payment_state": "paid",
"state": "paid",
"timelog": {
"id": 189,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 4
},
"end_at": "2025-11-20T12:13:03.571Z",
"start_at": "2025-11-20T08:13:03.568Z"
},
"total": "72.0"
}
]
}