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, enabling various operations such as exporting data, creating entities, retrieving company info, and printing reports. Specifically for the "Příjemky" (Receipts) resource with the "Print" operation, the node allows users to print a specific receipt report by providing the record ID and report ID. It generates a print request, sends it to the Pohoda API, and handles the response, which can include saving a PDF file of the printed report.
Common scenarios where this node is beneficial include automating document printing workflows within Pohoda, such as generating physical or digital copies of receipts, invoices, or other accounting documents directly from n8n workflows. For example, after processing a new receipt in Pohoda, you could automatically trigger this node to print the receipt report and save it as a PDF file.
Properties
Name | Meaning |
---|---|
ID záznamu | Item Row ID — the unique identifier of the receipt record to print. |
ID sestavy | Report ID — identifier of the report template to use for printing; found in report properties. |
Název/cesta k souboru | File name/path — path and filename where the printed report PDF will be saved (default: "n8n.pdf"). |
XML Output | Boolean flag indicating whether to output raw XML response instead of parsed data. |
UTF8 Conversion | Boolean flag to convert response encoding from Windows-1250 to UTF-8 (default: true). |
Delete File After Print | Boolean flag indicating whether to delete the generated file after printing (default: true). |
Output
The node outputs JSON data representing the response from the Pohoda API print request. If the XML Output
property is enabled, the raw XML response string is returned in the json.data
field.
If the response includes printable content (a PDF), the node outputs a binary attachment containing the PDF data with metadata:
mimeType
:"application/pdf"
fileExtension
:"pdf"
fileName
: The original filename from the response
This allows downstream nodes to access the printed report as a PDF file.
Dependencies
- Requires an API authentication credential for the Pohoda API (username and password).
- Uses HTTP requests to communicate with the Pohoda API endpoint.
- Depends on external libraries bundled with the node for XML building/parsing and character encoding conversion.
- No additional environment variables are required beyond the API credentials.
Troubleshooting
- Authentication errors: Ensure the provided API credentials are correct and have sufficient permissions.
- Invalid report or record IDs: Verify that the
recordId
andreportId
correspond to existing entries in Pohoda. - Encoding issues: If the output contains garbled characters, try toggling the
UTF8 Conversion
option. - File handling: If the file is deleted unexpectedly, check the
Delete File After Print
setting. - API errors: The node throws errors if the Pohoda API response state is not "ok", including messages from the API note field. Review these messages for details on what went wrong.
Links and References
- Stormware Pohoda Official Website
- Pohoda API documentation (not publicly linked here; consult your Pohoda account or support)
- n8n Documentation: Creating Custom Nodes