woocommerce

n8n node to import all data from WooCommerce via the official REST API

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

  1. Create a new credential in n8n of type WooCommerce API
  2. 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)

  1. npm install
  2. npm run build
  3. To use locally inside n8n add the compiled dist folder 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

  1. Build the package with npm run build (from package root)
  2. Import the Node into n8n as a custom node package or include it in your custom nodes folder
  3. 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_data per entity. The node will include it by default; use the Fetch metadata option 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.

Discussion