Description
n8n-nodes-chariow
This is an n8n community node that lets you use Chariow in your n8n workflows.
Chariow is a digital products platform that helps creators and entrepreneurs sell their content, products, and services across borders without hassle.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
npm
npm install n8n-nodes-chariow
Docker
If you’re using Docker, add the package to your n8n instance:
docker exec -it n8n npm install n8n-nodes-chariow
Then restart your n8n instance.
Operations
Chariow Node (Actions)
This node supports the following resources and operations:
#### Customer
- Get: Retrieve a customer by ID
- Get Many: List customers with optional search filter
- Get: Retrieve a product by ID
- Get Many: List products with optional filters (search, status)
- Get: Retrieve a sale by ID
- Get Many: List sales with optional filters (customerid, productid, status)
- Get: Retrieve a discount by ID or code
- Get Many: List discounts with optional filters (search, status)
- Get: Retrieve a licence by ID or key
- Get Many: List licences with optional filters (customerid, productid, search, status)
- Activate: Activate a licence with optional device information
- Revoke: Revoke a licence
- Get Activations: List activations for a licence
- Create: Create a new checkout session with optional customer info, discount code, and custom fields
- Get Info: Retrieve your store information
successful.sale– When a sale is completed successfullyabandoned.sale– When a sale is abandonedfailed.sale– When a sale failsrefunded.sale– When a sale is refundedactivated.licence– When a licence is activatedexpired.licence– When a licence expiresissued.licence– When a new licence is issuedrevoked.licence– When a licence is revoked- Tested with n8n version 1.0.0 and above
- Requires Node.js 18.10 or higher
- Node.js 18.10+
- pnpm 9.1+
- n8n installed globally (for local testing)
#### Product
#### Sale
#### Discount
#### Licence
#### Checkout
#### Store
Chariow Trigger Node (Webhooks)
Automatically start workflows when events occur in Chariow:
#### Sale Events
#### Licence Events
Credentials
To use this node, you’ll need a Chariow API key:
1. Log in to your Chariow dashboard
2. Go to Settings > API Keys
3. Create a new API key or copy an existing one
4. The API key should start with sklive (production) or sktest (testing)
Compatibility
Usage
Basic Example: Get Customer Data
1. Add the Chariow node to your workflow
2. Select Customer as the resource
3. Select Get as the operation
4. Enter the Customer ID (e.g., cus_abc123xyz)
5. Execute the node
Webhook Example: Process New Sales
1. Add the Chariow Trigger node to your workflow
2. Select Sale as the event category
3. Select Successful as the event type
4. Activate the workflow
5. The workflow will trigger whenever a new successful sale occurs
Create Checkout Example
1. Add the Chariow node to your workflow
2. Select Checkout as the resource
3. Select Create as the operation
4. Enter the Product ID
5. Optionally add customer email, discount code, or custom fields
6. Under Additional Fields, set Customer IP Address to the buyer’s IP when your trigger provides it, otherwise the sale records your n8n instance IP
7. Execute to get a checkout URL
Development
Prerequisites
Setup
Clone the repository
git clone https://github.com/Chariow/n8n-nodes.git
cd n8n-nodesInstall dependencies
pnpm installBuild the node
pnpm build
Local Testing
There are two ways to test the node locally:
#### Option 1: Using n8n-node dev (Recommended)
Build and start n8n with the custom node
pnpm test:local
This will start n8n with your custom node loaded. Access n8n at http://localhost:5678.
#### Option 2: Link to existing n8n installation
Build the node
pnpm buildLink to your global n8n
pnpm link --globalIn your n8n custom nodes directory (~/.n8n/custom)
mkdir -p ~/.n8n/custom
cd ~/.n8n/custom
pnpm link --global n8n-nodes-chariowRestart n8n
n8n start
Available Scripts
| Command | Description |
|———|————-|
| pnpm build | Build the node |
| pnpm build:watch | Build and watch for changes |
| pnpm dev | Start n8n with the custom node |
| pnpm lint | Run ESLint |
| pnpm lint:fix | Fix ESLint errors |
| pnpm format | Format code with Prettier |
| pnpm format:check | Check code formatting |
| pnpm typecheck | Run TypeScript type checking |
| pnpm test:local | Build and start n8n for testing |
Project Structure
chariow-n8n/
├── credentials/
│ └── ChariowApi.credentials.ts
├── nodes/
│ └── Chariow/
│ ├── Chariow.node.ts
│ ├── ChariowTrigger.node.ts
│ ├── shared/
│ │ ├── transport.ts
│ │ ├── utils.ts
│ │ └── descriptions.ts
│ └── resources/
│ ├── customer/
│ ├── product/
│ ├── sale/
│ ├── discount/
│ ├── licence/
│ ├── checkout/
│ └── store/
├── icons/
│ └── chariow.svg
└── dist/ # Built output
Resources
Support
For issues with this node, please open an issue on GitHub.
For questions about Chariow, contact support@chariow.com.