Expenses API
REST endpoints for employee expense reports.
Expenses API
All amounts are integer minor units (amount_cents). 45 EUR = 4500.
Each expense keeps its own currency; a report sums its lines per currency
(totals_by_currency) and never converts — Finance converts at posting.
| Method | Path | Permission | Concierge tool |
|---|---|---|---|
| POST | /expenses | expenses:create:self | create_expense |
| GET | /expenses | expenses:read | list_expenses |
| PATCH | /expenses/:id | expenses:update:self | update_expense |
| DELETE | /expenses/:id | expenses:update:self | delete_expense |
| POST | /expenses/:id/extract | expenses:update:self | extract_expense_receipt |
| POST | /expenses/:id/sanction | expenses:approve:team | sanction_expense |
| GET | /expenses/categories | expenses:read | list_expense_categories |
| POST | /expenses/categories | expenses:configure:all | create_expense_category |
| PATCH | /expenses/categories/:id | expenses:configure:all | update_expense_category |
| DELETE | /expenses/categories/:id | expenses:configure:all | delete_expense_category |
| GET | /expenses/reports | expenses:read | list_expense_reports |
| POST | /expenses/reports | expenses:create:self | create_expense_report |
| GET | /expenses/reports/:id | expenses:read | get_expense_report |
| PATCH | /expenses/reports/:id | expenses:update:self | update_expense_report |
| DELETE | /expenses/reports/:id | expenses:update:self | delete_expense_report |
| POST | /expenses/reports/:id/submit | expenses:update:self | submit_expense_report |
| POST | /expenses/reports/:id/reset | expenses:update:self | reset_expense_report |
| POST | /expenses/reports/:id/approve | expenses:approve:team | approve_expense_report |
| POST | /expenses/reports/:id/refuse | expenses:approve:team | refuse_expense_report |
| POST | /expenses/reports/:id/post | expenses:post:all | post_expense_report |
| POST | /expenses/reports/:id/reimburse | expenses:reimburse:all | reimburse_expense_report |
| POST | /expenses/reports/:id/reimburse-payroll | expenses:reimburse:all | reimburse_expense_report_via_payroll |
| POST | /expenses/reports/:id/withdraw-payroll | expenses:reimburse:all | withdraw_expense_report_from_payslip |
| POST | /expenses/reports/:id/confirm-payslip-cash | expenses:reimburse:all | confirm_expense_report_paid_by_reversed_payslip |
confirm-payslip-cash takes { reason, external_key, paid_off_system? }; external_key is required (the same key replays, another key on a confirmed report is 409 EXPENSE_EXTERNAL_KEY_REUSED). At the moment it books it re-reads the evidence: the reversed payslip's SEPA export, or its net-pay payment posted in Finance. Without either it is refused with 409 EXPENSE_RECLASS_NO_CASH_OUT unless paid_off_system is true; a net-pay payment reversed in Finance since (and no SEPA export) is 409 EXPENSE_RECLASS_NET_PAY_REVERSED. On a stamped report, reimburse and reimburse-payroll need acknowledge_repay: true (else 409 EXPENSE_REIMBURSEMENT_CASH_MAY_HAVE_LEFT).
Rules worth knowing
- Receipts are uploaded assets (
receipt_asset_ids, up to 10 per expense). Only the caller's own, finalized, malware-clean uploads in the org are accepted; reads return a short-lived signedurlper receipt (null while a scan is pending). - Reviewing:
expenses:approve:teamreviews only reports routed to you (you are the employee's manager in HR);expenses:approve:allreviews any. Nobody reviews their own report. - Posting fails closed with HTTP 503 if the finance journal port is not bound; billable expenses are re-invoiced (draft invoice per customer and currency, idempotent) before the journal is posted.
- Reimbursement by bank requires the bank-reimbursement linker to verify the transaction — without it the endpoint answers 503 and nothing is marked.
- Creation endpoints accept an
external_key; a retry with the same key re-reads the first result.