AssociateTag=
[Associate Tag]
&
Operation=CartClear&
CartId=[Cart ID]&
HMAC=
[URL-encoded HMAC]
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
This operation removes all of the items in the specified cart. Because the
HMAC
includes the
AssociateTag
, you must supply it in this request.
The response to this request is shown in,
Response to Sample Request (p. 167)
.
Sample Response
The following XML is a snippet of the full response to the first sample request.
<Cart>
<Request>
<IsValid>True</IsValid>
<CartClearRequest>
<CartId>102-2689399-8023324</CartId>
<HMAC>iLYO/W0hft0Te4uXAbMiBhs36T8=</HMAC>
</CartClearRequest>
</Request>
<CartId>102-2689399-8023324</CartId>
<HMAC>iLYO/W0hft0Te4uXAbMiBhs36T8=</HMAC>
<URLEncodedHMAC>iLYO/W0hft0Te4uXAbMiBhs36T8=</URLEncodedHMAC>
</Cart>
Related Operations
•
CartAdd (p. 168)
•
CartCreate (p. 175)
•
CartGet (p. 181)
•
CartModify (p. 185)
CartCreate
Description
The
CartCreate
operation enables you to create a remote shopping cart. A shopping cart is the metaphor
used by most e-commerce solutions. It is a temporary data storage structure that resides on Amazon
servers. The structure contains the items a customer wants to buy. In Product Advertising API, the
shopping cart is considered remote because it is hosted by Amazon servers. In this way, the cart is remote
to the vendor's web site where the customer views and selects the items they want to purchase.
Once you add an item to a cart by specifying the item's ASIN or
OfferListing
ID, the item is assigned
a
CartItemId
and is accessible only by that value. That is, in subsequent requests, an item in a cart
cannot be accessed by its ASIN or
OfferListingId
.
CartItemId
is returned by
CartCreate (p. 175)
,
CartGet (p. 181)
, and
CartAdd (p. 168)
.
API Version 2011-08-01
175
Product Advertising API Developer Guide
CartCreate