Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Overview

This node operation retrieves a specific expense category by its unique identifier within a given account. It is useful in scenarios where you need to fetch detailed information about a particular expense category, for example, to display its details in a dashboard, validate its existence before processing transactions, or synchronize expense categories between systems.

Practical examples:

  • Fetching the details of an expense category to show its name and description in a financial report.
  • Validating that an expense category exists before assigning expenses to it.
  • Integrating with accounting software to update or reconcile expense categories.

Properties

Name Meaning
Account Id Identifier of the account to which the expense category belongs.
Category Id Identifier of the specific expense category to retrieve.

Output

The output contains a JSON object representing the expense category identified by the provided Category Id within the specified Account Id. This JSON typically includes fields such as the category's name, description, and any other metadata associated with the expense category.

If the node supports binary data output (not indicated here), it would represent related files or attachments linked to the expense category, but this operation focuses on JSON data only.

Dependencies

  • Requires an API key credential or similar authentication token configured in n8n to access the external service managing expense categories.
  • The node depends on a REST API endpoint that provides expense category data based on account and category identifiers.
  • Proper base URL configuration for the API endpoint is necessary in the node credentials or settings.

Troubleshooting

  • Common issues:

    • Invalid or missing Account Id or Category Id will result in errors or empty responses.
    • Authentication failures due to incorrect or expired API keys.
    • Network connectivity problems preventing access to the external API.
    • The specified expense category might not exist, leading to "not found" errors.
  • Error messages and resolutions:

    • "Unauthorized" or "Authentication failed": Verify that the API key or authentication token is correctly set up and has sufficient permissions.
    • "Not Found": Check that both Account Id and Category Id are correct and correspond to existing records.
    • "Network Error": Ensure that the n8n instance has internet access and the API endpoint URL is reachable.
    • Validation errors: Confirm that required properties are provided and formatted correctly.

Links and References

  • Refer to the external API documentation for expense categories to understand available fields and error codes.
  • n8n documentation on setting up API credentials and HTTP request nodes for further customization.

Discussion