Removing Items From A Cart - Amazon Product Advertising API Developer's Manual

Api version 2011-08-01
Table of Contents

Advertisement

Product Advertising API Developer Guide
if you had fifteen copies of the book, Saving Miss Oliver's, in the cart, you could move eight of them to
the SaveForLater area by setting Item.1.Quantity=8 in the preceding request.
Notice that only CartModify can move an item between the Active and SaveForLater areas. This means
that an item cannot be added directly to the SaveForLater area; it must first be added to the cart using
CartCreate or CartAdd and then moved to SaveForLater. Amazon will automatically move an item to
the SaveForLater area if the item is currently unavailable. CartModify will not be able to move that item
into the Active area until it becomes available. At that time, Amazon will move the item automatically into
the Active area.
Note
The value for the Action parameter is "SaveForLater." Items in the SaveForLater area are
tagged in the XML response with the element, SavedForLaterItem, as shown in the following
XML snippet from a response.
<SavedForLaterItem>
<CartItemId>ULI7S9IYFJHX0</CartItemId>
<ASIN>B0009GZV4A</ASIN>
<Quantity>2</Quantity>
<Title>Mark VII Men's Short Sleeve Golf Shirts with
Tri -Colored Stripe Trim</Title>
<ItemTotal>
<Amount>1288</Amount>
<CurrencyCode>USD</CurrencyCode>
<FormattedPrice>$12.88</FormattedPrice>
</ItemTotal>
</SavedForLaterItem>
To move an item from the SaveForLater area to the Active area, use " MoveToCart" as the value for the
Action parameter in a CartModify operation:
Item.1.CartItemId=[Cart Item
Item.1.Quantity=1
Item.1.Action=MoveToCart

Removing Items From a Cart

A customer might, at times, decide to remove some or all of the items in their remote shopping cart.
To remove all items from a cart
• Use CartClear to remove all items from a cart.
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key
AssociateTag=ws&
Operation=CartClear&
CartId=002-2041347-9034467&
HMAC=[HMAC]
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
Remote Shopping Cart Tasks
ID]&
ID]&
API Version 2011-08-01
144

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Product Advertising API and is the answer not in the manual?

Questions and answers

Table of Contents