WooCommerce · Example Payload

Woocommerce Rest Api Product Input Example

A sample description

eCommerceOpen SourceOrdersProductsWordPress

Woocommerce Rest Api Product Input Example is an example object payload from WooCommerce, with 20 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

nametypestatusfeatureddescriptionshort_descriptionskuregular_pricesale_pricevirtualdownloadablemanage_stockstock_quantitystock_statusweightcategoriestagsimagesattributesmeta_data

Example Payload

Raw ↑
{
  "name": "Example Name",
  "type": "simple",
  "status": "draft",
  "featured": true,
  "description": "A sample description",
  "short_description": "A sample description",
  "sku": "string-value",
  "regular_price": "string-value",
  "sale_price": "string-value",
  "virtual": true,
  "downloadable": true,
  "manage_stock": true,
  "stock_quantity": 1,
  "stock_status": "instock",
  "weight": "string-value",
  "categories": [
    {
      "id": 1
    }
  ],
  "tags": [
    {
      "id": 1
    }
  ],
  "images": [
    "string-value"
  ],
  "attributes": [
    "string-value"
  ],
  "meta_data": [
    "string-value"
  ]
}