Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Expenses → Get Expense Workflow Status

AI-generated

Overview

This node operation retrieves the workflow status of a specific expense within an account. It is useful for tracking the current state or progress of an expense approval or processing workflow in financial or accounting systems. For example, a user can check if an expense has been approved, rejected, or is still pending review.

Properties

Name Meaning
Account Id Identifier of the account to which the expense belongs.
Expense Id Identifier of the specific expense whose workflow status is being queried.

Output

The output JSON contains the workflow status details of the specified expense. This typically includes information such as the current state of the expense in the workflow (e.g., pending, approved, rejected), timestamps, and possibly metadata about the approval steps or actors involved. The node does not output binary data.

Dependencies

  • Requires an API key credential for authentication with the external service managing expenses.
  • The node uses a base URL configured via credentials to connect to the external API.
  • The underlying implementation depends on an OpenAPI specification defining the expense-related endpoints.

Troubleshooting

  • Missing or invalid Account Id or Expense Id: Ensure both identifiers are provided and correctly formatted; otherwise, the API call will fail.
  • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Network or API errors: Check connectivity and API availability; transient errors may require retries.
  • Unexpected response structure: Confirm that the external API version matches the expected schema used by the node.

Links and References

  • Refer to the external API documentation for detailed definitions of expense workflow statuses and error codes.
  • Consult n8n community forums or documentation for examples on configuring API credentials and handling common errors.

Discussion