Removing an item from a basket

How to remove an item from a basket.

URL

HTTP Delete

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

Parameters

Name Type Description Default Value Example Value Optional
customerId string Identifier for a customer (more info). d490d00d5d63450e954eaec033e76edd no
productId int The id of the product variant that you wish to remove from the basket.
1708924 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/1664470/Product/GBP/en_API?locale=en_US&country=AU&api_key=1a2b3c4d5e6f7g8h9i

Example Response

The ‘Basket’ entity is returned from this call. You should check the ‘BasketMessages’ property, which will contain a description of any errors that occurred. If there are none, then the item was removed successfully.

{
   "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"
         ]
      }
   ],
   "BasketMessages":[

   ],
   "CustomerId":"d490d00d5d63450e954eaec033e76edd",
   "ItemCount":2,
   "TotalBasketValue":"£90.00",
   "ValidOperations":[
      "CanSaveForLater",
      "CanAddProduct",
      "CanAddShippingSubscription"
   ]
}