Overview
Last updated
Last updated
This functionality provides a simple way to integrate Whisk’s add-to-basket functionality into your mobile application, allowing you to send items and recipes to an online grocery basket.
Using this API you can generate URLs (we call these "transfer URLs") which pass your content to the Whisk basket experience. In your application, you add a button, such as "Order ingredients", which opens this URL in a web browser. This allows the user to choose a retailer, select store products, and send everything to their online basket.
Note: To use this service you will need access to the Whisk Graph API. This requires registering an application on the Whisk Platform, which you can do by contacting us.
See Graph API documentation about authentication for more information.
Take a look at the Examples or view the Reference page for all available parameters.
There are three ways to add items with transfer URLs:
rawItems - a full string containing quantity, unit, and product. "E.g. 250g cheddar cheese"
items - structured item data with separate fields for quantity, unit, product.
recipes - recipes are identified by URL or unique Whisk ID.
The endpoint is:
POST
https://graph.whisk.com/v1/lists/transfers
When you send items Whisk automatically matches them to appropriate store items at all available retailers. Whisk’s matching algorithm uses various factors including available store items, quantity, brand, attributes, and price.
Here is a basic example sending items and recipes:
The response will contain a URL which should be opened in the user’s mobile web browser - not inside WebViews. This opens the Whisk basket experience and allows users to select their store, choose store items, and send items to their basket.
Note: Generated URLs are valid for 14 days and are then expired.