The following table describes the input parameters for the Add to Cart form.
Required?
Description
Parameter
Optional
Specifies one or more product ASINs to add, where x is
a unique identifier.
ASIN.x
Optional
An alternative way to specify one or more product offer
listings from third-party sellers, where x is a unique
identifier.
OfferListingId.x
Required
Your Access Key ID Here. You may want to specify this
as a hidden parameter.
AWSAccessKeyId
Required
Your associate tag. You may want to specify this as a
hidden parameter.
AssociateTag
Example HTML for the Add to Cart Form
<form method="GET" action="http://www.amazon.com/gp/aws/cart/add.html">
<input type="hidden" name="AWSAccessKeyId" value="Access Key ID" /><br/>
<input type="hidden" name="AssociateTag" value="Associate Tag" /><br/>
<p>One Product<br/>
ASIN:<input type="text" name="ASIN.1"/><br/>
OfferListingId:<input type="text" name="OfferListingId.1"/><br/>
<p>Another Product<br/>
ASIN:<input type="text" name="ASIN.2"/><br/>
OfferListingId:<input type="text" name="OfferListingId.2"/><br/>
</p>
<input type="submit" name="add" value="add" />
</form>
Purchasing the Items in a Remote Shopping Cart
Topics
•
Order Pipeline (p. 147)
•
Implementing the Proceed to Checkout Button (p. 148)
When a customer has finished shopping and wants to purchase the items in their remote shopping cart,
they typically click an HTML button on a web site labeled, for example, Proceed to Checkout. This button
must submit the value of the
PurchaseURL
, which is returned by all cart operations except
CartClear
.
Once the customer clicks this button, the items in the Active area are emptied from the shopping cart and
entered into the Order Pipeline.
This chapter explains how to submit the contents of a remote shopping cart for purchase in the following
sections.
Order Pipeline
The Order Pipeline is a series of web pages hosted by Amazon that guides the customer through entering
all of the information necessary to purchase the items. That information includes, for example, the
customer's name, shipping address, billing address, payment method, and a purchase confirmation web
page, as shown in the following figure.
API Version 2011-08-01
147
Product Advertising API Developer Guide
Purchasing the Items in a Remote Shopping Cart