Moving basket items into the Save For Later list

How to move the basket items into the customer’s saved for later list.

URL

HTTP Post

http://api1.asos.com/saveforlater/frombasket/{customerId}/{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
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
basketItem body JSON object containing one or more BasketItems. see below no
apiKey string Your API key. Request yours here 1a2b3c4d5e6f7g8h9i no

 

Example Request

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

Body

The request body takes one or more ‘BasketItem’ entities.  Each of these items is added to the customer’s saved item list. Note; saved items expire after 30 days (and are automatically removed). Also note, the quantity field is ignored – only one item is added to the saved list. 

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

 

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 moved successfully.

{
   "Basket":{
      "BasketItems":[
         {
            "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"
            ]
         },
         {
            "BasePrice":30.00,
            "BasketItemMessages":[

            ],
            "Colour":"Nude",
            "CustomerId":"d490d00d5d63450e954eaec033e76edd",
            "DateAdded":"/Date(1317733631453+0000)/",
            "DateExpires":"/Date(1317737231453+0000)/",
            "ImageUrl":"http://images.asos.com/inv/media/2/8/7/3/1703782/nude/image1s.jpg",
            "IsSaleItem":false,
            "ItemType":"Product",
            "ParentId":"1703782",
            "Price":"£30.00",
            "ProductId":"1718730",
            "Quantity":2,
            "Size":"UK 12",
            "Title":"ASOS Mini Frill Dress with Pretty Sleeves",
            "ValidOperations":[
               "CanDelete",
               "CanSaveForLater",
               "CanEdit"
            ]
         }
      ],
      "BasketMessages":[

      ],
      "CustomerId":"d490d00d5d63450e954eaec033e76edd",
      "ItemCount":4,
      "TotalBasketValue":"£145.00",
      "ValidOperations":[
         "CanSaveForLater",
         "CanAddProduct",
         "CanAddShippingSubscription"
      ]
   },
   "SaveForLater":{
      "CustomerIdentifier":"1a68b21d4d9340eab5bbea122afe2858",
      "ItemCount":18,
      "SaveForLaterItems":[
         {
            "BasePriceWhenSaved":74.00,
            "Colour":"Black",
            "CurrentPrice":"£74.00",
            "DateAdded":"/Date(1316099694573+0000)/",
            "DateExpires":"Expires in 11 days",
            "ImageUrl":"http://images.asos.com/inv/media/9/0/2/7/1507209/black/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1507209,
            "ProductId":1507212,
            "SaveForLaterItemMessages":[
               {
                  "MessageId":0,
                  "Text":"Size/Colour out of stock - select Edit"
               }
            ],
            "Size":"UK 12",
            "Title":"Urbancode Leather Biker Jacket With Ribbed Sleeves",
            "ValidOperations":[
               "CanDelete",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":30.00,
            "Colour":"Navy",
            "CurrentPrice":"£30.00",
            "DateAdded":"/Date(1316765280850+0000)/",
            "DateExpires":"Expires in 19 days",
            "ImageUrl":"http://images.asos.com/inv/media/2/8/7/3/1703782/navy/image1xxl.jpg",
            "IsSaleItem":false,
            "ParentId":0,
            "ProductId":1708924,
            "SaveForLaterItemMessages":[
               {
                  "MessageId":0,
                  "Text":"Out of stock"
               }
            ],
            "Size":"UK 12",
            "Title":"ASOS Mini Frill Dress with Pretty Sleeves",
            "ValidOperations":[
               "CanDelete"
            ]
         },
         {
            "BasePriceWhenSaved":40.00,
            "Colour":"Cream",
            "CurrentPrice":"£40.00",
            "DateAdded":"/Date(1317658375943+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/8/9/0/2/1702098/cream/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1702098,
            "ProductId":1709647,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 12",
            "Title":"ASOS Aran Cardigan With Cute Collar",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":33.00,
            "Colour":"Black/gold",
            "CurrentPrice":"£38.00",
            "DateAdded":"/Date(1317658375943+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/9/2/9/7/1647929/blackgold/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1647929,
            "ProductId":1647932,
            "SaveForLaterItemMessages":[
               {
                  "MessageId":0,
                  "Text":"Increased from £33.00"
               }
            ],
            "Size":"UK 10",
            "Title":"French Connection Long Line Cardigan",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket"
            ]
         },
         {
            "BasePriceWhenSaved":4.00,
            "Colour":"Dark blue",
            "CurrentPrice":"£4.00",
            "DateAdded":"/Date(1317658375947+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/1/2/3/8/1608321/darkblue/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1608321,
            "ProductId":1608325,
            "SaveForLaterItemMessages":[

            ],
            "Size":"M",
            "Title":"ASOS Crew Neck T-Shirt With Contrast Stitching Detail",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":6.00,
            "Colour":"White",
            "CurrentPrice":"£6.00",
            "DateAdded":"/Date(1317658375947+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com//inv/media/6/5/2/3/1633256/white/image1xxl.jpg",
            "IsSaleItem":false,
            "ParentId":1633256,
            "ProductId":1633260,
            "SaveForLaterItemMessages":[

            ],
            "Size":"M - Chest 38-40in (96-101cm)",
            "Title":"ASOS Zombie Reverse Print Crew Neck T-Shirt",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":45.00,
            "Colour":"Blue",
            "CurrentPrice":"£45.00",
            "DateAdded":"/Date(1317658375947+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/3/5/7/5/1565753/blue/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1565753,
            "ProductId":1565754,
            "SaveForLaterItemMessages":[

            ],
            "Size":"No Size",
            "Title":"Superdry Canvas Messenger Bag",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket"
            ]
         },
         {
            "BasePriceWhenSaved":52.00,
            "Colour":"Brown",
            "CurrentPrice":"£65.00",
            "DateAdded":"/Date(1317658375950+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/7/3/6/9/1799637/brown/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1799637,
            "ProductId":1799669,
            "SaveForLaterItemMessages":[
               {
                  "MessageId":0,
                  "Text":"Increased from £52.00"
               }
            ],
            "Size":"UK 9",
            "Title":"River Island Military Boots",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":60.00,
            "Colour":"Blue",
            "CurrentPrice":"£60.00",
            "DateAdded":"/Date(1317658388537+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/6/5/8/6/1606856/blue/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1606856,
            "ProductId":1631266,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 18",
            "Title":"ASOS Quilted Jacket With Hood and Cord Trim",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":7.00,
            "Colour":"White",
            "CurrentPrice":"£7.00",
            "DateAdded":"/Date(1317658396153+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/9/3/8/3/1633839/white/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1633839,
            "ProductId":1633844,
            "SaveForLaterItemMessages":[

            ],
            "Size":"L",
            "Title":"ASOS Hybrid Bird Crew Neck T-Shirt",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":75.00,
            "Colour":"Black",
            "CurrentPrice":"£75.00",
            "DateAdded":"/Date(1317658406983+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/X/72/726/857928/Black/image1xl.jpg",
            "IsSaleItem":false,
            "ParentId":857928,
            "ProductId":857931,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 9",
            "Title":"H By Hudson Ellington Brogue Shoes",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":75.00,
            "Colour":"Black",
            "CurrentPrice":"£75.00",
            "DateAdded":"/Date(1317658412837+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/U/72/726/734179/Black/image1xl.jpg",
            "IsSaleItem":false,
            "ParentId":734179,
            "ProductId":734182,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 9",
            "Title":"KG By Kurt Geiger  Carnival 2  Perforated Lace-Up Shoes",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":75.00,
            "Colour":"Brown",
            "CurrentPrice":"£75.00",
            "DateAdded":"/Date(1317658420377+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/6/6/7/9/129766/brown/image1xl.jpg",
            "IsSaleItem":false,
            "ParentId":129766,
            "ProductId":129769,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 9",
            "Title":"H By Hudson Ellington Pointed Lace Up Shoes",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":35.00,
            "Colour":"Hollyhock",
            "CurrentPrice":"£35.00",
            "DateAdded":"/Date(1317658435153+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/0/4/2/3/1703240/hollyhock/image1xl.jpg",
            "IsSaleItem":false,
            "ParentId":1703240,
            "ProductId":1797590,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 12",
            "Title":"ASOS Tux Cropped Trousers",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":130.00,
            "Colour":"Navy",
            "CurrentPrice":"£130.00",
            "DateAdded":"/Date(1317658442780+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/7/4/8/6/1526847/navy/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1526847,
            "ProductId":1526851,
            "SaveForLaterItemMessages":[

            ],
            "Size":"XL - Chest 42-44in (106-111cm)",
            "Title":"Superdry Basic Bomber Leather Jacket",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":6.00,
            "Colour":"Grey marl",
            "CurrentPrice":"£6.00",
            "DateAdded":"/Date(1317658449747+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/4/4/9/2/1612944/greymarl/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1612944,
            "ProductId":1612949,
            "SaveForLaterItemMessages":[
               {
                  "MessageId":0,
                  "Text":"Size/Colour out of stock - select Edit"
               }
            ],
            "Size":"L - Chest 40-42in (101-106cm)",
            "Title":"ASOS Pencil Drawn Varisty Crew Neck T-Shirt",
            "ValidOperations":[
               "CanDelete",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":99.95,
            "Colour":"Grape",
            "CurrentPrice":"£99.95",
            "DateAdded":"/Date(1317658455053+0000)/",
            "DateExpires":"Expires in 29 days",
            "ImageUrl":"http://images.asos.com/inv/media/8/2/7/5/1665728/grape/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1665728,
            "ProductId":1665731,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 12",
            "Title":"Barbour Quilted Jacket with Vintage Cord Collar",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         },
         {
            "BasePriceWhenSaved":45.00,
            "Colour":"Pink",
            "CurrentPrice":"£45.00",
            "DateAdded":"/Date(1317734683523+0000)/",
            "DateExpires":"Expires in 30 days",
            "ImageUrl":"http://images.asos.com/inv/media/8/9/4/4/1754498/pink/image1s.jpg",
            "IsSaleItem":false,
            "ParentId":1754498,
            "ProductId":1754530,
            "SaveForLaterItemMessages":[

            ],
            "Size":"UK 10",
            "Title":"ASOS Dress with Bow Back",
            "ValidOperations":[
               "CanDelete",
               "CanAddToBasket",
               "CanEdit"
            ]
         }
      ],
      "SaveForLaterMessages":[

      ],
      "ValidOperations":[
         "CanAddToBasket"
      ]
   }
}

2 Comments

  1. muyang3 years ago

    I bought some corsets from this site at 2010, I think it is pretty cheap and cool, I also heared that spicylingerie and dear-lover wholesales from this site, worth a look.. link: http://www.legend-lingerie.com link: http://www.fashion-goddess.com link: http://www.charm-lover.com link: http://www.charm-sexylingerie.com

Please sign in to post a comment.