Actions99
- Group Accounts Actions
- Group Account Codes Actions
- Accounts Actions
- Expenses Actions
- Purchase Orders Actions
- Get A List Of Purchase Orders
- Create A New Purchase Order
- Get A Purchase Order
- Update A Purchase Order
- Open A Purchase Order
- Get A List Of Purchase Orders Items For A Specific Purchase Order
- Create A Purchase Order Item
- Get A Purchase Order Item
- Update A Purchase Order Item
- Delete A Purchase Order Item
- Get A List Of Goods Received Notes For A Specific Purchase Order
- Create A Goods Received Note
- Attach A File To A Goods Received Note
- Delete A Goods Received Note
- Suppliers Actions
- Fund Accounts Actions
- Cards Actions
- Expense Categories Actions
- Tax Rates Actions
- Amortizations Actions
- Account Teams Actions
- Account Codes Actions
- External Teams Actions
- Custom Fields Actions
- Get Custom Fields
- Create A New Custom Field
- Get Custom Field
- Update Custom Field
- Delete A Custom Field And All Its Values
- Get Custom Field Values
- Create A Custom Field Value
- Delete Custom Field Values
- Get A Custom Field Value
- Update A Custom Field Value
- Delete A Custom Field Value
- Get Managers For A Specific Custom Field Value
- Adds Managers For A Specific Custom Field Value
- Replaces Managers For A Specific Custom Field Value
- Removes Managers For A Specific Custom Field Value
- Webhook Subscriptions Actions
- Group Teams Actions
Expense Categories → Get A List Of All Available Expense Categories
AI-generatedOverview
This node operation retrieves a list of all available expense categories for a specified account. It is useful in scenarios where you need to display or process the different types of expenses that can be categorized within an accounting or financial management system. For example, a user might want to fetch these categories to populate a dropdown menu in a form or to validate expense entries against existing categories.
Properties
| Name | Meaning |
|---|---|
| Account Id | Identifier of the account whose expense categories are to be retrieved |
Output
The output will contain a JSON array listing all expense categories associated with the given account. Each item in the array represents one expense category, typically including details such as the category name and possibly an identifier. The exact structure depends on the API response but generally provides enough information to identify and use each category.
No binary data output is expected from this operation.
Dependencies
- Requires an API key credential or similar authentication token configured in n8n to access the external service.
- The node interacts with an external API endpoint (likely the Payhawk API) to fetch expense categories.
- Proper base URL and authentication credentials must be set up in the node's configuration.
Troubleshooting
- Missing or invalid Account Id: Ensure the "Account Id" property is provided and correctly corresponds to an existing account in the external system.
- Authentication errors: Verify that the API key or authentication token is valid and has sufficient permissions to read expense categories.
- Network issues or incorrect base URL: Confirm that the base URL is correctly configured and the external API is reachable.
- Empty results: If no categories are returned, check if the account actually has any expense categories defined or if there are filters applied unintentionally.
Links and References
- Refer to the external API documentation for "Expense Categories" to understand the full schema and additional query options.
- n8n documentation on configuring API credentials and HTTP request nodes may help in setting up authentication properly.