Home > widget-integration > PredictiveBundleAPI > getPredictiveBundles

PredictiveBundleAPI.getPredictiveBundles() method

Loads predictive bundles for a product.

Signature:

getPredictiveBundles(productId: number): Promise<PredictiveBundleData[]>;

Parameters

Parameter

Type

Description

productId

number

Shopify product id used to query bundle recommendations.

Returns:

Promise<PredictiveBundleData[]>

Predictive bundles for the product, or an empty array when unavailable.