Amazon Product Advertising API Developer's Manual page 186

Api version 2011-08-01
Table of Contents

Advertisement

Product Advertising API Developer Guide
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
AssociateTag=[Associate
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,
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
AssociateTag=[Associate
Operation=CartCreate&
Item.1.OfferListingId=[Offer Listing
Item.1.Quantity=2&
Item.2.OfferListingId=[Offer Listing
Item.2.Quantity=7&
Item.3.OfferListingId=[Offer Listing
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>
CartCreate
ID]&
Tag]&
ID]&
Tag]&
ID]&
ID]&
ID]&
API Version 2011-08-01
179
Response to Sample

Advertisement

Table of Contents
loading

Table of Contents