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 Pohoda data resources. For the Zásoby (Stock) resource with the Create Entity operation, it allows users to create new stock-related entities in Pohoda by sending structured XML requests to the Pohoda API.
Common scenarios for this node include automating stock management workflows such as adding new inventory items or updating stock records directly from n8n workflows. For example, a user could trigger this node after receiving new stock shipment data to automatically add those items into Pohoda’s stock agenda.
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 easier handling. |
These properties control how the node processes and outputs the response from the Pohoda API when creating an 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
field with the raw XML string returned by Pohoda. - Otherwise, the XML response is parsed into a JSON object representing the Pohoda response pack.
- In case of print operations (not relevant here), binary PDF data may be output.
- On success, the output JSON includes confirmation details from Pohoda about the created entity.
- On failure, the node throws an error with the message provided by Pohoda.
Dependencies
- Requires valid credentials for the Pohoda API, including base URL, username, and password.
- Uses HTTP POST requests with Basic Authentication to communicate with Pohoda’s XML API endpoint.
- Depends on external libraries for XML building and parsing, and character encoding conversion.
- The node expects the Pohoda API to support the specific XML schema for creating stock entities.
Troubleshooting
- Authentication errors: Ensure the API credentials are correct and have sufficient permissions.
- Encoding issues: If the response contains garbled characters, try toggling the UTF8 Conversion property.
- Unsupported resource or operation: The node currently supports creation only for certain resources (e.g., address book). Attempting to create entities for unsupported resources will throw an error.
- API errors: Pohoda responses with state not "ok" will cause the node to throw an error with the server-provided note. Check the note for details on what went wrong.
- Malformed input data: Ensure that the entity data passed matches Pohoda’s expected structure; otherwise, the API may reject the request.
Links and References
- Stormware Pohoda API Documentation (official resource for API schemas and usage)
- n8n HTTP Request Node Documentation (for understanding HTTP communication basics)
- iconv-lite npm package (used for character encoding conversions)
If you need a detailed explanation or example of the XML structure used for creating stock entities, please let me know!