ExpenseOnDemand MCP by usefulapi
v1.7.1Read 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.
| Parameter | Type | Description |
|---|---|---|
claimantFilter | array | Claimant ids (list of ids; leave out for no filter). |
claimantTypeFilter | array | Claimant type ids (list of ids; leave out for no filter). |
costCenterFilter | array | Cost centre ids (list of ids; leave out for no filter). |
expenseCategoryFilter | array | Expense category ids (list of ids; leave out for no filter). |
exportReportId | integer | Export report id (one the organisation has; see expenseondemand_list_export_templates). |
exportType | integer | 1 = new items, 2 = previously exported items. |
fromDate | string | Start of the expense submission date range. |
gradeFilter | array | Grade ids (list of ids; leave out for no filter). |
paymentTypeFilter | array | Payment type ids (list of ids; leave out for no filter). |
toDate | string | End 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.
| Parameter | Type | Description |
|---|---|---|
code | string | Customer code 1. |
code2 | string | Customer code 2. |
isActive | boolean | Whether the customer is active. |
name | string | Customer 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Id of the customer to update (from expenseondemand_list_customers). |
code | string | Customer code 1. |
code2 | string | Customer code 2. |
isActive | boolean | Whether the customer is active. |
name | string | Customer 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.
| Parameter | Type | Description |
|---|---|---|
code | string | Cost centre code 1. |
code2 | string | Cost centre code 2. |
isActive | boolean | Whether the cost centre is active. |
name | string | Cost 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Id of the cost centre to update (from expenseondemand_list_cost_centres). |
code | string | Cost centre code 1. |
code2 | string | Cost centre code 2. |
isActive | boolean | Whether the cost centre is active. |
name | string | Cost 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email ID of the employee. |
employeeId * | string | Employee ID 1 (your HR or payroll id). |
employeeRole * | integer | Role: 1 = Claimant, 2 = Approver, 3 = Finance Manager. |
firstName * | string | First name of the employee. |
lastName * | string | Last name of the employee. |
approverEmail | string | Email of the approver assigned to this employee. |
employeeId2 | string | Employee ID 2 (optional). |
employeeId3 | string | Employee ID 3 (optional). |
employeeId4 | string | Employee 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email ID of the employee. |
employeeId * | string | Employee ID 1 (your HR or payroll id). |
employeeRole * | integer | Role: 1 = Claimant, 2 = Approver, 3 = Finance Manager. |
firstName * | string | First name of the employee. |
lastName * | string | Last name of the employee. |
approverEmail | string | Email of the approver assigned to this employee. |
employeeId2 | string | Employee ID 2 (optional). |
employeeId3 | string | Employee ID 3 (optional). |
employeeId4 | string | Employee 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email ID of the employee to deactivate. |