L Linet Developers
Home / Journeys / n8n, Zapier and Make
Journey 10 · No-code automations

Connecting Linet to n8n, Zapier and Make

Linet's apps on the three automation platforms offer the same things: five triggers, five actions and four searches, all on API v2. This page covers what you need to connect, what each trigger and action does, and when a trigger fires instantly and when it checks on a schedule.

Where to get them. n8n: the community node n8n-nodes-linet (Settings → Community Nodes → Install). Zapier and Make: private apps for now, so ask Linet support for an invitation. On n8n you can also do without the node: the HTTP Request node with your key reaches every endpoint of API v2 (the last step below).

1. Make an API key

API access needs the company on the Pro plan or above. On Basic, every call is 403 plan_required with "plan": "pro", and the platform says to upgrade.

In Linet, under Settings → API keys, make a key and give it only the scopes your automations use:

To…Scopes
read and write customers, read supplierscustomers:read, customers:write, suppliers:read
read and create itemsitems:read, items:write
create draft documentsdocs:read, docs:draft
issue documentsdocs:write
instant triggers (webhooks)webhooks:read, webhooks:write
the Comments field (internal notes) of customers and documentsnotes:read, notes:write

The key acts as you, with your permissions in Linet. A user who can't create invoices in the app can't do it through a key either.

2. Connect: the key and the company

Each platform asks for three things: the API key, the company ID (calls work in one company; GET /api/v2/companies lists the companies the key can use), and the server, which you leave as https://app.linet.org.il. The connection test is GET /api/v2/me. Every call sends:

Authorization: Bearer <key>
login-company: <company id>

3. Triggers: instant or polling

TriggerInstant: the webhook eventPolling: what it reads
New customercustomer.createdGET /customers?sort=-id
Updated customercustomer.updatedGET /customers?updated_since=…
New itemitem.createdGET /items?sort=-id
Document issued (optionally of one type)document.issuedGET /documents?status=2
Payment receiveddocument.issued, receipts (8) and invoice-receipts (9)GET /documents?type_id=8 and 9

Instant triggers subscribe to Linet's webhooks when you turn the workflow on, and remove the subscription when you turn it off. They need:

  • the Gold plan or above;
  • an administrator's key with the webhook scopes;
  • on n8n, an instance reachable at a public https address.

Every delivery is signed, and the n8n trigger checks the signature.

Polling triggers work on every plan with API access (Pro and above): they check on the platform's schedule and run for what's new since the last check. When Linet refuses an instant trigger, the platform shows the reason:

Linet answersMeaning
403 plan_requiredThe company is below Gold ("plan": "gold"). Use the polling trigger.
403 forbiddenThe key's user isn't an administrator.
403 missing_scopeThe key lacks webhooks:read / webhooks:write.

4. Actions and searches

ActionCall
Create customerPOST /customers
Update customerPATCH /customers/{id}
Create itemPOST /items
Create draft documentPOST /documents {draft: true}
Create document (issued: numbered and final)POST /documents

Both document actions take Made from (references: the documents this one is made from, such as the delivery note an invoice closes) and Move stock (stock_switch). Leave Move stock empty and Linet decides as its own form does. It's off when the documents it is made from already moved the stock (a delivery note becoming an invoice), so the stock isn't moved twice, and on otherwise.

SearchBy
Find customer / suppliervat_number or email
Find itemsku
Find documenttype_id and number

A document needs its type, the customer's (or supplier's) id and at least one line: item, quantity and unit price. A Find customer step before it gives you the id.

Retries don't duplicate. Every create sends an Idempotency-Key made from the run (the n8n execution) or, on Zapier, from the Zap and what the step sends, so when a platform retries a failed step, or you replay a Zap run, Linet creates the record once and answers the repeat with the same record. Linet keeps a key 24 hours.

5. Anything else: the HTTP Request node

The apps cover the common cases. For anything else in API v2 (ledger entries, files, price lists, sending a document), call it directly. On n8n, use the HTTP Request node with the Linet API credential, or with a Header Auth credential if you skip the node:

// HTTP Request node
Method: POST
URL: https://app.linet.org.il/api/v2/documents/{{$json.id}}/send
Headers: Authorization: Bearer <key>, login-company: <company id>

Zapier's Webhooks by Zapier and Make's HTTP module work the same way. Errors always have the same shape, {"error": {"code", "message", "fields"}}, and a 429 carries Retry-After.