Checkout

You can perform Store Transfer operations by submitting a list of SKU with corresponding amounts. Alternatively, you can also provide a list of raw items for retailers like AmazonFresh and Instacart.

Checkout Flow

Retailers provide different ways to the authenticated user and match products in-store. Currently we support 3 different flows.

It can affect your user experience. Please check details for each flow in retailers sections

Affiliates

Whisk supports several affiliate networks. You can pass your affiliate codes through checkout API.

Supported affiliate services at the moment: Awin, VigLink, CJ Affiliate.

Stores which support affiliates:

  • Instacart

  • AmazonFresh

  • BritishCornerShop

  • Billa

  • Tesco

  • Ocado

  • Waitrose

  • Walmart

  • Woolworths

Use field extra to pass your affiliate codes.

Checkout

POST https://graph.whisk.com/v1/carts/checkout

Request Body

CheckoutItem

CheckoutExtra

AffiliateInfo

StoreItemCheckoutValue

RawItemCheckoutValue

Credentials

BasicCredentials

OAuthCredentials

CheckoutResponse

CheckedOutItem

InventoryItem

Price

Sample Request

curl -X POST "https://graph.whisk.com/v1/carts/checkout" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token <Access-Token>" \
  -d '{
    "items": [
      {
        "storeItem": {
          "sku": "278272994",
          "quantity": 1
        }
      },
      {
        "storeItem": {
          "sku": "258270595"
        }
      }
    ],
    "retailerId": "tesco",
    "credentials": {
      "basic": {
        "username": "[email protected]",
        "password": "s3cret"
      }
    }
  }'

Example with AmazonFresh

curl -X POST "https://graph.whisk.com/v1/carts/checkout" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token <Access-Token>" \
  -d '{
    "items": [
      {
        "raw": {
          "name": "4 large eggs"
        }
      },
      {
        "raw": {
          "name": "handful basil leaves"
        }
      }
    ],
    "retailerId": "amazonfresh-us"
  }'

Last updated