Home > widget-integration > Product

Product type

Signature:

export type Product = {
	type?: string;
	available: boolean;
	barcodes: string[];
	best_selling_rank: number;
	body_html: string;
	collections: Array<{
		handle: string;
		id: number;
		sort_value: string;
		template_suffix: string;
		title: string;
	}>;
	compare_at_price_max: number | null;
	compare_at_price_min: number | null;
	created_at: string;
	extra_sort1: string | number | null;
	extra_sort2: string | number | null;
	extra_sort3: string | number | null;
	handle: string;
	html: {
		theme_id: number;
		value: string;
	};
	id: number;
	images: {
		[key: string]: string;
	};
	original_images?: Array<{
		alt?: string;
		height?: number;
		id?: number;
		position?: number;
		src?: string;
		width?: number;
	}>;
	images_info?: Array<{
		alt: string;
		height: number;
		id: number;
		position: number;
		src: string;
		width: number;
	}>;
	locations: Array<unknown>;
	metafields: Array<ProductMetaField>;
	options_with_values: Array<OptionsWithValues>;
	percent_sale_min: number | null;
	position: number | null;
	price_max: number;
	price_min: number;
	product_type: string;
	published_at: string;
	published_scope: string;
	review_count: number;
	review_ratings: number;
	skus: string[];
	tags?: string[];
	template_suffix: string;
	title: string;
	updated_at: string;
	variant_id?: number;
	variants: Array<ProductItemVariant>;
	vendor: string;
	weight_max: number | null;
	weight_min: number | null;
	original_tags?: string[];
};

References: ProductMetaField, OptionsWithValues, ProductItemVariant