Create A Shopping List
Creates a shopping list. Both Server Token and User Access Token are allowed to be used in this endpoint. In the case of Server Token, a list will not be linked to any user and it will be only possible to access it by id.
POST
https://graph.whisk.com/v1/lists
Request Body
Name | Type | Description |
---|---|---|
name | string | Shopping List name |
language | string | Language can be provided explicitly which will impact analysis on shopping list items. Default: |
recipes | array | References to |
rawItems | array | Ids of recipes. The cart will be generated based on recipe ingredients. The id can be represented by GraphID or recipe URL |
items | array | List of |
Parameters
ShoppingListRecipePayload
ATTRIBUTE | TYPE | DESCRIPTION |
id* | string | GraphId or URL of a Recipe |
scale | float | Multiplier for default amounts in recipe: 0.5, 2 ... |
ShoppingListItemPayload
ATTRIBUTE | TYPE | DESCRIPTION |
quantity | double | Item quantity |
unit | string | Item unit (e.g. gram, ml) |
name* | string | Item name (e.g. potato) |
comment | string |
Response
ATTRIBUTE | TYPE | DESCRIPTION |
id* | string | |
name* | string | |
primary | boolean | |
createdTime* | datetime | The time the Shopping List was created. |
updatedTime* | datetime | |
items | array [ShoppingListItemElement] |
ShoppingListItemElement
ATTRIBUTE | TYPE | DESCRIPTION |
quantity | double | Item quantity |
unit | string | Item unit (e.g. gram, ml) |
name* | string | Item name (e.g. potato) |
comment | string | |
brand | string | |
analysis | SLItemAnalysis | |
recipe | string | |
recipeOrdering | integer | |
createdTime | datetime | |
combined | array |
SLItemAnalysis
ATTRIBUTE | TYPE | DESCRIPTION |
canonicalName | string | Unique normalized product name |
category | ProductCategory |
ProductCategory
ATTRIBUTE | TYPE | DESCRIPTION | ||
name* | string |
Request (adding raw items)
Request (adding items)
Request (adding recipes)
Last updated