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
  • Get Cart Item Options
  • Response
  • Store Item
  • Sample Request

Was this helpful?

  1. API
  2. Carts

Get Cart Item Options

Get alternative store products for a cart item.

Get Cart Item Options

GET https://graph.whisk.com/v1/:cart_id/items/:item_id/options

Path Parameters

Name
Type
Description

cart_id

string

Unique cart identifier

item_id

string

Unique item identifier

{
  "options": [
    {
      "sku": "299626009",
      "name": "Tesco 15 Eggs",
      "quantity": {
        "count": 1
      },
      "price": {
        "list": 1.19
      },
      "images": [
        {
          "url": "https://img.tesco.com/Groceries/pi/043/5057545736043/IDShot_540x540.jpg"
        }
      ],
      "url": "https://www.tesco.com/groceries/en-GB/products/299626009"
    },
    ...
    {
      "sku": "265422924",
      "name": "Tesco Mixed Sized Free Range Eggs 15 Pack",
      "quantity": {
        "count": 1
      },
      "price": {
        "list": 2
      },
      "images": [
        {
          "url": "https://img.tesco.com/Groceries/pi/706/5052003671706/IDShot_540x540.jpg"
        }
      ],
      "url": "https://www.tesco.com/groceries/en-GB/products/265422924"
    }
  ]
}

Response

ATTRIBUTE

TYPE

DESCRIPTION

options

array [CartProductOption]

available store item options

Store Item

ATTRIBUTE

TYPE

DESCRIPTION

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]

url

string

link to product page in store

Sample Request

curl "https://graph.whisk.com/v1/39247bbe44e145578ede8cab9fa89dd1/items/89362f250e6b42208eb3982a95e70144/options" \
    -H "Accept: application/json" \
    -H "Authorization: Token <Access-Token>"
PreviousAdd Recipes To CartNextSwap Cart Item Product

Last updated 4 years ago

Was this helpful?