For more information about the parent elements of these tags, see the appropriate response group in
Response Groups (p. 213)
Examples
Retrieve all of the items in a specified cart:
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=
[AWS Access Key ID]
&
AssociateTag=
[Associate Tag]
&
Operation=CartGet&
CartId=[Cart ID]&
HMAC=
[URL-encoded HMAC]
This operation retrieves all of the items in the specified remote shopping 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.
<CartId>002-9918938-1696046</CartId>
<HMAC>b0ogzvivVYLXjSZ9WwoBRFesFYU=</HMAC>
<URLEncodedHMAC>b0ogzvivVYLXjSZ9WwoBRFesFYU=</URLEncodedHMAC>
<PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=002-9918938-
1696046%26associate-id=ws%26hmac=b0ogzvivVYLXjSZ9WwoBRFesFYU=%26AWSAccessKey
Id=1V293857EXAMPLEFW9C02</PurchaseURL>
<SubTotal>
<Amount>1994</Amount>
<CurrencyCode>USD</CurrencyCode>
<FormattedPrice>$19.94</FormattedPrice>
</SubTotal>
<CartItems>
<SubTotal>
<Amount>1994</Amount>
<CurrencyCode>USD</CurrencyCode>
<FormattedPrice>$19.94</FormattedPrice>
</SubTotal>
<CartItem>
<CartItemId>U3KYV0C66V3PAA</CartItemId>
<ASIN>B000062TU1</ASIN>
<SellerNickname>Amazon.com, LLC</SellerNickname>
<Quantity>2</Quantity>
<Title>Harry Potter and the Sorcerer's Stone (Full Screen Edition) (Harry
Potter 1)</Title>
<ProductGroup>DVD</ProductGroup>
<Price>
<Amount>997</Amount>
<CurrencyCode>USD</CurrencyCode>
<FormattedPrice>$9.97</FormattedPrice>
</Price>
<ItemTotal>
<Amount>1994</Amount>
API Version 2011-08-01
184
Product Advertising API Developer Guide
CartGet