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

{
  "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

CartItemResponse

CartProductOption

CartGroupResponse

CartItemPrice

CartItemSource

CartProductQuantity

CombinedProductsInfo

Last updated