ExpenseIn MCP by usefulapi

v1.9.1
io.usefulapi/expensein Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
approved_date_fromnumberUnix time in seconds (UTC).
approved_date_tonumberUnix time in seconds (UTC).
expense_date_fromnumberUnix time in seconds (UTC).
expense_date_tonumberUnix time in seconds (UTC).
expense_statusstringApproval status.
expense_typestringExpense type.
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
submitted_date_fromnumberUnix time in seconds (UTC).
submitted_date_tonumberUnix time in seconds (UTC).
user_idintegerOnly expenses of this user id.

expensein_get_expense Get an expense

Get one expense by id. ExpenseIn API: GET /1.0/expenses/{id}.

ParameterTypeDescription
expense_id *integerThe 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}.

ParameterTypeDescription
status *stringWhich approval queue to read.
approver_user_idintegerOnly expenses routed to this approver user id.
fromnumberUnix time in seconds (UTC).
tonumberUnix 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.

ParameterTypeDescription
approver_idintegerOnly invoices routed to this approver user id.
completebooleantrue = complete, false = not complete.
invoice_date_fromnumberUnix time in seconds (UTC).
invoice_date_tonumberUnix time in seconds (UTC).
invoice_statusstringApproval status.
invoice_typestringInvoice or credit note.
referencestringFilter by the record's reference code.
supplier_idintegerOnly invoices from this supplier id.

expensein_get_invoice Get an invoice

Get one invoice by id. ExpenseIn API: GET /1.0/invoices/{id}.

ParameterTypeDescription
invoice_id *integerThe 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.

ParameterTypeDescription
invoice_id *integerThe invoice id to annotate.
note *stringThe 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.

ParameterTypeDescription
expense_idintegerOnly receipts attached to this expense id.
from_datenumberUnix time in seconds (UTC).
include_deletedbooleanInclude deleted records.
is_attachedbooleantrue = attached to an expense, false = not attached.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
purchase_method_idintegerOnly receipts paid with this purchase method id.
to_datenumberUnix time in seconds (UTC).
user_idintegerOnly receipts of this user id.

expensein_get_receipt Get a receipt

Get one receipt by id. ExpenseIn API: GET /1.0/receipts/{id}.

ParameterTypeDescription
receipt_id *integerThe 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.

ParameterTypeDescription
emailstringOnly the user with this e-mail address.
include_deletedbooleanInclude deleted records.
include_leaversbooleanInclude users who have left.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter by the record's reference code.
search_termstringMatch 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}.

ParameterTypeDescription
user_id *integerThe 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.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter by the record's reference code.

expensein_list_projects List projects

List projects. ExpenseIn API: GET /1.0/projects.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter by the record's reference code.

expensein_list_departments List departments

List departments. ExpenseIn API: GET /1.0/departments.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter by the record's reference code.

expensein_list_suppliers List suppliers

List suppliers. ExpenseIn API: GET /1.0/suppliers.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
referencestringFilter by the record's reference code.
search_termstringMatch supplier names that contain this text.

expensein_list_merchants List merchants

List merchants. ExpenseIn API: GET /1.0/merchants.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter by the record's reference code.

expensein_list_tax_rates List tax rates

List tax rates. ExpenseIn API: GET /1.0/taxrates.

ParameterTypeDescription
include_deletedbooleanInclude deleted records.
last_server_change_counterintegerSync counter from expensein_get_server_change_counter. Returns only records changed since then; 0 for a first full sync.
referencestringFilter 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.

ParameterTypeDescription
cardholder_idintegerOnly transactions of this cardholder id.
fromnumberStart of the transaction date range (Unix seconds, UTC).
search_termstringMatch merchant or description text.
tonumberEnd 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.

ParameterTypeDescription
owner_idintegerOnly requests owned by this user id.
statusstringRequest 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.

ParameterTypeDescription
description *stringShort description of the expense.
expense_date *numberDate of the expense (Unix seconds, UTC).
type *stringExpense type.
user_id *integerThe user id the expense belongs to (from expensein_list_users).
category_idintegerCategory id (from expensein_list_categories).
department_idintegerDepartment id (from expensein_list_departments).
is_billablebooleanWhether the expense is billable to a client.
notesstringLonger notes.
project_idintegerProject id (from expensein_list_projects).
tax_amountnumberTax amount in the account currency.
tax_rate_idintegerTax rate id (from expensein_list_tax_rates).