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
Overview
This node is designed to submit files related to expenses within an account management system. It allows users to upload or associate files with a specific expense record, which can be useful for attaching receipts, invoices, or other supporting documentation to expense entries. Typical use cases include automating expense report submissions, integrating with accounting workflows, or maintaining digital records of expense-related documents.
Properties
| Name | Meaning |
|---|---|
| Account Id | Identifier of the account where the expense belongs. This is a required string input. |
| Expense Id | Identifier of the specific expense to which files will be submitted. This is a required string input. |
Output
The node outputs JSON data representing the result of the file submission operation. This typically includes confirmation details such as status, identifiers of the uploaded files, or metadata about the expense after the files have been attached. If the node supports binary data output (e.g., returning the uploaded files or their previews), it would be included in the binary output field, but this is not explicitly indicated in the provided code.
Dependencies
- Requires an API key or authentication token configured in n8n credentials to interact with the external service managing expenses.
- The node depends on an external REST API described by an OpenAPI specification (
payhawk.api.json), which handles expense and file management. - Proper configuration of the base URL and authentication headers is necessary for successful API communication.
Troubleshooting
- Missing Required Fields: Ensure that both "Account Id" and "Expense Id" are provided; otherwise, the node will fail to identify the target expense.
- Authentication Errors: Verify that the API key or authentication token is correctly set up in n8n credentials and has sufficient permissions.
- API Endpoint Issues: Confirm that the base URL is correct and the external service is reachable.
- File Submission Failures: Check if the files meet any size or format restrictions imposed by the external API.
- Common error messages may relate to invalid identifiers, unauthorized access, or network connectivity problems. Resolving these usually involves validating inputs, refreshing credentials, or checking network settings.
Links and References
- No direct links were found in the source code. For more information, consult the documentation of the external expense management API or the n8n community forums for similar node usage examples.