WooCommerce - Create Product
↩ Part of the WooCommerce integration.
Description
Section titled “Description”This module allows creating products in your WooCommerce store, including simple, variable, grouped, and external products. Supports categories, tags, images, attributes, and stock management.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
name | string | Yes | Product name |
type | string | No | simple, grouped, external, variable |
status | string | No | draft, pending, private, publish |
description | string | No | Long description (HTML) |
short_description | string | No | Short description (HTML) |
sku | string | No | Unique SKU code |
regular_price | string | No | Regular price |
sale_price | string | No | Sale price |
manage_stock | boolean | No | Manage stock |
stock_quantity | number | No | Stock quantity |
stock_status | string | No | instock, outofstock, onbackorder |
weight | string | No | Product weight |
length | string | No | Length |
width | string | No | Width |
height | string | No | Height |
categories | string/array | No | Category IDs |
tags | string/array | No | Tags |
image_url | string | No | Main image URL |
featured | boolean | No | Featured product |
Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WooCommerce store base URL | https://my-store.com |
consumer_key | REST API Consumer Key | ck_xxxx... |
consumer_secret | REST API Consumer Secret | cs_xxxx... |
Output
Section titled “Output”{ "success": true, "product": {}, "product_id": 123, "message": "Product \"Mi Producto\" created successfully"}Usage Example
Section titled “Usage Example”Simple product
Section titled “Simple product”{ "credentials_id": "woo_tienda", "name": "Camiseta Basica", "type": "simple", "regular_price": "29.99", "sku": "CAM-001", "status": "publish", "manage_stock": true, "stock_quantity": 100}Product on sale
Section titled “Product on sale”{ "credentials_id": "woo_tienda", "name": "Zapatillas Running", "regular_price": "89.99", "sale_price": "69.99", "sku": "ZAP-RUN-001", "description": "<p>Zapatillas ultraligeras para running.</p>", "status": "publish"}- The
nameis required - By default products are created as
draft - The SKU must be unique in the store
- Categories are specified by ID (number)
- Tags can be specified by name (created if they don’t exist)
- Images must be publicly accessible URLs
Related Nodes
Section titled “Related Nodes”- WooGetProducts - Get existing products
- WooUpdateProduct - Update product data
- WooGetOrders - Get orders that include products