# Expenses

Lawmatics MCP server · 5 tools

## Tools

- [Create Expense](/integrations/lawmatics/expenses/create-expense/) — Create an expense in Lawmatics and attach it to a matter or contact. Cost is in integer cents (e.g. 50000 = $500.00). Requires the associated and creating user ids (use get-current-user for the caller's own id). Optionally set the billing expense type, billable flag, and invoice. Note: for contact-attached creates Lawmatics may report a temporary error even though the expense WAS created — verify with list-expenses before retrying to avoid duplicates.

- [Delete Expense](/integrations/lawmatics/expenses/delete-expense/) — Delete an expense from Lawmatics by ID. This is irreversible.

- [Get Expense](/integrations/lawmatics/expenses/get-expense/) — Fetch a single expense from Lawmatics by ID. Returns its cost (integer cents), billable status, timestamps, and a `relationships` envelope of {id,type} pointers to related records (the attached matter or contact, the staff and creating users, the billing expense type, and the invoice).

- [List Expenses](/integrations/lawmatics/expenses/list-expenses/) — List expenses from Lawmatics with optional pagination, filtering, and sorting. Filter by the attached matter/contact id, the associated user id, or expense fields like billable and created_at. Each row carries a `relationships` envelope of to-one {id,type} pointers (the attached matter or contact, staff and creating users, billing expense type, invoice).

- [Update Expense](/integrations/lawmatics/expenses/update-expense/) — Update an existing expense in Lawmatics by ID. Supports changing the description and billable flag. Lawmatics requires the matter/contact association on every update, so exactly one of matterId/contactId must be provided — pass the expense's current owner (from get-expense) to keep it unchanged, or a different one to re-target. Note: for contact-attached updates Lawmatics may report a temporary error even though the update WAS applied — verify with get-expense before retrying.
