Add Recipes To Cart
Last updated
Last updated
POST
https://graph.whisk.com/v1/:id/recipes
Add all recipe ingredients as items to the cart.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
An automatic combination of items is enabled by default. All cart items will be recombined considering the new items. Use combineItems = false
to disable it.
More about combined items here.
id
string
Unique cart identifier
recipeIds
array
An array of ShoppingListRecipePayload references to add to the cart
combineItems
boolean
Whether to combine the new items into the existing one. Default value: true
ATTRIBUTE
TYPE
DESCRIPTION
id*
string
unique cart id
recipes
array [ShoppingListRecipePayload]
references to recipes to add to cart
combineItems
boolean
need to recombine cart items considering new ingredients
ATTRIBUTE
TYPE
DESCRIPTION
id*
string
unique cart identifier
retailer*
Retailer
store details
items*
array [CartItemResponse]
matched products
groups*
array [CartGroupResponse]
ingredients can be grouped by recipe or another arbitrary group
created*
long
time of cart creation; in unix timestamp format (seconds)
expiresIn
long
The time when cart will be expiered; in unix timestamp format (seconds)
ATTRIBUTE
TYPE
DESCRIPTION
id*
string
unique cart item identifier
sourceList*
array [CartItemSource]
list of original ingredients related to the current item
product
CartProductOption
store item
combined
array [CombinedProductsInfo]
information about combined items, if items were combined by a similar product
analysis
object
Analysis for cart item (category, product canonical name)
ATTRIBUTE
TYPE
DESCRIPTION
sku*
string
store item identifier
name*
string
store item name
quantity*
CartProductQuantity
quantity of product items
price
CartItemPrice
price for the number of products
images*
array [ImageContainer]
url
string
link to product page in store
ATTRIBUTE
TYPE
DESCRIPTION
id*
string
unique cart group identifier
type*
enum
ingredients can be grouped by recipe or custom group Possible values: Recipe, Custom.
displayName*
string
group display name
recipe
RecipeDetails
recipe details
ATTRIBUTE
TYPE
DESCRIPTION
list*
double
list price
ATTRIBUTE
TYPE
DESCRIPTION
name*
string
source item text
groupId
string
group identifier
ATTRIBUTE
TYPE
DESCRIPTION
count*
integer
number of items
ATTRIBUTE
TYPE
DESCRIPTION
name*
string
name of combined items