Actions20
Overview
The node integrates with the iCount accounting system to manage various document-related operations. Specifically, the "Update Income Type" operation allows users to modify the income type associated with a particular document. This is useful in scenarios where the classification of income for a document needs correction or updating, such as adjusting tax categories or financial reporting classifications.
Practical examples:
- Updating the income type of an invoice after receiving additional information about the transaction.
- Changing the income category of a receipt to reflect a new business line or service.
- Automatically creating a new income type if it does not exist when updating a document.
Properties
| Name | Meaning |
|---|---|
| Document Type | The type of the document to update (loaded dynamically from iCount). |
| Document Number | The unique number identifying the document to update. |
| Income Type | Choose whether to specify the income type by its ID or by its name. |
| Income Type ID | The numeric identifier of the income type (used if "Income Type" is set to "ID"). |
| Income Type Name | The name of the income type (used if "Income Type" is set to "Name"). If it doesn't exist, it will be created automatically. |
Output
The node outputs JSON data representing the result of the update operation on the document's income type. This typically includes confirmation details or the updated document data returned from the iCount API.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the iCount API via an API key credential.
- The node uses HTTP POST requests to interact with the iCount API endpoints.
- The user must configure the node with valid API credentials that allow document modification permissions.
Troubleshooting
- Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Specifying a non-existent document type or document number may result in errors indicating the document was not found.
- Providing an invalid income type ID or name could lead to failure in updating the document.
- Error messages and resolutions:
"Unknown operation": Ensure the selected operation matches one supported by the node.- API errors related to authorization: Verify the API key is correct and has sufficient permissions.
- Errors about missing required parameters: Confirm all mandatory fields (Document Type, Document Number, Income Type) are provided.
- If specifying income type by name and the name is invalid or empty, the system attempts to create it; failure here might indicate permission issues or invalid input.
Links and References
- iCount API Documentation (for detailed API usage and endpoints)
- n8n documentation on creating custom nodes