Examples
Create a remote shopping cart and add multiple items of varying quantities to it.
http:// webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=
[AWS Access Key ID]
&
AssociateTag=
[Associate Tag]
&
Operation=CartCreate&
Item.1.ASIN=
[ASIN]
&
Item.1.Quantity=2&
Item.2.ASIN=
[ASIN]
&
Item.2.Quantity=7&
Item.3.ASIN=
[ASIN]
&
Item.3.Quantity=5
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
This request creates a remote shopping cart and adds three different items, 2 of the first item, 7 of the
second item, and 5 of the third item. The response to this request is shown in,
Response to Sample
Request (p. 167)
.
Create a shopping cart by adding items not necessarily sold by Amazon.
http:// webservices.amazon.com/onca/xml
?Service=AWSECommerceService&
AWSAccessKeyId=
[Access Key ID]
&
AssociateTag=
[Associate Tag]
&
Operation=CartCreate&
Item.1.OfferListingId=
[Offer Listing ID]
&
Item.1.Quantity=2&
Item.2.OfferListingId=
[Offer Listing ID]
&
Item.2.Quantity=7&
Item.3.OfferListingId=
[Offer Listing ID]
&
Item.3.Quantity=5
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
This request creates a remote shopping cart and adds three different items that are not sold by Amazon:
2 of the first item, 7 of the second item, and 5 of the third item. OfferListingId returns items for sale by all
sellers and merchants, including Amazon.
Sample Response
The following XML is a snippet of the full response to the first sample request.
<Cart>
<Request>
<IsValid>True</IsValid>
<CartCreateRequest>
<Items>
<Item>
<ASIN>B000062TU1</ASIN>
<Quantity>2</Quantity>
</Item>
API Version 2011-08-01
179
Product Advertising API Developer Guide
CartCreate