Overview / People & HR / Update an expense

Update an expense

patch https://api.flactrum.com/v1/staff-expenses/{expense}
Required scope payroll.write
Success status200
Returns One StaffExpense object

Parameters

NameInTypeDescription
expense * path string ULID of the record.

Request body

FieldTypeDescription
employee_id * string —
branch_id string|null —
category * string Free text: travel, meal, training…
amount * number —
description string|null —
expense_date * string —

Response fields

FieldTypeDescription
id string —
employee_id string —
branch_id string|null —
category string —
amount number —
description string|null —
expense_date string —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/staff-expenses/01m43mzftcsk09zygkb46k3man' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": 500
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzftcsk09zygkb46k3man",
        "user_id": null,
        "branch_id": "01m43mzfsrpgemdejvpq878cby",
        "category": "travel",
        "amount": 500,
        "description": "Şubeler arası ulaşım",
        "expense_date": "2026-10-04",
        "created_at": "2026-10-04T14:27:09+00:00",
        "updated_at": "2026-10-04T14:27:09+00:00"
    }
}