Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Expense Categories → Get A List Of All Available Expense Categories

AI-generated

Overview

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.

Discussion