{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trychannel3-com/json-schema/trychannel3-com-product-schema.json",
  "title": "Product",
  "description": "Product with detailed information.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trychannel3-com-openapi.json#/components/schemas/Product",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "brands": {
      "items": {
        "$ref": "#/$defs/ProductBrand"
      },
      "type": "array",
      "title": "Brands",
      "description": "Ordered list of brands."
    },
    "images": {
      "items": {
        "$ref": "#/$defs/ProductImage"
      },
      "type": "array",
      "title": "Images",
      "default": []
    },
    "category": {
      "anyOf": [
        {
          "$ref": "#/$defs/CategorySummary"
        },
        {
          "type": "null"
        }
      ],
      "description": "The single category this product belongs to, as a structured `CategorySummary` (slug, title, path, has_children)."
    },
    "gender": {
      "anyOf": [
        {
          "$ref": "#/$defs/Gender"
        },
        {
          "type": "null"
        }
      ]
    },
    "age": {
      "anyOf": [
        {
          "$ref": "#/$defs/Age"
        },
        {
          "type": "null"
        }
      ],
      "description": "Target age group. Age-agnostic products are typically returned as 'adult'."
    },
    "materials": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Materials"
    },
    "key_features": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Key Features"
    },
    "colors": {
      "items": {
        "$ref": "#/$defs/ProductColor"
      },
      "type": "array",
      "title": "Colors",
      "description": "Colors of the product's sticker (else its cleaned main image), ordered by pixel share (descending)."
    },
    "sticker_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sticker Url",
      "description": "Square transparent-background image of the product, suited to variant pickers. Null when the product has no qualifying image."
    },
    "offers": {
      "items": {
        "$ref": "#/$defs/ProductOffer"
      },
      "type": "array",
      "title": "Offers",
      "description": "All merchant offers for this product in the requested locale."
    },
    "variants": {
      "anyOf": [
        {
          "$ref": "#/$defs/Variants"
        },
        {
          "type": "null"
        }
      ],
      "description": "Variant interaction state — options, selected. Absent when the product has no variations."
    },
    "structured_attributes": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "type": "object",
      "title": "Structured Attributes",
      "description": "Structured attributes extracted for this product, keyed by attribute handle (e.g. 'color', 'material'). Values are the canonical allowed values for that handle."
    },
    "ratings": {
      "anyOf": [
        {
          "$ref": "#/$defs/ProductRatings"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cross-merchant rating rollup. Null when no merchant has a usable product rating."
    }
  },
  "type": "object",
  "required": [
    "id",
    "title"
  ],
  "$defs": {
    "Age": {
      "type": "string",
      "enum": [
        "newborn",
        "infant",
        "toddler",
        "kids",
        "adult"
      ],
      "title": "Age"
    },
    "ApiProductImageType": {
      "type": "string",
      "enum": [
        "hero",
        "lifestyle",
        "on_model",
        "detail",
        "scale_reference",
        "angle_view",
        "flat_lay",
        "in_use",
        "packaging",
        "size_chart",
        "product_information",
        "merchant_information"
      ],
      "title": "ApiProductImageType",
      "description": "Product image type classification for API responses."
    },
    "CategoryRef": {
      "properties": {
        "slug": {
          "type": "string",
          "title": "Slug",
          "description": "URL-friendly slug (e.g. 'sofas')"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Human-readable category title"
        }
      },
      "type": "object",
      "required": [
        "slug",
        "title"
      ],
      "title": "CategoryRef",
      "description": "Lean reference to a category, used in path and children arrays."
    },
    "CategorySummary": {
      "properties": {
        "slug": {
          "type": "string",
          "title": "Slug",
          "description": "URL-friendly slug (e.g. 'sofas')"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Human-readable category title"
        },
        "path": {
          "items": {
            "$ref": "#/$defs/CategoryRef"
          },
          "type": "array",
          "title": "Path",
          "description": "Hierarchical path as a structured list, root first; the last entry is this category itself"
        },
        "has_children": {
          "type": "boolean",
          "title": "Has Children",
          "description": "Whether this category has subcategories"
        }
      },
      "type": "object",
      "required": [
        "slug",
        "title",
        "has_children"
      ],
      "title": "CategorySummary",
      "description": "Lean category representation used in search hits and list rows."
    },
    "Condition": {
      "type": "string",
      "enum": [
        "new",
        "used"
      ],
      "title": "Condition",
      "description": "Offer condition. 'refurbished' is deprecated: rejected as a filter value,\ncoerced to None on responses."
    },
    "Dimensions": {
      "properties": {
        "length": {
          "anyOf": [
            {
              "$ref": "#/$defs/LengthDimension"
            },
            {
              "type": "null"
            }
          ]
        },
        "width": {
          "anyOf": [
            {
              "$ref": "#/$defs/LengthDimension"
            },
            {
              "type": "null"
            }
          ]
        },
        "height": {
          "anyOf": [
            {
              "$ref": "#/$defs/LengthDimension"
            },
            {
              "type": "null"
            }
          ]
        },
        "weight": {
          "anyOf": [
            {
              "$ref": "#/$defs/WeightDimension"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "title": "Dimensions",
      "description": "Physical dimensions of a product offer. Members are null when unknown.\n\nValues are standardized to the supported unit set; a merchant-stated value\nwhose unit is not one of those units is omitted rather than shown."
    },
    "Gender": {
      "type": "string",
      "enum": [
        "male",
        "female"
      ],
      "title": "Gender",
      "description": "Product gender. 'unisex' is deprecated: coerced to None on input, never emitted."
    },
    "LengthDimension": {
      "properties": {
        "number": {
          "type": "number",
          "title": "Number"
        },
        "unit": {
          "$ref": "#/$defs/LengthUnit",
          "description": "The unit from the request's dimension filters when one was given (the value is converted to it); otherwise the unit the merchant stated."
        }
      },
      "type": "object",
      "required": [
        "number",
        "unit"
      ],
      "title": "LengthDimension",
      "description": "A length measurement, in one of the supported length units."
    },
    "LengthUnit": {
      "type": "string",
      "enum": [
        "mm",
        "cm",
        "m",
        "in",
        "ft"
      ],
      "title": "LengthUnit"
    },
    "Money": {
      "properties": {
        "amount": {
          "type": "number",
          "title": "Amount",
          "description": "Amount in the given currency."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "ISO 4217 currency code, like USD, EUR or GBP."
        }
      },
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "title": "Money",
      "description": "An amount of money in a currency."
    },
    "OfferAvailabilityStatus": {
      "type": "string",
      "enum": [
        "InStock",
        "OutOfStock"
      ],
      "title": "OfferAvailabilityStatus",
      "description": "The two availability values the public API emits on offers.\n\nInternal ``AvailabilityStatus`` values are collapsed to these via\n``AvailabilityStatus.to_api()``."
    },
    "OfferRefundType": {
      "type": "string",
      "enum": [
        "full_refund",
        "store_credit",
        "exchange"
      ],
      "title": "OfferRefundType",
      "description": "A form of refund a merchant offers for a return."
    },
    "OfferReturnMethod": {
      "type": "string",
      "enum": [
        "mail",
        "in_store",
        "drop_off",
        "kiosk"
      ],
      "title": "OfferReturnMethod",
      "description": "A way a shopper can send a return back to the merchant."
    },
    "OfferReturnOption": {
      "properties": {
        "window_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Window Days",
          "description": "Return window, in days as stated by the merchant (business or calendar days are not distinguished). Null when not stated."
        },
        "free": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Free",
          "description": "Whether returns under these terms cost the shopper nothing. Null when not stated."
        },
        "return_fee": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Return shipping fee charged to the shopper. Null when not stated, or not stated in the offer's currency."
        },
        "restocking_fee_percent": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Restocking Fee Percent",
          "description": "Restocking fee in percentage points of the item price (15 means 15%). Null when not stated."
        },
        "restocking_fee_amount": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Restocking fee as a fixed amount. Null when not stated, or not stated in the offer's currency."
        },
        "refund_types": {
          "items": {
            "$ref": "#/$defs/OfferRefundType"
          },
          "type": "array",
          "title": "Refund Types",
          "description": "Forms of refund offered. Empty when not stated."
        },
        "return_methods": {
          "items": {
            "$ref": "#/$defs/OfferReturnMethod"
          },
          "type": "array",
          "title": "Return Methods",
          "description": "Ways the shopper can send the item back. Empty when not stated."
        }
      },
      "type": "object",
      "title": "OfferReturnOption",
      "description": "One set of return terms the merchant offers in the offer's market."
    },
    "OfferReturnPolicy": {
      "properties": {
        "accepted": {
          "type": "boolean",
          "title": "Accepted",
          "description": "Whether the merchant accepts returns."
        },
        "window_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Window Days",
          "description": "Shortest stated return window, in days as stated by the merchant (business or calendar days are not distinguished). Null when not stated."
        },
        "window_unlimited": {
          "type": "boolean",
          "title": "Window Unlimited",
          "description": "Whether returns are accepted with no time limit.",
          "default": false
        },
        "free": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Free",
          "description": "Whether returns cost the shopper nothing: false when any stated terms charge a fee. Null when not stated."
        },
        "return_fee": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Highest stated return shipping fee. Null when not stated, or not stated in the offer's currency."
        },
        "restocking_fee": {
          "type": "boolean",
          "title": "Restocking Fee",
          "description": "True when the merchant states a restocking fee. False when none is stated.",
          "default": false
        },
        "refund_types": {
          "items": {
            "$ref": "#/$defs/OfferRefundType"
          },
          "type": "array",
          "title": "Refund Types",
          "description": "Forms of refund offered under every set of terms. Empty when not stated or not shared by every set of terms."
        },
        "return_methods": {
          "items": {
            "$ref": "#/$defs/OfferReturnMethod"
          },
          "type": "array",
          "title": "Return Methods",
          "description": "Ways to send the item back offered under every set of terms. Empty when not stated or not shared by every set of terms."
        },
        "options": {
          "items": {
            "$ref": "#/$defs/OfferReturnOption"
          },
          "type": "array",
          "title": "Options",
          "description": "Each distinct set of return terms, shortest window first."
        }
      },
      "type": "object",
      "required": [
        "accepted"
      ],
      "title": "OfferReturnPolicy",
      "description": "The merchant's return terms for this offer's market, summarized from its published policies."
    },
    "OfferShippingOption": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "Service name as the merchant states it, like Standard or Express. Null when not stated."
        },
        "cost": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Cost of this service in the offer's currency. Null when not stated, or not stated in the offer's currency."
        },
        "free_minimum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Order value at which this service ships free; 0 when it always ships free. Null when not stated, or not stated in the offer's currency."
        },
        "delivery_days_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Delivery Days Max",
          "description": "Upper bound of this service's stated transit time, in days as stated by the merchant (business or calendar days are not distinguished), excluding handling. Null when not stated."
        },
        "delivery_days_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Delivery Days Min",
          "description": "Lower bound of this service's stated transit time, in days as stated by the merchant (business or calendar days are not distinguished), excluding handling, rounded down to whole days; 0 when the stated minimum is under a day. Null when the merchant states no range or the range cannot be read."
        }
      },
      "type": "object",
      "title": "OfferShippingOption",
      "description": "One shipping service the merchant offers in the offer's market."
    },
    "OfferShippingPolicy": {
      "properties": {
        "free_shipping_minimum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Lowest order value at which a shipping option is free; 0 when shipping is always free. Null when no free-shipping threshold is known in the offer's currency."
        },
        "shipping_cost": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Lowest paid shipping rate the merchant states, in the offer's currency. Null when standard shipping is always free, or no rate is stated in the offer's currency."
        },
        "delivery_days_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Delivery Days Max",
          "description": "Upper bound of the slowest service's stated transit time, in days as stated by the merchant (business or calendar days are not distinguished), excluding handling. Null when not stated."
        },
        "fastest_delivery_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fastest Delivery Days",
          "description": "Lowest upper bound of stated transit time across services, in days as stated by the merchant (business or calendar days are not distinguished), excluding handling. Null when not stated."
        },
        "options": {
          "items": {
            "$ref": "#/$defs/OfferShippingOption"
          },
          "type": "array",
          "title": "Options",
          "description": "Shipping services, standard service first, then by transit time."
        }
      },
      "type": "object",
      "title": "OfferShippingPolicy",
      "description": "The merchant's shipping terms for this offer's market, summarized from its published policies."
    },
    "OptionValue": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "The display value of the option value (e.g. 'Blue')"
        },
        "exists": {
          "type": "boolean",
          "title": "Exists",
          "description": "Whether the option value exists on the product, or is a configuration only present on another variant of the same product. For example, a shirt that comes in multiple colors, but only one color is available in Size XL."
        },
        "available": {
          "anyOf": [
            {
              "$ref": "#/$defs/OfferAvailabilityStatus"
            },
            {
              "type": "null"
            }
          ],
          "description": "The availability status of the option value. None when returned on search results, hydrated only on get product detail requests."
        },
        "thumbnail_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Thumbnail Url",
          "description": "For options that reference different products, this is the URL of the thumbnail image for the option value. E.g., a shoe that comes in multiple colors will have an OptionValue for each color with a thumbnail_url set."
        },
        "product_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Product Id",
          "description": "The product id that represents this value. Variants that point to different products will have this field set, as well as thumbnail_url for displaying selector icons."
        }
      },
      "type": "object",
      "required": [
        "label",
        "exists"
      ],
      "title": "OptionValue",
      "description": "One value of one variant option (e.g. 'Blue' under 'Color')"
    },
    "Price": {
      "properties": {
        "price": {
          "type": "number",
          "title": "Price",
          "description": "The current price of the product, including any discounts."
        },
        "compare_at_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Compare At Price",
          "description": "The original price of the product before any discounts."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "The currency code of the product, like USD, EUR, GBP, etc."
        }
      },
      "type": "object",
      "required": [
        "price",
        "currency"
      ],
      "title": "Price"
    },
    "ProductBrand": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "ProductBrand"
    },
    "ProductColor": {
      "properties": {
        "hex": {
          "type": "string",
          "title": "Hex",
          "description": "sRGB hex string, e.g. '#a1b2c3'"
        },
        "percentage": {
          "type": "number",
          "title": "Percentage",
          "description": "Fraction of foreground pixels in [0, 1]; 1.0 is 100%."
        }
      },
      "type": "object",
      "required": [
        "hex",
        "percentage"
      ],
      "title": "ProductColor",
      "description": "A color of the cleaned main product image; visual share, not composition or the Color variant axis."
    },
    "ProductImage": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "cleaned_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cleaned Url",
          "description": "Background-removed square image on Channel3 CDN when available. Use for product grids; ``url`` is the regular hosted shot."
        },
        "is_main_image": {
          "type": "boolean",
          "title": "Is Main Image",
          "default": false
        },
        "shot_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/ApiProductImageType"
            },
            {
              "type": "null"
            }
          ]
        },
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alt Text"
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "ProductImage",
      "description": "Product image with metadata."
    },
    "ProductOffer": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "domain": {
          "type": "string",
          "title": "Domain"
        },
        "price": {
          "$ref": "#/$defs/Price"
        },
        "availability": {
          "$ref": "#/$defs/OfferAvailabilityStatus"
        },
        "condition": {
          "anyOf": [
            {
              "$ref": "#/$defs/Condition"
            },
            {
              "type": "null"
            }
          ],
          "description": "Condition of this merchant offer (new or used). Null when condition is unknown."
        },
        "max_commission_rate": {
          "type": "number",
          "title": "Max Commission Rate",
          "description": "The maximum commission rate for the merchant, as a decimal fraction: 0 is no commission, 0.5 is 50% commission. 'Max' because the actual commission rate may be lower due to vendor-specific affiliate rules.",
          "default": 0.0
        },
        "dimensions": {
          "anyOf": [
            {
              "$ref": "#/$defs/Dimensions"
            },
            {
              "type": "null"
            }
          ],
          "description": "Physical dimensions of this offer. Null when unknown."
        },
        "shipping_policy": {
          "anyOf": [
            {
              "$ref": "#/$defs/OfferShippingPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "The merchant's shipping terms for this offer. Returned by /v1/search and /v1/products/{id}. Null on other endpoints and when the merchant's terms are unknown."
        },
        "return_policy": {
          "anyOf": [
            {
              "$ref": "#/$defs/OfferReturnPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "The merchant's return terms for this offer. Returned by /v1/search and /v1/products/{id}. Null on other endpoints and when the merchant's terms are unknown."
        }
      },
      "type": "object",
      "required": [
        "url",
        "domain",
        "price",
        "availability"
      ],
      "title": "ProductOffer"
    },
    "ProductRatings": {
      "properties": {
        "value": {
          "type": "number",
          "title": "Value",
          "description": "Average on a 0–5 scale, weighted by each merchant's review count."
        },
        "count": {
          "type": "integer",
          "title": "Count",
          "description": "Total review count after collapsing identical merchant pools."
        },
        "source_count": {
          "type": "integer",
          "title": "Source Count",
          "description": "Distinct merchant rating pools that contributed."
        }
      },
      "type": "object",
      "required": [
        "value",
        "count",
        "source_count"
      ],
      "title": "ProductRatings",
      "description": "Count-weighted rating rollup across merchants that sell this product."
    },
    "SelectedOption": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the selected option (e.g. 'Color', 'Size')"
        },
        "label": {
          "type": "string",
          "title": "Label",
          "description": "The display value of the selected option (e.g. 'Blue', 'XL')"
        }
      },
      "type": "object",
      "required": [
        "name",
        "label"
      ],
      "title": "SelectedOption",
      "description": "One effective selection on a product, post server-side relaxation."
    },
    "VariantOption": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the option (e.g. 'Color', 'Size')"
        },
        "values": {
          "items": {
            "$ref": "#/$defs/OptionValue"
          },
          "type": "array",
          "title": "Values",
          "description": "The values of the option (e.g. ['Blue', 'Red', 'Green'])"
        }
      },
      "type": "object",
      "required": [
        "name",
        "values"
      ],
      "title": "VariantOption",
      "description": "One dimension of a product family (e.g. 'Color', 'Size')."
    },
    "Variants": {
      "properties": {
        "options": {
          "items": {
            "$ref": "#/$defs/VariantOption"
          },
          "type": "array",
          "title": "Options"
        },
        "selected": {
          "items": {
            "$ref": "#/$defs/SelectedOption"
          },
          "type": "array",
          "title": "Selected"
        }
      },
      "type": "object",
      "required": [
        "options",
        "selected"
      ],
      "title": "Variants",
      "description": "Wrapper for variant-interaction state on a Product.\n\nHolds `options` and `selected`. `options` represent all of the\nconfiguration options for the product. `selected` represents the\ncurrently selected option values."
    },
    "WeightDimension": {
      "properties": {
        "number": {
          "type": "number",
          "title": "Number"
        },
        "unit": {
          "$ref": "#/$defs/WeightUnit",
          "description": "The unit from the request's dimension filters when one was given (the value is converted to it); otherwise the unit the merchant stated."
        }
      },
      "type": "object",
      "required": [
        "number",
        "unit"
      ],
      "title": "WeightDimension",
      "description": "A weight measurement, in one of the supported weight units."
    },
    "WeightUnit": {
      "type": "string",
      "enum": [
        "mg",
        "g",
        "kg",
        "oz",
        "lb"
      ],
      "title": "WeightUnit"
    }
  }
}