Split Combined Items

You can split automaticaly combined items. Splited items will not be combined again.

More about combined items here.

POST
/v1beta/:cart_id/items/:item_id/split

Parameters

ATTRIBUTETYPEDESCRIPTION
cart_id*string

Unique cart identifier

item_id*string

Unique cart item identifier

Sample Request

curl -X POST "https://graph.whisk.com/v1beta/39247bbe44e145578ede8cab9fa89dd1/items/89362f250e6b42208eb3982a95e70144/split" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Token <Access-Token>"

CartResponse

ATTRIBUTETYPEDESCRIPTION
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)

expiresInlong

time when cart will be expiered; in unix timestamp format (seconds)

CartItemResponse

ATTRIBUTETYPEDESCRIPTION
id*string

unique cart item identifier

sourceList*array [CartItemSource]

list of original ingredients related to current item

productCartProductOption

store item

combinedarray [CombinedProductsInfo]

information about combined items, if items was combined by similar product

analysisobject

Analysis for cart item (category, product canonical name)

CartProductOption

ATTRIBUTETYPEDESCRIPTION
sku*string

store item identifier

name*string

store item name

quantity*CartProductQuantity

quantity of product items

price CartItemPrice

price for the quantity of products

images*array [ImageContainer]
urlstring

link to product page in store

CartGroupResponse

ATTRIBUTETYPEDESCRIPTION
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

recipeRecipeDetails

recipe details

CartItemPrice

ATTRIBUTETYPEDESCRIPTION
list*double

list price

CartItemSource

ATTRIBUTETYPEDESCRIPTION
name*string

source item text

groupIdstring

group identifier

CartProductQuantity

ATTRIBUTETYPEDESCRIPTION
count*integer

number of items

CombinedProductsInfo

ATTRIBUTETYPEDESCRIPTION
name*string

name of combined items

Sample Response

{ "labels": {}, "created": 1532604341, "groups": [], "id": "39247bbe44e145578ede8cab9fa89dd1", "items": [ { "id": "32442ecd460d42f79721996364458008", "notCombine": true, "sourceList": [ { "name": "2 eggs" } ], "product": { "name": "Tesco 6 Eggs", "quantity": { "count": 1 }, "url": "https://www.tesco.com/groceries/en-GB/products/299625707", "images": [ { "url": "https://img.tesco.com/Groceries/pi/770/5057545735770/IDShot_540x540.jpg" } ], "price": { "list": 0.7 }, "sku": "299625707" } }, { "id": "39259222ca324ecbb882b7cb06514b61", "product": { "name": "Tesco 6 Eggs", "url": "https://www.tesco.com/groceries/en-GB/products/299625707", "quantity": { "count": 1 }, "sku": "299625707", "price": { "list": 0.7 }, "images": [ { "url": "https://img.tesco.com/Groceries/pi/770/5057545735770/IDShot_540x540.jpg" } ] }, "sourceList": [ { "name": "4 large eggs" } ], "notCombine": true } ], "expiresIn": 1533209141, "retailer": { "country": "GB", "urls": { "signupUrl": "https://secure.tesco.com/account/en-GB/register", "forgotPasswordUrl": "https://secure.tesco.com/account/en-GB/forgotten-password", "trolleyUrl": "https://www.tesco.com/groceries/en-GB/slots" }, "displayName": "Tesco", "currency": "GBP", "id": "898003be304e49b084ac6224adc7ff53", "name": "Tesco", "logo": { "url": "https://res.cloudinary.com/whisk/image/upload/whisk3/supermarket_select_dropdown/tesco-logo.png", "height": 36, "width": 134 } } }