n8n-nodes-n8ndesigner-salla-n8nai 0.3.160 → 0.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +38 -140
- package/package.json +8 -7
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 n8n Designer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,140 +1,38 @@
|
|
|
1
|
-
# n8n
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
npm
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
##
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Updates a Salla order workflow state by slug or numeric status ID and supports an optional note (max 500 characters). Either slug or status_id is required; if both are present they are sent together.
|
|
41
|
-
|
|
42
|
-
Example curl equivalent (QA data):
|
|
43
|
-
|
|
44
|
-
`ash
|
|
45
|
-
curl -X PATCH 'https://app.n8ndesigner.com/api/actions/orders/562285006' \
|
|
46
|
-
-H 'Authorization: Bearer mak_xxxxxxxxxx' \
|
|
47
|
-
-H 'Content-Type: application/json' \
|
|
48
|
-
-d '{
|
|
49
|
-
salla_merchant_id: 1596416913,
|
|
50
|
-
slug: under_review,
|
|
51
|
-
note: Order triaged from n8n
|
|
52
|
-
}'
|
|
53
|
-
`
|
|
54
|
-
|
|
55
|
-
### Delete Customer
|
|
56
|
-
|
|
57
|
-
Permanently deletes a customer. The node sends the merchant ID in both the body and query string so it works with the current and future controllers.
|
|
58
|
-
|
|
59
|
-
`ash
|
|
60
|
-
curl -X DELETE 'https://app.n8ndesigner.com/api/actions/customers/1924459692?salla_merchant_id=1596416913' \
|
|
61
|
-
-H 'Authorization: Bearer mak_xxxxxxxxxx' \
|
|
62
|
-
-H 'Content-Type: application/json' \
|
|
63
|
-
-d '{
|
|
64
|
-
salla_merchant_id: 1596416913
|
|
65
|
-
}'
|
|
66
|
-
`
|
|
67
|
-
|
|
68
|
-
Both action nodes return a normalized payload:
|
|
69
|
-
|
|
70
|
-
`json
|
|
71
|
-
{
|
|
72
|
-
ok: true,
|
|
73
|
-
status: 200,
|
|
74
|
-
data: { ... },
|
|
75
|
-
raw: { ... }
|
|
76
|
-
}
|
|
77
|
-
`
|
|
78
|
-
|
|
79
|
-
Failures surface the backend-provided message (including Arabic validation strings) without additional wrapping, and each request times out after 12 seconds with up to two exponential retries on 429, 5xx, or transient network errors.
|
|
80
|
-
|
|
81
|
-
## Triggers
|
|
82
|
-
|
|
83
|
-
### Salla Triggers
|
|
84
|
-
|
|
85
|
-
One unified webhook node that subscribes to the full Salla event catalogue exposed by the merchant proxy. Pick the desired event from the **Trigger On** dropdown (orders, customers, products, shipping, offers, and more) and the node automatically listens on `/webhook/<auto-id>/salla/<event>`. Every delivery emits a normalized payload:
|
|
86
|
-
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"ok": true,
|
|
90
|
-
"event": "order.status.updated",
|
|
91
|
-
"merchant": "1596416913",
|
|
92
|
-
"created_at": "2025-10-26T17:49:35.000Z",
|
|
93
|
-
"data": { ... original body or body.data ... },
|
|
94
|
-
"raw": {
|
|
95
|
-
"headers": { "X-Salla-Event": "order.status.updated", ... },
|
|
96
|
-
"body": { ...full request body... },
|
|
97
|
-
"query": { ... }
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Incoming notifications are validated against the selected event, de-duplicated by `X-Salla-Event-Id` (10 minute TTL), and acknowledgements for ignored or duplicate payloads return HTTP 200 with a descriptive body.
|
|
103
|
-
|
|
104
|
-
The **Webhook Path** field is optional—leave it blank to keep the default `/salla/<event>` suffix, or provide your own (it will be slugified and appended after `/webhook/<auto-id>/` when the workflow is saved).
|
|
105
|
-
|
|
106
|
-
### Deprecated triggers
|
|
107
|
-
|
|
108
|
-
- Customer Created (Salla) — **Deprecated** (use `Salla Triggers` with `customer.created`)
|
|
109
|
-
- Order Status Updated (Salla) — **Deprecated** (use `Salla Triggers` with `order.status.updated`)
|
|
110
|
-
|
|
111
|
-
Existing workflows keep working, but new automations should migrate to **Salla Triggers**.
|
|
112
|
-
|
|
113
|
-
## Proxy Fallback Helper
|
|
114
|
-
|
|
115
|
-
For QA you can call the legacy merchant proxy through the shared helper:
|
|
116
|
-
|
|
117
|
-
` s
|
|
118
|
-
const proxyResponse = await client.proxy({
|
|
119
|
-
method: 'GET',
|
|
120
|
-
path: '/v2/customers',
|
|
121
|
-
payload: { keyword: 'test@example.com' },
|
|
122
|
-
});
|
|
123
|
-
`
|
|
124
|
-
|
|
125
|
-
The helper automatically targets POST https://app.n8ndesigner.com/api/merchant/salla and reuses the timeout and retry policy.
|
|
126
|
-
|
|
127
|
-
## Testing Notes
|
|
128
|
-
|
|
129
|
-
QA references supplied by N8NDesigner:
|
|
130
|
-
|
|
131
|
-
- SALLA_MID=1596416913
|
|
132
|
-
- ORDER_ID=562285006
|
|
133
|
-
- customer_id=1924459692
|
|
134
|
-
|
|
135
|
-
Use the action nodes to update the order to under_review (expect HTTP 200 within ~2 seconds) and to delete the disposable customer (expect HTTP 204). Trigger payload samples live under ests/Fixtures/salla/*.json (add-ons for future test automation).
|
|
136
|
-
|
|
137
|
-
## Packaging
|
|
138
|
-
|
|
139
|
-
Run
|
|
140
|
-
pm pack to produce an npm tarball suitable for publishing or direct installation inside n8n.
|
|
1
|
+
# n8n Designer – Salla Nodes (Actions + Triggers)
|
|
2
|
+
|
|
3
|
+
A community node package that lets you **receive and handle Salla webhook events** and run **Salla Actions** inside n8n workflows, with support for multi-endpoint workflows and event-based routing.
|
|
4
|
+
|
|
5
|
+
This package is built for merchants and automation builders who want to connect Salla stores to n8n with a clean, workflow-first experience.
|
|
6
|
+
|
|
7
|
+
## Key Features
|
|
8
|
+
- **Salla Trigger**: Receive Salla events inside n8n and use them to start workflows.
|
|
9
|
+
- **Salla Actions**: Perform Salla operations through configurable nodes.
|
|
10
|
+
- **Workflow-friendly design**: Designed for multi-step automations and event-based routing patterns.
|
|
11
|
+
- **Consistent node UX**: Clear node naming and grouping for easier navigation in the node list.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
### n8n Self-hosted
|
|
16
|
+
Install via npm in your n8n environment:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install n8n-nodes-n8ndesigner-salla-n8nai
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then restart n8n.
|
|
23
|
+
|
|
24
|
+
> Note: Availability in n8n Cloud depends on n8n’s community node policies.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
1. Add the **Salla Trigger** node to start a workflow from Salla events.
|
|
28
|
+
2. Add **Salla Actions** nodes to perform operations as part of the same workflow.
|
|
29
|
+
3. Use standard n8n nodes (IF, Switch, HTTP Request, Set, Code, etc.) to route and transform data.
|
|
30
|
+
|
|
31
|
+
## Support & Contact
|
|
32
|
+
- Website: https://n8ndesigner.com/
|
|
33
|
+
- Email: support@n8ndesigner.com
|
|
34
|
+
- Telegram Community: t.me/+nrnxntkvDn1kNTBk
|
|
35
|
+
- News Channel: t.me/+QPFFnJNnnrM5NmVk
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
MIT — Copyright (c) 2025 n8n Designer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-n8ndesigner-salla-n8nai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.161",
|
|
4
4
|
"description": "Salla nodes for n8n (Actions + Triggers)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"LICENSE"
|
|
14
14
|
],
|
|
15
|
-
"keywords": [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
15
|
+
"keywords": [
|
|
16
|
+
"n8ndesigner",
|
|
17
|
+
"salla-nodes",
|
|
18
|
+
"n8nai",
|
|
19
|
+
"n8n-salla",
|
|
20
|
+
"n8n-designer"
|
|
21
|
+
],
|
|
21
22
|
"author": "N8NDesigner",
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "echo \"Skipping build; dist already compiled\"",
|