ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface SearchaniseVariant

    Represents a Searchanise product variant

    interface SearchaniseVariant {
        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.

    "CHEM-NACL-500G"
    
    price: number

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

    29.99
    
    link: string

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

    "/products/sodium-chloride-500g"
    
    variant_id: string

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

    "39485736284"
    
    quantity_total?: string

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

    "100"
    
    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%"
    }