ChemPare Documentation - v0.0.0
    Preparing search index...

    Interface ShopifyVariant

    Represents a Shopify product variant

    interface ShopifyVariant {
        sku: string;
        price: number;
        link: string;
        variant_id: string;
        quantity_total?: string;
        options?: { Model?: string; [key: string]: unknown };
    }
    Index

    Properties

    sku: string

    Stock Keeping Unit (SKU) for the variant. A unique identifier assigned by the merchant.

    price: number

    Price of the variant in the store's currency. Numeric value without currency symbol.

    link: string

    URL path to the variant's detail page. Can be relative to the store's base URL.

    variant_id: string

    Unique identifier for the variant in Shopify's system. Used for cart operations and variant selection.

    quantity_total?: string

    Total quantity available for this variant. Optional string representing stock level.

    options?: { Model?: string; [key: string]: unknown }

    Additional options specific to this variant. Can include size, color, model number, etc.

    Type declaration

    • [key: string]: unknown

      Additional dynamic option key-value pairs

    • OptionalModel?: string

      Model number or identifier for this variant

    {
    Model: "ABC123",
    Size: "500g",
    Purity: "99.9%"
    }