Metanow Docs
Api

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.

MethodPathPermissionConcierge tool
POST/expensesexpenses:create:selfcreate_expense
GET/expensesexpenses:readlist_expenses
PATCH/expenses/:idexpenses:update:selfupdate_expense
DELETE/expenses/:idexpenses:update:selfdelete_expense
POST/expenses/:id/extractexpenses:update:selfextract_expense_receipt
POST/expenses/:id/sanctionexpenses:approve:teamsanction_expense
GET/expenses/categoriesexpenses:readlist_expense_categories
POST/expenses/categoriesexpenses:configure:allcreate_expense_category
PATCH/expenses/categories/:idexpenses:configure:allupdate_expense_category
DELETE/expenses/categories/:idexpenses:configure:alldelete_expense_category
GET/expenses/reportsexpenses:readlist_expense_reports
POST/expenses/reportsexpenses:create:selfcreate_expense_report
GET/expenses/reports/:idexpenses:readget_expense_report
PATCH/expenses/reports/:idexpenses:update:selfupdate_expense_report
DELETE/expenses/reports/:idexpenses:update:selfdelete_expense_report
POST/expenses/reports/:id/submitexpenses:update:selfsubmit_expense_report
POST/expenses/reports/:id/resetexpenses:update:selfreset_expense_report
POST/expenses/reports/:id/approveexpenses:approve:teamapprove_expense_report
POST/expenses/reports/:id/refuseexpenses:approve:teamrefuse_expense_report
POST/expenses/reports/:id/postexpenses:post:allpost_expense_report
POST/expenses/reports/:id/reimburseexpenses:reimburse:allreimburse_expense_report
POST/expenses/reports/:id/reimburse-payrollexpenses:reimburse:allreimburse_expense_report_via_payroll
POST/expenses/reports/:id/withdraw-payrollexpenses:reimburse:allwithdraw_expense_report_from_payslip
POST/expenses/reports/:id/confirm-payslip-cashexpenses:reimburse:allconfirm_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 signed url per receipt (null while a scan is pending).
  • Reviewing: expenses:approve:team reviews only reports routed to you (you are the employee's manager in HR); expenses:approve:all reviews 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.

On this page