Actions76
- Faktury Actions
- Příjemky Actions
- Prodejky Actions
- Objednávky Actions
- Výdejky Actions
- Pokladní doklady Actions
- Nabídky Actions
- Výroba Actions
- Interní doklady Actions
- Poptávky Actions
- Převod Actions
- Banka Actions
- Zakázky Actions
- Pohyby Actions
- Účetní deník (PÚ) Actions
- Adresy Actions
- Zásoby Actions
- Prodejní ceny Actions
Overview
This node integrates with the Stormware Pohoda accounting system, allowing users to perform various operations such as exporting data, creating entities, printing reports, and retrieving company information. Specifically, for the "Příjemky" resource and the "Company Info" operation, the node fetches detailed company information from the Pohoda system.
Common scenarios where this node is beneficial include automating data retrieval from Pohoda for accounting or inventory management, generating reports, or synchronizing company details with other systems. For example, a user might use this node to automatically pull updated company info to keep their CRM system in sync or to verify company details before processing invoices.
Properties
Name | Meaning |
---|---|
XML Output | If true, returns the raw XML response as a string; if false, returns parsed JSON object. |
UTF8 Conversion | If true, converts the response encoding from Windows-1250 to UTF-8 for proper text display. |
Output
The output depends on the "XML Output" property:
- If XML Output is enabled (
true
), the node outputs a JSON object with adata
field containing the raw XML response as a UTF-8 string. - If XML Output is disabled (
false
), the node parses the XML response into a JSON object and outputs themServer
part of the response, which contains detailed company information structured as JSON.
The output is paired with the input item index for traceability.
No binary data output is produced by the "Company Info" operation.
Dependencies
- Requires an API key credential for authenticating with the Pohoda API.
- The node makes HTTP requests to the Pohoda API base URL provided in the credentials.
- Uses external libraries for XML building/parsing and character encoding conversion (e.g.,
iconv-lite
,xmlbuilder2
).
Troubleshooting
- Encoding issues: If the company info contains garbled characters, ensure that the "UTF8 Conversion" property is enabled to properly convert Windows-1250 encoded responses to UTF-8.
- Authentication errors: If the node fails with authorization errors, verify that the API credentials (username and password) are correct and have sufficient permissions.
- API errors: The node throws errors if the Pohoda API response state is not "ok". The error message from the API is included in the node error. Check the API documentation or server logs for more details.
- Network issues: Ensure the Pohoda API base URL is reachable from the n8n environment and no firewall or proxy blocks the connection.
Links and References
- Stormware Pohoda API Documentation (official developer resources)
- n8n HTTP Request Node Documentation (for understanding HTTP request options)
- iconv-lite GitHub Repository (character encoding conversions)
- xmlbuilder2 GitHub Repository (XML parsing and building)