Payhawk MCP by usefulapi

v1.2.1
io.usefulapi/payhawk Checked 4 days ago Published 1 day ago

Read expenses, approval workflows, users, teams and fund accounts in Payhawk.

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

payhawk_list_expenses List expenses

List expenses of the account, one page at a time (skip and take, up to 1000 per page). Filter with a JSON filter (status, supplier name, and so on). Payhawk Developer API: GET /api/v3/accounts/{accountId}/expenses.

ParameterTypeDescription
filterstringOptional JSON filter object for expense fields, sent as $filter. Example: {"status":{"$equal":"draft"}} or {"supplier.name":{"$contains":"Acme"}}. Combine with {"$and":[...]}.
skipintegerRecords to skip (paging). Default 0.
takeintegerRecords per page, 1 to 1000. Default 1000.

payhawk_get_expense Get an expense

Get one expense by id: status, amounts, supplier, dates, review and approval fields. Payhawk Developer API: GET /api/v3/accounts/{accountId}/expenses/{expenseId}.

ParameterTypeDescription
expense_id *stringThe expense id.

payhawk_get_expense_workflow Get an expense workflow

Get the approval workflow state of one expense: which steps ran and what is still open. Payhawk Developer API: GET /api/v3/accounts/{accountId}/expenses/{expenseId}/workflow.

ParameterTypeDescription
expense_id *stringThe expense id.

payhawk_list_users List users

List the users of the account (name, email, role, status). Payhawk Developer API: GET /api/v3/accounts/{accountId}/users.

ParameterTypeDescription
filterstringOptional JSON filter object for user fields, sent as $filter (Payhawk Developer API filter syntax).

payhawk_get_user Get a user

Get one user of the account by id. Payhawk Developer API: GET /api/v3/accounts/{accountId}/users/{userId}.

ParameterTypeDescription
user_id *stringThe user id.

payhawk_list_teams List teams

List the teams of the account. Payhawk Developer API: GET /api/v3/accounts/{accountId}/teams.

payhawk_list_team_members List team members

List the members of one team. Payhawk Developer API: GET /api/v3/accounts/{accountId}/teams/{teamId}/members.

ParameterTypeDescription
team_id *stringThe team id.

payhawk_list_custom_fields List custom fields

List the custom expense fields of the account (for example Project or Cost center) and their allowed values. Payhawk Developer API: GET /api/v3/accounts/{accountId}/custom-fields.

payhawk_list_webhooks List webhook subscriptions

List the webhook subscriptions of the account (event type and callback URL). Payhawk Developer API: GET /api/v3/accounts/{accountId}/webhooks.

payhawk_list_fund_accounts List fund accounts

List the fund accounts of the account (the balances that cards and payments draw from). Payhawk Developer API: GET /api/v3/accounts/{accountId}/fund-accounts.

payhawk_get_fund_account_bank_statement Get a fund account bank statement

Get the bank statement lines of one fund account. Payhawk Developer API: GET /api/v3/accounts/{accountId}/fund-accounts/{fundAccountId}/bank-statement.

ParameterTypeDescription
fund_account_id *stringThe fund account id.