ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface MySimpleStoreVariant

    A purchasable variant of a MySimpleStore product, present only on the product-detail response (the search list omits it). Prices arrive as strings; options_text carries the human size label (e.g. "Size: 1 LITER").

    interface MySimpleStoreVariant {
        id: string;
        sku?: string;
        options_text?: string;
        option_values?: MySimpleStoreOptionValue[];
        price?: string;
        display_price?: string;
        total_on_hand?: number;
        in_stock?: boolean;
        asset_ids?: string[];
    }
    Index

    Properties

    id: string

    Variant id (uuid)

    sku?: string

    Stock keeping unit (e.g. "GRN-60-1-LTR")

    options_text?: string

    Combined option label (e.g. "Size: 1 LITER")

    option_values?: MySimpleStoreOptionValue[]

    Structured option values for this variant

    price?: string

    Numeric price as a string (e.g. "60.00")

    display_price?: string

    Localized price string (e.g. "$60.00")

    total_on_hand?: number

    Units on hand

    in_stock?: boolean

    Whether the variant is purchasable

    asset_ids?: string[]

    Ids of assets associated with this variant