Amazon Product Advertising API Developer's Manual page 195

Api version 2011-08-01
Table of Contents

Advertisement

Product Advertising API Developer Guide
Response
Name
CartId
CartItemId
HMAC
Item
Items
Quantity
For more information about the parent elements of these tags, see the appropriate response group in
Response Groups (p. 213)
Examples
Increase the quantity of an item (Item.1) already in the cart and remove an item (Item.2).
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key
AssociateTag=[Associate
Operation=CartModify&
CartId=[Cart
ID]&
HMAC=[HMAC]&
Item.1.CartItemId=[Cart Item
Item.1.Quantity=10&
Item.2.CartItemId=[Cart Item
Item.2.Quantity=0
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
Notice that items in the cart are referred to by CartItemId , not their ASIN or OfferListingId
CartItemId is returned by
to use CartModify to modify the items in a cart, you must refer to the items using their CartItemId .
You use
CartGet (p. 181)
The response to this request is shown in,
Move an item (Item.1) to the SaveForLater area in the cart and reduce then number of items (Item.2) to
1.
CartModify
Description
Alphanumeric token returned by
cart.
Specifies an item in a cart. CartItemId is neither an ASIN nor an
OfferListingId. It is, instead, an alphanumeric token returned by
CartCreate (p. 175)
and CartAdd . Child of Item.
Hash Message Authentication Code returned by
that identifies a cart. This is an encrypted alphanumeric token that is
used to authenticate cart operations.
For REST, a prefix for CartItemId and Quantity, both of which are used
to specify the item to be modified, for example,
item.1.CartItemId=1234abcd, item.1.Quantity=2 changes the quantity
of item 1234abcd to 2.
Container for Item when specifying more than one Item.
The suffix used with Item to specify the number of items to be added
to the cart. See Item.
ID]&
ID]&
ID]&
ID]&
CartCreate (p.
175),
CartGet (p.
to retrieve the CartItemId s.
Response to Sample Request (p.
API Version 2011-08-01
188
CartCreate (p. 175)
that identifies a
CartCreate (p. 175)
181), and
CartAdd (p.
168). If you want
167).

Advertisement

Table of Contents
loading

Table of Contents