GreenInvoice icon

GreenInvoice

Interact with GreenInvoice API for Israeli invoicing and accounting

Actions3

Overview

This node integrates with the GreenInvoice API, a service for Israeli invoicing and accounting. Specifically, the Create Document operation under the Document resource allows users to create various types of financial documents such as invoices, receipts, orders, quotes, credit invoices, and debit invoices.

Typical use cases include automating the generation of billing documents in an accounting workflow, creating receipts after sales transactions, or issuing quotes/orders directly from an automation pipeline. For example, after receiving order details in an e-commerce system, this node can be used to automatically generate an invoice document in GreenInvoice.

Properties

Name Meaning
Document Type The type of document to create. Options: Invoice, Receipt, Order, Quote, Credit Invoice, Debit Invoice.
Document Description A textual description or notes about the document being created.
Language The language of the document. Options: Hebrew, English.

Output

The node outputs JSON data representing the response from the GreenInvoice API after creating the document. This typically includes details of the newly created document such as its ID, status, and other metadata returned by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the GreenInvoice API.
  • The node makes HTTP requests to https://api.greeninvoice.co.il/api/v1.
  • The API key must have permissions to create documents.
  • The node internally obtains a JWT token by sending the API key ID and secret to the token endpoint before making document creation requests.

Troubleshooting

  • Authentication errors: If the API key or secret is incorrect or missing, the node will fail to obtain a token, resulting in authentication errors. Verify that the correct API credentials are configured.
  • Unsupported document type: If an unsupported document type value is provided, the API may reject the request. Use one of the documented options.
  • Missing required fields: The node uses default client information ("Test Client") and some fixed values (e.g., currency "ILS", VAT type 0). If your account requires more detailed client info or different settings, the document creation might fail or produce incomplete documents.
  • API rate limits or downtime: Network issues or API limits could cause request failures. Check connectivity and API status if errors persist.

Links and References

Discussion