Whisk Docs
Whisk HomeHelp CenterDeveloper Tools
v1.0.0
v1.0.0
  • Overview
  • Guides
    • Creating An Account
    • Getting Started
    • Whisk Sandbox
  • API
    • Authentication
      • Server Token
      • Client Token
      • User Access Token
      • Anonymous Access
    • Recipes
      • Get Recipe
      • Get Recipe Categories
      • Recipe Objects
    • Recipe Discovery
      • Recipe Feed
      • Recipe Search
      • Get Similar Recipes
    • Shopping Lists
      • Get Shopping Lists
      • Create A Shopping List
      • Add Items To A Shopping List
      • List Analysis
    • Meal Plans
      • Meal Plan Management
      • Delete Meals
      • Auto-Generator
      • Error Handling
    • Retailers
      • Get Available Stores
      • Retailers Checkout Flow
      • Retailer Aliases
      • OAuth Retailer Flow
      • Retailer User Info
      • Search Store Items
    • Carts
      • Create a Cart
      • Update Cart Item
      • Splitting Combined Items
      • Add Items To Cart
      • Add Recipes To Cart
      • Get Cart Item Options
      • Swap Cart Item Product
      • Delete A Cart Or A Cart Item
      • Checkout
    • Users
      • Get A User
      • Update A User
    • User Recipes & Collections
      • Add User Recipe
      • Create A Recipe
      • Update External Recipe
      • Get All User Recipes
      • Update User Recipe
      • Remove Recipe from Favorites
      • Create Collection
      • Get All User Collections
      • Get Collection
      • Get Recipes from a Collection
      • Remove Collection
    • Tools
      • Autocomplete
  • Shopping List SDK
    • Overview
    • Examples
      • Shoppable Recipes
      • Shoppable Products
      • Shoppable Media
    • Basic Setup
      • Basic Setup
      • Methods
      • Event Listeners
      • Widget
      • Subscriptions
      • Global Configuration
      • UTM Parameters
      • Using With SPA
  • Shopping List Mobile API
    • Overview
    • Examples
    • Reference
  • Tips and Tricks
    • Object IDs
    • URL Lookup
    • Searching
    • Multiple IDs request
  • Resources
    • Nutrients
    • Recipe Labels
    • Health Score, Glycemic Index, Glycemic Load
    • Whisk User Data
    • Supported Retailers
    • Optimizing Image Load
Powered by GitBook
On this page
  • Split Combined Items
  • Sample Request
  • Response
  • CartResponse
  • CartItemResponse
  • CartProductOption
  • CartGroupResponse
  • CartItemPrice
  • CartItemSource
  • CartProductQuantity
  • CombinedProductsInfo

Was this helpful?

  1. API
  2. Carts

Splitting Combined Items

Split Combined Items

POST https://graph.whisk.com/v1/:cart_id/items/:item_id/split

You can split automatically combined items. Split items will not be combined again. More about combined items here.

Path Parameters

Name
Type
Description

cart_id

string

Unique cart identifier

item_id

string

Unique cart item identifier

{
  "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"
      }
    },
    ...
  ],
  "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
    }
  }
}

Sample Request

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

Response

CartResponse

ATTRIBUTE

TYPE

DESCRIPTION

id*

string

unique cart identifier

retailer*

Retailer

store details

items*

matched products

groups*

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 expired; in Unix timestamp format (seconds)

CartItemResponse

ATTRIBUTE

TYPE

DESCRIPTION

id*

string

unique cart item identifier

sourceList*

list of original ingredients related to the current item

product

store item

combined

information about combined items, if items were combined by a similar product

analysis

object

Analysis for cart item (category, product canonical name)

CartProductOption

ATTRIBUTE

TYPE

DESCRIPTION

sku*

string

store item identifier

name*

string

store item name

quantity*

quantity of product items

price

price for the number of products

images*

array [ImageContainer]

url

string

link to the product page in the store

CartGroupResponse

ATTRIBUTE

TYPE

DESCRIPTION

id*

string

The 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

CartItemPrice

ATTRIBUTE

TYPE

DESCRIPTION

list*

double

list price

CartItemSource

ATTRIBUTE

TYPE

DESCRIPTION

name*

string

source item text

groupId

string

group identifier

CartProductQuantity

ATTRIBUTE

TYPE

DESCRIPTION

count*

integer

number of items

CombinedProductsInfo

ATTRIBUTE

TYPE

DESCRIPTION

name*

string

name of combined items

PreviousUpdate Cart ItemNextAdd Items To Cart

Last updated 5 years ago

Was this helpful?

array []

array []

array []

array []

CartItemResponse
CartGroupResponse
CartItemSource
CartProductOption
CombinedProductsInfo
CartProductQuantity
CartItemPrice