Package Information
Downloads: 555 weekly / 1,328 monthly
Latest Version: 0.1.21
Author: Eric Dahl
Available Nodes
Documentation
n8n-nodes-swell-is
This is an n8n community node for integrating with the Swell Backend API. It allows you to interact with Swell's e-commerce platform directly from your n8n workflows.
Swell is a headless commerce platform that provides a flexible API for managing products, orders, customers, and more.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
Product
- Create: Create a new product
- Get: Get a product by ID
- Get Many: List all products with optional filtering
- Update: Update an existing product
- Delete: Delete a product
Order
- Create: Create a new order
- Get: Get an order by ID
- Get Many: List all orders with optional status filtering
- Update: Update an existing order (status, tracking, etc.)
Customer
- Create: Create a new customer account
- Get: Get a customer by ID
- Get Many: List all customers with optional email filtering
- Update: Update an existing customer
Category
- Create: Create a new category
- Get: Get a category by ID
- Get Many: List all categories
- Update: Update an existing category
- Delete: Delete a category
Credentials
To use this node, you need to authenticate with your Swell store using Basic Authentication.
Prerequisites
- You need a Swell store account
- You need your Store ID and Secret Key
Getting Your Credentials
- Log in to your Swell dashboard
- Navigate to Settings → API
- Copy your Store ID and Secret Key
Setting Up Credentials in n8n
- When adding the Swell node to your workflow, click on Credentials
- Select Create New Credential
- Enter your:
- Store ID: Your Swell store identifier
- Secret Key: Your Swell secret key (this will be hidden for security)
- Click Save
The credentials use Basic Authentication with your Store ID as the username and Secret Key as the password.
Compatibility
- Minimum n8n version: 1.0.0
- Tested with: n8n 1.0.0+
Usage
Example: Create a Product
- Add a Swell node to your workflow
- Select Product as the resource
- Select Create as the operation
- Fill in the required fields:
- Name: Product name
- Price: Product price
- Optionally add additional fields like description, images, stock levels, etc.
- Execute the workflow
Example: Get Orders by Status
- Add a Swell node to your workflow
- Select Order as the resource
- Select Get Many as the operation
- Optionally filter by status (pending, processing, completed, etc.)
- Set pagination options (return all or limit results)
- Execute the workflow
Example: Create a Customer
- Add a Swell node to your workflow
- Select Customer as the resource
- Select Create as the operation
- Fill in the required fields:
- Email: Customer email address
- Optionally add name, phone, billing address, etc.
- Execute the workflow
Resources
- n8n community nodes documentation
- Swell Backend API Documentation
- Swell Node.js Library
- Swell Developer Portal
Testing
This project uses Vitest for testing.
Running Tests
# Run tests once
yarn test
# Run tests in watch mode
yarn test:watch
# Run tests with UI
yarn test:ui
# Run tests with coverage
yarn test:coverage
Test Structure
Tests are located alongside the source files:
credentials/**/*.test.ts- Credential testsnodes/**/*.test.ts- Node and resource tests
Version history
0.1.0
- Initial release
- Support for Products, Orders, Customers, and Categories
- Basic CRUD operations for all resources
- Basic authentication with Store ID and Secret Key
- Vitest testing setup