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.
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).
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 suppliers | customers:read, customers:write, suppliers:read |
| read and create items | items:read, items:write |
| create draft documents | docs:read, docs:draft |
| issue documents | docs:write |
| instant triggers (webhooks) | webhooks:read, webhooks:write |
| the Comments field (internal notes) of customers and documents | notes: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.
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>
| Trigger | Instant: the webhook event | Polling: what it reads |
|---|---|---|
| New customer | customer.created | GET /customers?sort=-id |
| Updated customer | customer.updated | GET /customers?updated_since=… |
| New item | item.created | GET /items?sort=-id |
| Document issued (optionally of one type) | document.issued | GET /documents?status=2 |
| Payment received | document.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:
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 answers | Meaning |
|---|---|
| 403 plan_required | The company is below Gold ("plan": "gold"). Use the polling trigger. |
| 403 forbidden | The key's user isn't an administrator. |
| 403 missing_scope | The key lacks webhooks:read / webhooks:write. |
| Action | Call |
|---|---|
| Create customer | POST /customers |
| Update customer | PATCH /customers/{id} |
| Create item | POST /items |
| Create draft document | POST /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.
| Search | By |
|---|---|
| Find customer / supplier | vat_number or email |
| Find item | sku |
| Find document | type_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.
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.
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.