Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Overview

This node updates an existing expense record in an external system. It is useful when you need to modify details of a previously created expense, such as correcting information or adding additional references. For example, you might update the expense to link it with new external documents or adjust its associated account.

Properties

Name Meaning
Account Id Identifier of the account to which the expense belongs.
Expense Id Identifier of the specific expense record that you want to update.
External Links An array of links to external system records related to the expense (e.g., URLs, IDs).

Output

The node outputs JSON data representing the updated expense record after the operation completes. This typically includes the expense's current state with any modifications applied. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating requests to the external service managing expenses.
  • The node uses a base URL configured via credentials to connect to the external API.
  • The node depends on the external system’s API supporting expense update operations.

Troubleshooting

  • Missing Required Fields: If "Account Id" or "Expense Id" are not provided, the node will fail because these identifiers are mandatory to locate and update the correct expense.
  • Invalid JSON in External Links: The "External Links" property expects valid JSON. Malformed JSON input will cause parsing errors.
  • API Authentication Errors: Ensure the API key or authentication token is correctly configured; otherwise, the request will be rejected.
  • Resource Not Found: If the specified expense ID does not exist, the API may return a not found error.
  • Network Issues: Connectivity problems can prevent the node from reaching the external API.

Links and References

  • Refer to the external system’s API documentation for detailed information about updating expenses and the expected structure of external links.
  • n8n documentation on how to configure API credentials and use JSON input fields.

Discussion