Product Advertising API
Developer Guide (API Version 2011-08-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Cart Response Group

The Cart response group provides information about a specified remote shopping cart and the items in it. The cart information includes:

  • CartId

  • HMAC

  • PurchaseURL

For each item in the cart, including SavedForLaterItems, the response group returns:

  • CartItemId

  • ProductName

  • ASIN

  • Quantity

  • ListPrice

  • OurPrice

Relevant Operations

Operations that can use this response group include:

Parent Response Group

The following response groups are parent response groups of Cart.

  • None

Child Response Group

The following response groups are child response groups of Cart.

  • None

Sample REST Use Case

All locales.

http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
AssociateTag=ws&
Operation=CartCreate&
Item.1.ASIN=B000062TU1&
Item.1.Quantity=2&
Version=2011-08-01
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]

Sample Response Snippet

The following response snippet shows the elements returned by Cart.

<Cart>
  <Request>
  <IsValid>True</IsValid>
    <CartCreateRequest>
    <Items>
      <Item>
        <ASIN>B000062TU1</ASIN>
        <Quantity>2</Quantity>
      </Item>
    </Items>
    </CartCreateRequest>
  </Request>
  <CartId>002-5281165-2803250</CartId>
  <HMAC>5i1uO0G/PHqkvxZqC8oRkzmCano=</HMAC>
  <URLEncodedHMAC>5i1uO0G%2FPHqkvxZqC8oRkzmCano%3D</URLEncodedHMAC>
  <PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=002-5281165-2803250%26associate-id=ws%26hmac=5i1uO0G/PHqkvxZqC8oRkzmCano=%26SubscriptionId=1VMXF86PGNDAX3FW9C02</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>U2ABORWEFJ0WZP</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>
      <CurrencyCode>USD</CurrencyCode>
      <FormattedPrice>$19.94</FormattedPrice>
    </ItemTotal>
  </CartItem>
</CartItems>
</Cart>