Unique identifier for the variant. Used in cart operations and variant selection.
Stock Keeping Unit for the variant. Merchant-defined unique identifier.
Universal Product Code or similar barcode. Used for inventory tracking.
Current selling price of the variant. Numeric value without currency symbol.
Original or MSRP price before any discounts. String value that may include currency symbol.
Whether the variant is subject to tax calculations. String representation of boolean.
Set of options that define this variant. Key-value pairs of option names and values.
Whether the variant is currently available for purchase. String representation of boolean.
Array of variant metafields used for search functionality. Contains additional variant data for search indexing.
Array of variant metafields used for filtering. Contains additional variant data for filter operations.
URL to the variant's primary image. Used in product listings and detail pages.
Alternative text for the variant's image. Used for accessibility and SEO.
Total quantity available in inventory. String representation of numeric value.
URL path to the variant's detail page. Can be relative to the store's base URL.
Represents a product variant in Shopify. Variants are specific combinations of product options that can be purchased.
Example