WooCommerce · JSON Structure

Woocommerce Store Api Store Product Attribute Structure

A global product attribute for filtering and variation selection.

Type: object Properties: 6
eCommerceOpen SourceOrdersProductsWordPress

StoreProductAttribute is a JSON Structure definition published by WooCommerce, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name taxonomy has_archives order count

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-structure/woocommerce-store-api-store-product-attribute-structure.json",
  "name": "StoreProductAttribute",
  "description": "A global product attribute for filtering and variation selection.",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Attribute unique identifier.",
      "example": 1
    },
    "name": {
      "type": "string",
      "description": "Attribute label.",
      "example": "Example Name"
    },
    "taxonomy": {
      "type": "string",
      "description": "Attribute taxonomy slug (e.g. pa_color).",
      "example": "string-value"
    },
    "has_archives": {
      "type": "boolean",
      "description": "Whether the attribute has archive pages.",
      "example": true
    },
    "order": {
      "type": "string",
      "description": "How terms in this attribute are ordered (menu_order, name, name_num, id).",
      "example": "string-value"
    },
    "count": {
      "type": "int32",
      "description": "Number of terms in this attribute.",
      "example": 1
    }
  }
}