Actions99
- Group Accounts Actions
- Group Account Codes Actions
- Accounts Actions
- Expenses Actions
- Purchase Orders Actions
- Get A List Of Purchase Orders
- Create A New Purchase Order
- Get A Purchase Order
- Update A Purchase Order
- Open A Purchase Order
- Get A List Of Purchase Orders Items For A Specific Purchase Order
- Create A Purchase Order Item
- Get A Purchase Order Item
- Update A Purchase Order Item
- Delete A Purchase Order Item
- Get A List Of Goods Received Notes For A Specific Purchase Order
- Create A Goods Received Note
- Attach A File To A Goods Received Note
- Delete A Goods Received Note
- Suppliers Actions
- Fund Accounts Actions
- Cards Actions
- Expense Categories Actions
- Tax Rates Actions
- Amortizations Actions
- Account Teams Actions
- Account Codes Actions
- External Teams Actions
- Custom Fields Actions
- Get Custom Fields
- Create A New Custom Field
- Get Custom Field
- Update Custom Field
- Delete A Custom Field And All Its Values
- Get Custom Field Values
- Create A Custom Field Value
- Delete Custom Field Values
- Get A Custom Field Value
- Update A Custom Field Value
- Delete A Custom Field Value
- Get Managers For A Specific Custom Field Value
- Adds Managers For A Specific Custom Field Value
- Replaces Managers For A Specific Custom Field Value
- Removes Managers For A Specific Custom Field Value
- Webhook Subscriptions Actions
- Group Teams Actions
Expenses → Update Expense
AI-generatedOverview
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 updated fields and any metadata returned by the external system confirming the changes. The output does not include binary data.
Dependencies
- Requires an API key credential for authenticating requests to the external service.
- The node uses a base URL configured in the credentials to send HTTP requests.
- The node depends on the external system's API supporting expense updates via REST calls.
Troubleshooting
- Missing Required Fields: If "Account Id" or "Expense Id" are not provided, the node will fail. Ensure these are set correctly.
- Invalid JSON in External Links: The "External Links" property expects valid JSON. Malformed JSON will cause parsing errors.
- Authentication Errors: If the API key or base URL is incorrect or missing, the node will return authentication failures.
- Resource Not Found: If the specified expense ID does not exist, the external API may return a 404 error.
- To resolve errors, verify all input properties, check API credentials, and confirm the expense exists in the external system.
Links and References
- Refer to the external system’s API documentation for the "Update Expense" endpoint to understand supported fields and response structure.
- n8n documentation on how to configure API credentials and use JSON input fields.