Whisk supports intelligent algorithm for combining similar items into one, to improve shopping list experience.
Items like 2 eggs and 28g of eggs yolkcan be combined into one item 4 eggs.
Automatic combination of items is enabled by default, you can pass combineItems = false to disable it.
Supported Retailers
Not every retailer provides us with information about inventory, so for some retailers we can't match store items and create a cart. You still can check out items for these retailers, check landing url checkout section.
You can find if we support matching for a retailer and able to create a cart here in the retailer’s list in Store Inventory column.
Retailer Id or name to generate a Cart for. available retailers Example: tesco, 9b032cd7ca5d11e7ae7e42010a9a0035
recipeIds
array
An array of strings representing ids of recipes. The cart will be generated based on recipe ingredients. The id can be represented by GraphID or recipe URL
items
array
An array of Shopping Cart Items to use for generating a Cart. It can be raw text or specific store item
labels
object
The flag which controls where Whisk should create a state for Cart on its side to manage later. Labels can be used later for filtering carts. Default: false
combineItems
boolean
Controls combining submitted items into single CartItem. 1 tbsp olive oil and 30ml olive oil can be combined with the single offered products from the retailer. Default: true