Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send users to a pre-filled Amazon cart checkout

I'm working on a site that will create pre-set packages of items. To start, I'm using Amazon to test the idea, pulling some affiliate sales, and then I'll fulfill orders myself if the idea deems successful.

My goal is to have a "buy now" type button, and upon clicking, the user will arrive at an Amazon checkout now page, with a cart pre-filled with items of my choosing, and my affiliate number.

I'm a PHP developer, so if a solution must be language specific, that's the language to go with. If it's more of a conceptual answer, or if there's an API for this, that works too.

Thanks in advance.

like image 546
hookedonwinter Avatar asked Oct 21 '10 04:10

hookedonwinter


People also ask

Can you send your Amazon cart to someone?

Share-A-Cart is the easiest way to share the contents of your Amazon shopping cart with anyone else! No more moving items from cart to wish list and backwards, simply "Create Cart ID" to send cart directly to your friend via a short ID code.

Can you save a cart on Amazon?

To wait until another day to buy some of the items in your Shopping Cart, click Save for later. This will move the item to your Saved for Later list located below the Shopping Cart. Click Move to cart next to an item when you are ready to purchase it.

How does Amazon add to cart work?

The "Add to Cart" form enables you to add any number of items to a customer's shopping cart and send the customer to the Amazon retail web site for completing the purchase. To offer better experience to your visitors, you may want to redirect to Amazon cart page in a new window.

Can you have multiple carts on Amazon?

You can purchase items in lists individually, or all at once. To purchase items in your lists: Go to the list you want to purchase items from. To purchase all of the items in the list, select Add all to cart.


1 Answers

You may use link that contains ASINs and their quantity. It doesn't add items to someone's cart but confirms to add to cart.

URL:
http://www.amazon.com/gp/aws/cart/add.html

Parameters:
- AssociateTag
- ASIN.<number>        <number> starts at 1
- Quantity.<number>    one quantity parameter for each ASIN parameter

Example (parameters separated by line break for visibility):
http://www.amazon.com/gp/aws/cart/add.html
    ?AssociateTag=your-tag
    &ASIN.1=B003IXYJYO
    &Quantity.1=2
    &ASIN.2=B0002KR8J4
    &Quantity.2=1
    &ASIN.3=B0002ZP18E
    &Quantity.3=1
    &ASIN.4=B0002ZP3ZA
    &Quantity.4=2

One line example: https://www.amazon.com/gp/aws/cart/add.html?AssociateTag=your-tag&ASIN.1=B003IXYJYO&Quantity.1=2&ASIN.2=B0002KR8J4&Quantity.2=1&ASIN.3=B0002ZP18E&Quantity.3=1&ASIN.4=B0002ZP3ZA&Quantity.4=2&ASIN.5=B004J2JG6O&Quantity.5=1

ASINs are found in the product's page URL or by searching for "ASIN" on the product page. More details here

like image 113
ohm Avatar answered Oct 06 '22 01:10

ohm