Overview /
People & HR /
Record a staff expense
Record a staff expense
post
https://api.flactrum.com/v1/staff-expenses
| Required scope | payroll.write |
| Success status | 201 |
| Returns | One StaffExpense object |
Request body
| Field | Type | Description |
|---|---|---|
| employee_id * | string | — |
| branch_id | string|null | — |
| category * | string | Free text: travel, meal, training… |
| amount * | number | — |
| description | string|null | — |
| expense_date * | string | — |
Response fields
| Field | Type | Description |
|---|---|---|
| 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 POST 'https://api.flactrum.com/v1/staff-expenses' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"employee_id": "01m43mzft19d5vthsg2wfmzbgh",
"branch_id": "01m43mzfsrpgemdejvpq878cby",
"category": "travel",
"amount": 450,
"description": "Şubeler arası ulaşım",
"expense_date": "2026-10-04"
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mzftcsk09zygkb46k3man",
"user_id": null,
"branch_id": "01m43mzfsrpgemdejvpq878cby",
"category": "travel",
"amount": 450,
"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"
}
}