Updating an item in a SaveForLater list

How to modify the details of an item in a save for later list (size and colour).

URL

HTTP Put

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



Example Request

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

Body

The request body takes two ‘Save For Later Item’ entities.  The first one is the original item, the second one is the replacement item. For example, to change the selected variant, you would pass in two similar entities, but with the second item having the altered ProductId property.

[
{
   "BasePriceWhenSaved": 99.95,
   "BasketItemMessages": null,
   "Colour": "Grape",
   "customerId":"d490d00d5d63450e954eaec033e76edd",
   "ImageUrl": "http://images.asos.com/inv/media/8/2/7/5/1665728/grape/image1s.jpg",
   "IsSaleItem": "false",
   "ParentId": "1665728",
   "ProductId": "1665731",
   "Size": "UK 12",
   "Title": "Barbour Quilted Jacket with Vintage Cord Collar",
   "ValidOperations":          [
      "CanDelete",
      "CanAddToBasket",
      "CanEdit"
         ]
}
,
{
   "BasePriceWhenSaved": 99.95,
   "BasketItemMessages": null,
   "Colour": "Grape",
   "customerId":"d490d00d5d63450e954eaec033e76edd",
   "ImageUrl": "http://images.asos.com/inv/media/8/2/7/5/1665728/grape/image1s.jpg",
   "IsSaleItem": "false",
   "ParentId": "1665728",
   "ProductId": "1665732",
   "Size": "UK 14",
   "Title": "ASOS Can't Live Without Cami",
   "ValidOperations":          [
      "CanDelete",
      "CanAddToBasket",
      "CanEdit"
         ]
}
]

 

Example Response

The ‘Save For Later’ entity is returned from this call. You should check the ‘SaveForLaterMessages’ property, which will contain a description of any errors that occurred. 

{
   "CustomerIdentifier":"1a68b21d4d9340eab5bbea122afe2858",
   "ItemCount":17,
   "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(1317734683523+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":1665732,
         "SaveForLaterItemMessages":[

         ],
         "Size":"UK 14",
         "Title":"Barbour Quilted Jacket with Vintage Cord Collar",
         "ValidOperations":[
            "CanDelete",
            "CanAddToBasket",
            "CanEdit"
         ]
      }
   ],
   "SaveForLaterMessages":[

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