Description
Name
Container for one or more item(s).
Items
URL that customers should use to purchase the items in the cart. It
includes the Associate's ID. It is important that they use this URL
otherwise the Associate will not get credit for the purchase.
PurchaseURL
Number of items added to cart.
Quantity
Container for Amount, CurrencyCode, and FormattedPrice
Subtotal
For more information about the parent elements of these tags, see the appropriate response group in
Response Groups (p. 213)
Examples
Add a single item to the cart:
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=
[AWS Access Key ID]
&
CartId=
[CartId]
&
HMAC=
[HMAC]
&
Operation=CartAdd&
Item.1.OfferListingId=
[Offer Listing ID]
&
Item.1.Quantity=1
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
The response to this request is shown in,
Response to Sample Request (p. 167)
.
Add multiple items to the cart.
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=
[AWS Access Key ID]
&
CartId=
[CartId]
&
HMAC=
[HMAC]
&
Operation=CartAdd&
Item.1.OfferListingId=
[Offer Listing ID]
&
Item.1.Quantity=1&
Item.2.OfferListingId=
[Offer Listing ID]
&
Item.2.Quantity=3&
Item.3.OfferListingId=
[Offer Listing ID]
&
Item.3.Quantity=1
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
This request adds three different items to a cart. A cart can carry up to fifty different items and each item
can have a maximum
Quantity
value of 999..
Add to the cart an item from a list.
API Version 2011-08-01
171
Product Advertising API Developer Guide
CartAdd