ExpenseIn MCP by usefulapi
v1.9.1Read expenses, invoices, receipts and card transactions, and add expenses or notes in ExpenseIn.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
expensein_list_expenses List expenses
List expenses with optional filters by user, type, status, and Unix-second date ranges (expense, submitted, approved). Returns the full filtered set. ExpenseIn API: GET /1.0/expenses.
| Parameter | Type | Description |
|---|---|---|
approved_date_from | number | Unix time in seconds (UTC). |
approved_date_to | number | Unix time in seconds (UTC). |
expense_date_from | number | Unix time in seconds (UTC). |
expense_date_to | number | Unix time in seconds (UTC). |
expense_status | string | Approval status. |
expense_type | string | Expense type. |
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
submitted_date_from | number | Unix time in seconds (UTC). |
submitted_date_to | number | Unix time in seconds (UTC). |
user_id | integer | Only expenses of this user id. |
expensein_get_expense Get an expense
Get one expense by id. ExpenseIn API: GET /1.0/expenses/{id}.
| Parameter | Type | Description |
|---|---|---|
expense_id * | integer | The expense id (from expensein_list_expenses). |
expensein_list_expenses_for_approval List expenses for approval
List expenses awaiting, approved or rejected by approval. 'from' and 'to' (Unix seconds) filter approved or rejected expenses only. ExpenseIn API: GET /1.0/approval/expenses/{awaiting|approved|rejected}.
| Parameter | Type | Description |
|---|---|---|
status * | string | Which approval queue to read. |
approver_user_id | integer | Only expenses routed to this approver user id. |
from | number | Unix time in seconds (UTC). |
to | number | Unix time in seconds (UTC). |
expensein_list_invoices List invoices
List supplier invoices and credit notes, with filters by status, supplier, approver and date. Returns the full filtered set. ExpenseIn API: GET /1.0/invoices.
| Parameter | Type | Description |
|---|---|---|
approver_id | integer | Only invoices routed to this approver user id. |
complete | boolean | true = complete, false = not complete. |
invoice_date_from | number | Unix time in seconds (UTC). |
invoice_date_to | number | Unix time in seconds (UTC). |
invoice_status | string | Approval status. |
invoice_type | string | Invoice or credit note. |
reference | string | Filter by the record's reference code. |
supplier_id | integer | Only invoices from this supplier id. |
expensein_get_invoice Get an invoice
Get one invoice by id. ExpenseIn API: GET /1.0/invoices/{id}.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | The invoice id (from expensein_list_invoices). |
expensein_add_invoice_note Add a note to an invoice
Add a free-text note to an invoice. This adds a new note each time, so do not repeat the call. ExpenseIn API: POST /1.0/invoices/{id}/note.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | The invoice id to annotate. |
note * | string | The note text. |
expensein_list_receipts List receipts
List receipts with optional filters by user, expense, date range and whether they are attached to an expense. ExpenseIn API: GET /1.0/receipts.
| Parameter | Type | Description |
|---|---|---|
expense_id | integer | Only receipts attached to this expense id. |
from_date | number | Unix time in seconds (UTC). |
include_deleted | boolean | Include deleted records. |
is_attached | boolean | true = attached to an expense, false = not attached. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
purchase_method_id | integer | Only receipts paid with this purchase method id. |
to_date | number | Unix time in seconds (UTC). |
user_id | integer | Only receipts of this user id. |
expensein_get_receipt Get a receipt
Get one receipt by id. ExpenseIn API: GET /1.0/receipts/{id}.
| Parameter | Type | Description |
|---|---|---|
receipt_id * | integer | The receipt id (from expensein_list_receipts). |
expensein_list_users List users
List standard users, with filters by reference, e-mail, or a search term. ExpenseIn API: GET /1.0/users.
| Parameter | Type | Description |
|---|---|---|
email | string | Only the user with this e-mail address. |
include_deleted | boolean | Include deleted records. |
include_leavers | boolean | Include users who have left. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
search_term | string | Match names or e-mail addresses that contain this text. |
expensein_get_user Get a user
Get one standard user by id. ExpenseIn API: GET /1.0/users/{id}.
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | The user id (from expensein_list_users). |
expensein_list_categories List categories
List expense categories and what each applies to (purchase, mileage, time, invoicing), with visibility and default tax rate. ExpenseIn API: GET /1.0/categories. Also the cheapest call to test an API key.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
expensein_list_projects List projects
List projects. ExpenseIn API: GET /1.0/projects.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
expensein_list_departments List departments
List departments. ExpenseIn API: GET /1.0/departments.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
expensein_list_suppliers List suppliers
List suppliers. ExpenseIn API: GET /1.0/suppliers.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
reference | string | Filter by the record's reference code. |
search_term | string | Match supplier names that contain this text. |
expensein_list_merchants List merchants
List merchants. ExpenseIn API: GET /1.0/merchants.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
expensein_list_tax_rates List tax rates
List tax rates. ExpenseIn API: GET /1.0/taxrates.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted records. |
last_server_change_counter | integer | Sync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync. |
reference | string | Filter by the record's reference code. |
expensein_list_policies List expense policies
List the expense policies on the account. ExpenseIn API: GET /1.0/policies.
expensein_list_card_transactions List card transactions
List expense-card transactions, filtered by Unix-second date range, cardholder id or a search term. Returns the full filtered set. ExpenseIn API: GET /1.0/cardtransactions.
| Parameter | Type | Description |
|---|---|---|
cardholder_id | integer | Only transactions of this cardholder id. |
from | number | Start of the transaction date range (Unix seconds, UTC). |
search_term | string | Match merchant or description text. |
to | number | End of the transaction date range (Unix seconds, UTC). |
expensein_list_purchase_requests List purchase requests
List purchase requests, filtered by owner user id and status. ExpenseIn API: GET /1.0/purchaserequests.
| Parameter | Type | Description |
|---|---|---|
owner_id | integer | Only requests owned by this user id. |
status | string | Request status. |
expensein_get_server_change_counter Get the server change counter
Get the current server change counter. Save it after a sync, then pass it as last_server_change_counter next time to read only changes. ExpenseIn API: GET /1.0/serverchangecounter.
expensein_create_expense Create an expense
Create a new expense for a user. Each call creates another expense, so do not repeat it. ExpenseIn API: POST /1.0/expenses.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description of the expense. |
expense_date * | number | Date of the expense (Unix seconds, UTC). |
type * | string | Expense type. |
user_id * | integer | The user id the expense belongs to (from expensein_list_users). |
category_id | integer | Category id (from expensein_list_categories). |
department_id | integer | Department id (from expensein_list_departments). |
is_billable | boolean | Whether the expense is billable to a client. |
notes | string | Longer notes. |
project_id | integer | Project id (from expensein_list_projects). |
tax_amount | number | Tax amount in the account currency. |
tax_rate_id | integer | Tax rate id (from expensein_list_tax_rates). |