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, specifically enabling operations on various accounting and business document resources. For the "Interní doklady" (Internal Documents) resource with the "Create Entity" operation, it allows users to create new internal document entries in Pohoda by sending structured XML requests to the Pohoda API.
Common scenarios for this node include automating the creation of internal company documents such as internal memos, notes, or other internal records that need to be tracked within Pohoda. For example, a user might automate the generation of internal expense reports or internal transfer documents directly from their workflow.
Properties
Name | Meaning |
---|---|
XML Output | If enabled (true ), the node returns the raw XML response from Pohoda instead of parsed JSON. |
UTF8 Conversion | If enabled (true ), converts the response encoding from Windows-1250 to UTF-8 for proper character display. |
These properties control how the response data is returned and encoded.
Additionally, for the "Create Entity" operation on the "Interní doklady" resource, the node expects an input collection named createEntity
containing fields describing the internal document details. These fields typically include company name, address, contact info, notes, and other relevant metadata needed to create the internal document entity.
Output
The node outputs an array of items corresponding to each input item processed:
- If XML Output is enabled, the output contains a JSON object with a
data
field holding the raw XML string response from Pohoda. - Otherwise, the output contains parsed JSON objects representing the response data extracted from Pohoda's XML response.
- In some cases (e.g., print operations), the node can output binary data such as PDF files attached to the response.
- Each output item is paired with its corresponding input item for traceability.
Dependencies
- Requires valid credentials for Pohoda API access, including base URL, username, and password.
- Uses HTTP POST requests with XML payloads to communicate with the Pohoda API endpoint.
- Depends on external libraries for XML building and parsing, and for character encoding conversion.
- The node requires configuration of an API authentication token or credentials in n8n to authorize requests.
Troubleshooting
- Authentication errors: Ensure the provided API credentials are correct and have sufficient permissions.
- Encoding issues: If special characters appear garbled, verify the UTF8 Conversion property is set appropriately.
- Unsupported resource or operation: The node throws errors if an unsupported resource or operation is selected; confirm the resource-operation combination is implemented.
- API errors: Pohoda API responses with error states will cause the node to throw errors with messages from the API; check the message for details.
- Network issues: Verify network connectivity to the Pohoda API endpoint and that firewall rules allow outbound requests.
Links and References
- Stormware Pohoda API Documentation (official API docs)
- n8n HTTP Request Node Documentation (for understanding HTTP request handling)
- iconv-lite npm package (used for encoding conversions)
- xmlbuilder2 npm package (used for XML construction and parsing)