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

    Interface ShopifyVariantNode

    Represents a product variant node from the Shopify GraphQL Storefront API. Contains pricing, inventory, and shipping details for a specific product variation.

    const variant: ShopifyVariantNode = {
    title: "Default Title",
    sku: "CHEM-001-500G",
    barcode: "123456789012",
    price: { amount: "29.99" },
    weight: 3.0,
    weightUnit: "OUNCES",

    requiresShipping: true,
    availableForSale: true,
    currentlyNotInStock: false
    };
    interface ShopifyVariantNode {
        title: string;
        sku: string;
        barcode: null | string;
        price: { amount: string };
        weight: number;
        weightUnit: "POUNDS" | "OUNCES" | "GRAMS" | "KILOGRAMS";
        requiresShipping: boolean;
        availableForSale: boolean;
        currentlyNotInStock: boolean;
        productType: null | string;
    }
    Index

    Properties

    title: string

    Display title of the variant (e.g. "Default Title", "500g Bottle")

    sku: string

    Stock Keeping Unit identifier

    barcode: null | string

    Product barcode (UPC, EAN, etc.)

    price: { amount: string }

    Price object containing the amount as a string

    Type declaration

    • amount: string

      Numeric price value as a string (e.g. "14.99")

    weight: number

    Numeric weight value

    weightUnit: "POUNDS" | "OUNCES" | "GRAMS" | "KILOGRAMS"

    Unit of weight measurement

    requiresShipping: boolean

    Whether the variant requires physical shipping

    availableForSale: boolean

    Whether the variant is currently available for purchase

    currentlyNotInStock: boolean

    Whether the variant is currently out of stock

    productType: null | string

    Product type