The InventoryEntry information of the Product Variant. If there is a supply Channel for the InventoryEntry, then channels is returned. If not, then isOnStock, restockableInDays, and quantityOnStock are returned.

interface ProductVariantAvailability {
    availableQuantity?: number;
    channels?: ProductVariantChannelAvailabilityMap;
    id?: string;
    isOnStock: boolean;
    restockableInDays?: number;
    version?: number;
}

Properties

availableQuantity?: number

Number of items of the Product Variant that are in stock.

For each InventoryEntry with a supply Channel, an entry is added to channels.

id?: string

Unique identifier of the InventoryEntry.

isOnStock: boolean

Indicates whether a Product Variant is in stock.

restockableInDays?: number

Number of days to restock a Product Variant once it is out of stock.

version?: number

Current version of the InventoryEntry.