Getting a customer's basket

Returns the basket for the specified customer.

URL

HTTP Get

http://api1.asos.com/basket/{customerId}/{currency}/en_API?locale={locale}&country={country}&api_key={apiKey}

Notes

A customer only ever has one in-flight basket which is shared across all consumers/devices.  So, your initial call could return a basket with items in it IF the customer has been shopping on another client.

If the customer is not authenticated, then you will be working with a temporary basket.  In this scenario, the contents are copied to the customer’s basket when they sign in.

Parameters

Name Type Description Default Value Example Value Optional
customerId string Identifier for a customer (more info).    d490d00d5d63450e954eaec033e76edd no
currency string The currency to show prices in (more info). GBP EUR no
locale string A parameter to identify the location set on the user's mobile device, which can be used to customize content based on that location.
en_GB en_US yes
country string Current geographical location of the device user GB AU yes
apiKey string Your API key. Request yours here 1a2b3c4d5e6f7g8h9i no

 

Example Request

http://api1.asos.com/basket/d490d00d5d63450e954eaec033e76edd/GBP/en_API?locale=en_US&country=AU&api_key=1a2b3c4d5e6f7g8h9i

Example Response

The 'Basket' entity is returned from this call, which has the following properties:

{
   "BasketItems":[
      {
         "BasePrice":45.00,
         "BasketItemMessages":[

         ],
         "Colour":"Pink",
         "CustomerId":"d490d00d5d63450e954eaec033e76edd",
         "DateAdded":"/Date(1317724497227+0000)/",
         "DateExpires":"/Date(1317728097227+0000)/",
         "ImageUrl":"http://images.asos.com/inv/media/8/9/4/4/1754498/pink/image1s.jpg",
         "IsSaleItem":false,
         "ItemType":"Product",
         "ParentId":"1754498",
         "Price":"£45.00",
         "ProductId":"1754530",
         "Quantity":1,
         "Size":"UK 10",
         "Title":"ASOS Dress with Bow Back",
         "ValidOperations":[
            "CanDelete",
            "CanSaveForLater",
            "CanEdit"
         ]
      },
      {
         "BasePrice":45.00,
         "BasketItemMessages":[

         ],
         "Colour":"Grey",
         "CustomerId":"d490d00d5d63450e954eaec033e76edd",
         "DateAdded":"/Date(1317724528147+0000)/",
         "DateExpires":"/Date(1317728128147+0000)/",
         "ImageUrl":"http://images.asos.com/inv/media/9/7/6/6/1856679/grey/image1s.jpg",
         "IsSaleItem":false,
         "ItemType":"Product",
         "ParentId":"1856679",
         "Price":"£45.00",
         "ProductId":"1856690",
         "Quantity":1,
         "Size":"M",
         "Title":"The Rock Boutique Jumper In Lady Luck Print",
         "ValidOperations":[
            "CanDelete",
            "CanSaveForLater",
            "CanEdit"
         ]
      },
      {
         "BasePrice":40.00,
         "BasketItemMessages":[

         ],
         "Colour":"Silver foil",
         "CustomerId":"d490d00d5d63450e954eaec033e76edd",
         "DateAdded":"/Date(1317724539077+0000)/",
         "DateExpires":"/Date(1317728139077+0000)/",
         "ImageUrl":"http://images.asos.com/inv/media/7/6/4/4/1664467/silverfoil/image1s.jpg",
         "IsSaleItem":false,
         "ItemType":"Product",
         "ParentId":"1664467",
         "Price":"£40.00",
         "ProductId":"1664470",
         "Quantity":1,
         "Size":"UK 10",
         "Title":"ASOS Foil Bandeau Unitard",
         "ValidOperations":[
            "CanDelete",
            "CanSaveForLater",
            "CanEdit"
         ]
      }
   ],
   "BasketMessages":[

   ],
   "CustomerId":"d490d00d5d63450e954eaec033e76edd",
   "ItemCount":3,
   "TotalBasketValue":"£130.00",
   "ValidOperations":[
      "CanSaveForLater",
      "CanAddProduct",
      "CanAddShippingSubscription"
   ]
}

1 Comment

  1. citysexylingerie3 years ago

    I love the elegant dress that allows me to be more confident. Today I found a very elegant dress, shopping http://www.citysexylingerie.com I have to admit, dress impressive, and I really like it. But before you order on this website, I'd like to know your opinion. Worth going to?

Please sign in to post a comment.