Package Information
Downloads: 1 weekly / 16 monthly
Latest Version: 0.1.3
Documentation
n8n WooCommerce importer node
This package provides a standalone n8n node that can be used to import data from a WooCommerce store using the official WooCommerce REST API.
Features
- Fetch all Products, Orders, Customers and many resources using the WooCommerce REST API
- Automatic pagination (per_page=100) and optional limit
- Includes meta_data where present, optionally removable
- Supports custom endpoint querying (e.g.
products?status=any)
Credentials
- Create a new credential in n8n of type WooCommerce API
- Provide Base URL, Consumer Key and Consumer Secret
Important notes for Webhooks / Permissions
- To enable the node to create/delete webhooks automatically the API credentials you provide must have the permissions to manage webhooks in WooCommerce. If you use consumer key/secret issued by a user, ensure that user has the necessary REST and webhook permissions.
Build & install (local development)
- npm install
- npm run build
- To use locally inside n8n add the compiled
distfolder to your custom nodes directory or pack & install it as a custom package.
Security
- Do not commit your WooCommerce consumer key/secret. Use n8n credentials management to store them securely.
How to use
- Build the package with
npm run build(from package root) - Import the Node into n8n as a custom node package or include it in your custom nodes folder
- In a workflow, add the WooCommerce node, select Resource (Product/Order/Customer/etc.), set Execute = "Get All" and run
Triggers / Webhooks
- The node supports creating WooCommerce webhooks so n8n can receive events for Order/Customer/Product changes (e.g. order.created). When you enable the node as a Trigger in an n8n workflow it will create the webhook automatically (using the credentials) and delete it when the workflow is deactivated.
CRUD operations
- The node supports CRUD operations: Get All, Get Item (by ID), Create Item (POST), Update Item (PUT) and Delete Item (DELETE) for typical endpoints (products, orders, customers, coupons, taxes, shipping zones and more).
Examples
- See the examples folder for a few sample workflows to fetch all products, create a customer and set up an order.created webhook.
Notes
- The WooCommerce REST API typically exposes metadata within
meta_dataper entity. The node will include it by default; use theFetch metadataoption to disable it. - Some site-specific data (e.g. site Settings) may not be exposed by the default REST endpoints — use the Custom endpoint option to call any /wp-json/wc/v3/ endpoint.