Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

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 by providing the relevant account and expense identifiers.

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 fields indicating the current state of the expense in its approval or processing lifecycle. The exact structure depends on the external API response but generally provides status indicators such as "approved", "pending", "rejected", timestamps, and possibly comments or metadata related to the workflow.

No binary data output is expected from this operation.

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 operation relies on the external service's REST API endpoint that returns expense workflow statuses.

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 set up correctly and has sufficient permissions.
  • Network or connectivity issues: Confirm that the base URL is reachable and the network allows outbound requests.
  • Unexpected API responses: If the external service changes its API, the node might not parse the response correctly. Check for updates or contact support.

Links and References

  • Refer to the external expense management system’s API documentation for detailed information about the workflow status endpoint.
  • n8n documentation on creating and using API credentials.

Discussion