ExpenseOnDemand MCP by usefulapi

v1.7.1
io.usefulapi/expenseondemand Checked 2 days ago Published 1 day ago

Read exports, payroll totals and users; add, update or deactivate employees in ExpenseOnDemand.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

expenseondemand_export_accounting Export accounting data

Fetch approved expense data for an accounting integration, filtered by report, date range, category, claimant, cost centre, grade and payment type. Reads data only; the POST carries the filter body. Accounting API: POST /accounting/api/AccountingExport.

ParameterTypeDescription
claimantFilterarrayClaimant ids (list of ids; leave out for no filter).
claimantTypeFilterarrayClaimant type ids (list of ids; leave out for no filter).
costCenterFilterarrayCost centre ids (list of ids; leave out for no filter).
expenseCategoryFilterarrayExpense category ids (list of ids; leave out for no filter).
exportReportIdintegerExport report id (one the organisation has; see expenseondemand_list_export_templates).
exportTypeinteger1 = new items, 2 = previously exported items.
fromDatestringStart of the expense submission date range.
gradeFilterarrayGrade ids (list of ids; leave out for no filter).
paymentTypeFilterarrayPayment type ids (list of ids; leave out for no filter).
toDatestringEnd of the expense submission date range.

expenseondemand_get_payroll_export Get payroll export

Get the total approved expense amount per employee for payroll: name, email, expense count and total amount. Accounting API: GET /accounting/api/PayrollExport.

expenseondemand_list_export_templates List export templates

List the export report types configured for the subscription, with their report ids and fields. Use a reportId as exportReportId in expenseondemand_export_accounting. Meta API: GET /meta/api/GetExportTemplates.

expenseondemand_list_expense_categories List expense categories

List the expense categories of the subscription with id, name, active flag and base category id. Meta API: GET /meta/api/GetExpenseCategoriesForOrganisation.

expenseondemand_list_grades List grades

List the employee grades of the subscription with id, name and active flag. Meta API: GET /meta/api/GetGradesForOrganisation.

expenseondemand_list_customers List customers

List the customers of the subscription with id, name, codes and active flag. Customer API: GET /customer/api/GetCustomersForOrganisation.

expenseondemand_add_customer Add a customer

Add a customer to the subscription. The id is generated by ExpenseOnDemand. Creates a new record each call. Customer API: POST /customer/api/AddCustomerForSubscription.

ParameterTypeDescription
codestringCustomer code 1.
code2stringCustomer code 2.
isActivebooleanWhether the customer is active.
namestringCustomer name.

expenseondemand_update_customer Update a customer

Update an existing customer by id. Send every field you want to keep: the vendor may clear fields you leave out, so read the record first with expenseondemand_list_customers. Customer API: POST /customer/api/UpdateCustomerForSubscription.

ParameterTypeDescription
id *integerId of the customer to update (from expenseondemand_list_customers).
codestringCustomer code 1.
code2stringCustomer code 2.
isActivebooleanWhether the customer is active.
namestringCustomer name.

expenseondemand_list_cost_centres List cost centres

List the cost centres of the subscription with id, name, codes and active flag. Cost Centre API: GET /costCentre/api/GetCostCentresForOrganisation.

expenseondemand_add_cost_centre Add a cost centre

Add a cost centre to the subscription. The id is generated by ExpenseOnDemand. Creates a new record each call. Cost Centre API: POST /costCentre/api/AddCostCentreForSubscription.

ParameterTypeDescription
codestringCost centre code 1.
code2stringCost centre code 2.
isActivebooleanWhether the cost centre is active.
namestringCost centre name.

expenseondemand_update_cost_centre Update a cost centre

Update an existing cost centre by id. Send every field you want to keep: the vendor may clear fields you leave out, so read the record first with expenseondemand_list_cost_centres. Cost Centre API: POST /costCentre/api/UpdateCostCentreForSubscription.

ParameterTypeDescription
id *integerId of the cost centre to update (from expenseondemand_list_cost_centres).
codestringCost centre code 1.
code2stringCost centre code 2.
isActivebooleanWhether the cost centre is active.
namestringCost centre name.

expenseondemand_list_users List users

List the users (employees) of the subscription with email, name, status (1 Active, 2 Inactive, 3 NotInvited, 4 Pending, 5 Deleted), role and approver email. Users API: GET /users/api/GetUsersForOrganisation.

expenseondemand_add_employee Invite an employee

Add an employee to the subscription. ExpenseOnDemand treats the new employee as invited. Creates a record each call, so check expenseondemand_list_users first. Users API: POST /users/api/AddEmployee.

ParameterTypeDescription
email *stringEmail ID of the employee.
employeeId *stringEmployee ID 1 (your HR or payroll id).
employeeRole *integerRole: 1 = Claimant, 2 = Approver, 3 = Finance Manager.
firstName *stringFirst name of the employee.
lastName *stringLast name of the employee.
approverEmailstringEmail of the approver assigned to this employee.
employeeId2stringEmployee ID 2 (optional).
employeeId3stringEmployee ID 3 (optional).
employeeId4stringEmployee ID 4 (optional).

expenseondemand_update_employee Update an employee

Update an existing employee, identified by email. Send every field you want to keep: the vendor may clear fields you leave out, so read the record first with expenseondemand_list_users. Users API: POST /users/api/UpdateEmployee.

ParameterTypeDescription
email *stringEmail ID of the employee.
employeeId *stringEmployee ID 1 (your HR or payroll id).
employeeRole *integerRole: 1 = Claimant, 2 = Approver, 3 = Finance Manager.
firstName *stringFirst name of the employee.
lastName *stringLast name of the employee.
approverEmailstringEmail of the approver assigned to this employee.
employeeId2stringEmployee ID 2 (optional).
employeeId3stringEmployee ID 3 (optional).
employeeId4stringEmployee ID 4 (optional).

expenseondemand_deactivate_employee Deactivate an employee

Deactivate an employee by email, so they can no longer submit or approve expenses. Users API: POST /users/api/DeactivateEmployee.

ParameterTypeDescription
email *stringEmail ID of the employee to deactivate.