Amazon API cartCreate Challenges


I’m trying to add items to an amazon shopping cart, which I am supposed to be able to create, but I keep getting errors saying that “Exception while invoking method ‘addToAmazonCart’ TypeError: Object [object Object] has no method ‘cartCreate’”.

Here’s my GIST

Even if I create the cart, I’m still not exactly sure what I’m supposed to do or how I can display the cart with the recently added items.

Here’s the reference documentation I’ve been using. Thanks for ANY help to point me in the right direction.


Can you show the code you’re using that makes the cartCreate function call? The exception you’ve listed points to that function being called on an object that doesn’t have that function, so that’s definitely the first place to start debugging from.


Sorry yeah, I just added the gist file, sorry about that!


The amazon-product-api package doesn’t support cartCreate functionality, so calling client.cartCreate won’t work. The only supported functions are itemSearch, itemLookup, and browseNodeLookup (source is here).


Are you aware of any api’s working with amazon and cartCreate fully?

"aws-lib": "0.3.0",
"aws-sdk": "2.3.16",
"amazon-product-api": "0.3.10",
"aws-product-api": "1.2.5"