linet

Linet (Israeli accounting and invoicing) for n8n: customers, items and documents; triggers on new customers, items, issued documents and payments.

Documentation

n8n-nodes-linet

Linet, the Israeli accounting and invoicing app, for n8n.

Install

In n8n: Settings → Community Nodes → Install, and enter n8n-nodes-linet.

Connect

You need a Linet API key. Create it in Linet under Settings → API keys, with the scopes your workflows use:

To... Scopes
read and write customers / suppliers customers:read, customers:write, suppliers:read
read and create items items:read, items:write
create documents docs:read, docs:draft (drafts) or docs:write (issued)
instant triggers webhooks:read, webhooks:write

In n8n, add a Linet API credential with:

  • the key;
  • the company ID (GET /api/v2/companies lists the companies the key can use);
  • the server, which stays as it is.

Nodes

Linet (actions and searches)

Resource Operations
Customer Create, Update, Get, Find (by VAT number or email)
Supplier Get, Find (by VAT number or email)
Item Create, Get, Find (by SKU)
Document Create (draft, or issued; Made From document IDs and Move Stock in Additional Fields), Get, Find (by type and number)

A create made twice by a retried execution makes one record: each create sends an Idempotency-Key.

Linet Trigger (instant) and Linet Polling Trigger offer the same five triggers: new customer, updated customer, new item, document issued (optionally of one type), and payment received (receipts and invoice-receipts).

  • Linet Trigger subscribes to Linet's webhooks when the workflow is activated, and removes the subscription when it is deactivated. Every delivery's signature is checked. It needs:
    • the Gold plan or above;
    • an administrator's key with the webhooks scopes;
    • n8n reachable at a public https address.
  • Linet Polling Trigger works on every plan. It checks Linet on the schedule you set and starts the workflow for what is new since the last check. The first check only takes note, so activating a workflow doesn't replay history.

API

Both nodes use Linet's public API v2: https://developer.linet.app. To call anything else the API offers, use n8n's HTTP Request node with the same Linet API credential.

Development

npm install
npm run build   # syncs integrations/operations.json, compiles, copies icons
npm run lint
npm test

The triggers, actions and searches come from integrations/operations.json in the Linet repository. Zapier and Make read the same file, and a server test keeps it in step with the API spec.

Discussion