Alokai

ProductVariant

Product variant model.

interface ProductVariant {
	bin_picking_number: string;
	calculated_price: number;
	calculated_weight: number;
	cost_price: number;
	depth: null | number;
	fixed_cost_shipping_price: number;
	gtin: string;
	height: null | number;
	id: number;
	image_url: string;
	inventory_level: number;
	inventory_warning_level: number;
	is_free_shipping: boolean;
	map_price?: unknown;
	mpn: string;
	option_values: ProductVariantOptionValue[];
	price: null | number;
	product_id: number;
	purchasing_disabled_message: string;
	purchasing_disabled: boolean;
	retail_price: null | number;
	sale_price: null | number;
	sku_id: null | number;
	sku: string;
	upc: string;
	weight: null | number;
	width: null | number;
}

Properties

NameRequiredTypeDescription
bin_picking_numberRequiredstringIdentifies where in a warehouse the variant is located.
calculated_priceRequirednumberThe price of the variant as seen on the storefront. This price takes into account sale_price and any price adjustment rules that are applicable to this variant.
calculated_weightRequirednumberProduct variant calculated weight.
cost_priceRequirednumberThe cost price of the variant. Not affected by Price List prices.
depthRequirednull | numberDepth of the variant, which can be used when calculating shipping costs. If this value is null, the product's default depth (set in the Product resource's depth field) will be used as the base depth.
fixed_cost_shipping_priceRequirednumberA fixed shipping cost for the variant. If defined, this value will be used during checkout instead of normal shipping-cost calculation.
gtinRequiredstringGlobal Trade Item Number.
heightRequirednull | numberHeight of the variant, which can be used when calculating shipping costs. If this value is null, the product's default height (set in the Product resource's height field) will be used as the base height.
idRequirednumberID of the variant
image_urlRequiredstringProduct variant image URL.
inventory_levelRequirednumberInventory level for the variant, which is used when the product's inventory_tracking is set to variant.
inventory_warning_levelRequirednumberWhen the variant hits this inventory level, it is considered low stock.
is_free_shippingRequiredbooleanFlag used to indicate whether the variant has free shipping. If true, the shipping cost for the variant will be zero.
map_priceOptionalunknownProduct variant map price. Property returned by API but not described in the docs.
mpnRequiredstringThe Manufacturer Part Number (MPN) for the variant.
option_valuesRequiredProductVariantOptionValue[]Array of option and option values IDs that make up this variant. Will be empty if the variant is the product's base variant.
priceRequirednull | numberThis variant's base price on the storefront. If a Price List ID is used, the Price List value will be used. If a Price List ID is not used, and this value is null, the product's default price (set in the Product resource's price field) will be used as the base price.
product_idRequirednumberID of the product
purchasing_disabled_messageRequiredstringIf purchasing_disabled is true, this message should show on the storefront when the variant is selected.
purchasing_disabledRequiredbooleanIf true, this variant will not be purchasable on the storefront.
retail_priceRequirednull | numberThis variant's retail price on the storefront. If a Price List ID is used, the Price List value will be used. If a Price List ID is not used, and this value is null, the product's retail price (set in the Product resource's price field) will be used as the retail price.
sale_priceRequirednull | numberThis variant's sale price on the storefront. If a Price List ID is used, the Price List value will be used. If a Price List ID is not used, and this value is null, the product's sale price (set in the Product resource's price field) will be used as the sale price.
sku_idRequirednull | numberRead-only reference to v2 API's SKU ID. Null if it is a base variant.
skuRequiredstringUser defined product variant code/stock keeping unit (SKU).
upcRequiredstringThe UPC code used in feeds for shopping comparison sites and external channel integrations.
weightRequirednull | numberThis variant's base weight on the storefront. If this value is null, the product's default weight (set in the Product resource's weight field) will be used as the base weight.
widthRequirednull | numberWidth of the variant, which can be used when calculating shipping costs. If this value is null, the product's default width (set in the Product resource's width field) will be used as the base width.

Referenced Types

On this page