Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Expenses → Get Expense Payment Details

AI-generated

Overview

This node operation retrieves detailed payment information for a specific expense within an account. It is useful in scenarios where you need to track or verify how an expense was paid, such as auditing company spending, reconciling payments, or integrating expense data into financial reports.

For example, a finance team could use this node to fetch payment details of an expense submitted by an employee to ensure it has been processed correctly before reimbursement.

Properties

Name Meaning
Account Id Identifier of the account containing the expense. This specifies which account's expense payment details to retrieve.
Expense Id Identifier of the specific expense whose payment details are being requested.

Output

The node outputs JSON data containing the payment details of the specified expense. This typically includes fields such as payment method, amount paid, date of payment, and any related transaction identifiers. The exact structure depends on the external API response but generally provides comprehensive information about how the expense was settled.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node uses a base URL configured via credentials to connect to the external API.
  • The operation relies on an OpenAPI specification bundled with the node for request construction.

Troubleshooting

  • Missing or invalid Account Id or Expense Id: Ensure both identifiers are provided and correct; otherwise, the API call will fail.
  • Authentication errors: Verify that the API key credential is set up properly and has sufficient permissions.
  • Network or API errors: Check connectivity and API availability; transient issues may cause failures.
  • Unexpected response structure: If the output JSON does not contain expected fields, confirm that the expense exists and the API version matches the node’s expectations.

Links and References

  • Refer to the external API documentation for detailed schema of expense payment details.
  • Consult n8n documentation on setting up API key credentials and configuring nodes for external APIs.

Discussion