Skip to content

WooCommerce - Create Product

↩ Part of the WooCommerce integration.

This module allows creating products in your WooCommerce store, including simple, variable, grouped, and external products. Supports categories, tags, images, attributes, and stock management.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
namestringYesProduct name
typestringNosimple, grouped, external, variable
statusstringNodraft, pending, private, publish
descriptionstringNoLong description (HTML)
short_descriptionstringNoShort description (HTML)
skustringNoUnique SKU code
regular_pricestringNoRegular price
sale_pricestringNoSale price
manage_stockbooleanNoManage stock
stock_quantitynumberNoStock quantity
stock_statusstringNoinstock, outofstock, onbackorder
weightstringNoProduct weight
lengthstringNoLength
widthstringNoWidth
heightstringNoHeight
categoriesstring/arrayNoCategory IDs
tagsstring/arrayNoTags
image_urlstringNoMain image URL
featuredbooleanNoFeatured product
FieldDescriptionExample
urlWooCommerce store base URLhttps://my-store.com
consumer_keyREST API Consumer Keyck_xxxx...
consumer_secretREST API Consumer Secretcs_xxxx...
{
"success": true,
"product": {},
"product_id": 123,
"message": "Product \"Mi Producto\" created successfully"
}
{
"credentials_id": "woo_tienda",
"name": "Camiseta Basica",
"type": "simple",
"regular_price": "29.99",
"sku": "CAM-001",
"status": "publish",
"manage_stock": true,
"stock_quantity": 100
}
{
"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 name is 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
  • WooGetProducts - Get existing products
  • WooUpdateProduct - Update product data
  • WooGetOrders - Get orders that include products