WishlistItem
Type: schema
TypeScript Definition
typescript
WishlistItem: {{
product_id: string
}OpenAPI Schema
json
{
"title": "WishlistItem",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/WishlistItem",
"description": "API reference for the WishlistItem schema"
},
"required": [
"product_id",
"variant_id",
"sku",
"product_name",
"variant_name",
"product_type",
"short_description",
"active",
"stock_available",
"on_subscription",
"on_promotion",
"category_ids",
"tags",
"reviews_count",
"reviews_rating_sum",
"pricing",
"promotion",
"subscription",
"associated_options"
],
"properties": {
"product_id": {
"type": "string"
},
"variant_id": {
"type": [
"string",
"null"
]
},
"sku": {
"type": [
"string",
"null"
]
},
"product_slug": {
"type": "string"
},
"variant_slug": {
"type": [
"string",
"null"
]
},
"product_name": {
"type": "string"
},
"variant_name": {
"type": [
"string",
"null"
]
},
"product_type": {
"type": "string",
"enum": [
"physical",
"digital",
"bundle"
],
"examples": [
"physical"
]
},
"short_description": {
"type": [
"string",
"null"
]
},
"active": {
"type": "boolean"
},
"stock_available": {
"type": "boolean"
},
"on_subscription": {
"type": "boolean"
},
"on_promotion": {
"type": "boolean"
},
"category_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"categories": {
"description": "Expanded category objects.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Category"
}
},
"tags": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"reviews_count": {
"description": "Number of approved reviews; pending, rejected and archived reviews are excluded.",
"type": "integer"
},
"reviews_rating_sum": {
"description": "Sum of approved review ratings, preserving fractional ratings. Zero when there are no approved reviews. Divide by reviews_count when nonzero to compute the average.",
"type": [
"number",
"null"
],
"format": "double"
},
"attributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProductAttribute"
}
},
"images": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProductImage"
}
},
"pricing": {
"description": "Pricing for the applicable customer group. `null` when no pricing is configured.",
"oneOf": [
{
"$ref": "#/components/schemas/ProductPricing"
},
{
"type": "null"
}
]
},
"promotion": {
"$ref": "#/components/schemas/ProductPromotion"
},
"subscription": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProductSubscription"
}
},
"associated_options": {
"oneOf": [
{
"$ref": "#/components/schemas/AssociatedOption",
"description": "Used when `variant_id` is not null."
},
{
"type": "null",
"description": "Null when `variant_id` is null."
}
]
},
"shipping": {
"$ref": "#/components/schemas/ProductShipping"
},
"slug": {
"description": "Slug of the returned entity (variant slug when `variant_id` is set, otherwise the product slug).",
"type": "string"
},
"metadata": {
"description": "Freeform metadata key/value map.",
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"seo": {
"oneOf": [
{
"$ref": "#/components/schemas/Seo"
},
{
"type": "null"
}
]
},
"hsn_code": {
"description": "HSN/SAC tax classification code. `null` when not configured.",
"type": [
"string",
"null"
]
},
"on_offer": {
"description": "Indicates whether the item currently has an active offer. Emitted by the search-result variant of this payload.",
"type": "boolean"
},
"packaging": {
"description": "Packing dimensions. Emitted by the search-result variant of this payload; `null` when none configured.",
"$ref": "#/components/schemas/Packaging"
},
"inventory": {
"$ref": "#/components/schemas/AggregatedInventory"
},
"is_default": {
"type": "boolean"
},
"seller_id": {
"type": "string"
},
"seller_detail": {
"anyOf": [
{
"$ref": "#/components/schemas/SellerInfo"
},
{
"type": "null"
}
]
},
"item_id": {
"type": "string"
},
"seller_product_id": {
"type": [
"string",
"null"
]
},
"seller_variant_id": {
"type": [
"string",
"null"
]
}
},
"examples": []
}Auto-generated from OpenAPI spec and TypeScript definitions