[ANNOUNCE] Full cart support now in API

67 views
Skip to first unread message

Justin Kerr Sheckler

unread,
Jun 9, 2011, 6:23:20 PM6/9/11
to etsy-...@googlegroups.com
Hi All,

I'm happy to announce that you can now add and remove listings, and
update quantites in user shopping carts via the API! Full details are
here:

http://developer.etsy.com/docs/resource_cart

In addition, problems with associations on the Cart resource not
behaving the same as associations elsewhere have been fixed.

Please kick the tires and let us know what you think! We're excited
to open up new possibilities for Etsy apps.

thanks,

Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com

Ian Maroney

unread,
Jun 9, 2011, 6:37:49 PM6/9/11
to etsy-...@googlegroups.com
Is there a future possibility for building a cart for an anonymous user?

It would be a HUGE deal to be able to build a cart and then pass the user to etsy with a cart ID to sign in/sign up to be able to check out.

- Ian


--
You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
To post to this group, send email to etsy-...@googlegroups.com.
To unsubscribe from this group, send email to etsy-api-v2...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/etsy-api-v2?hl=en.


Chris Copeland

unread,
Jun 9, 2011, 7:02:58 PM6/9/11
to etsy-...@googlegroups.com
I second what Ian is asking for.  It's what I was hoping this feature was going to be. 

I don't think users are going to want to OAuth and give my app access to their whole account just so I can add items to their cart.

- Chris

Jey B

unread,
Jun 10, 2011, 8:44:30 PM6/10/11
to Etsy API V2
Hi Justin,

When you visit a URL attached to a cart and aren't signed in on the
Etsy main site you just get an unhelpful error page. Can this be fixed
to redirect to sign in and forward on to the correct screen post-
login?

Thanks.
Jey

Lior Sion

unread,
Jun 12, 2011, 4:55:55 AM6/12/11
to Etsy API V2
+1 on cart for anonymous, I could use it as well, most of my users are
not Etsy users.

Daniel Dickison

unread,
Jun 13, 2011, 3:00:11 AM6/13/11
to etsy-...@googlegroups.com
Carts API is great, but I think I just found a small code or documentation bug: if you request the Coupon association on getAllUserCarts, the Coupon object returned is missing the coupon_id field.

Try adding an item from the shop lilkt384 with coupon code "SUMMERFUN", then fetch your cart via OAuth like:
GET http://openapi.etsy.com/v2/private/users/__SELF__/carts?includes=Listings(title%2Cstate%2Clisting_id%2Cprice%2Ccurrency_code%2Cquantity)%3A25%3A0%2FMainImage%3A25%3A0%2CCoupon%3A25%3A0

I get a Coupon association that looks like this (this isn't the raw JSON, but a processed, internal representation) -- notice the missing coupon_code field:
{
"coupon_code" = SUMMERFUN;
"domestic_only" = "<null>";
"free_shipping" = "<null>";
"pct_discount" = 15;
"seller_active" = 1;
}

Justin Kerr Sheckler

unread,
Jun 13, 2011, 10:12:43 AM6/13/11
to etsy-...@googlegroups.com
Hi there,

Anonymous guest carts isn't something that our platform supports, but
we're looking into it.

We'll also get back to you on the two bugs!

thanks

Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com

Chris Copeland

unread,
Jun 13, 2011, 10:49:24 AM6/13/11
to etsy-...@googlegroups.com
Hi Justin,

When you say the platform doesn't support it, do you mean Etsy in general or just the API platform?  Anonymous carts are supported on www.etsy.com (at least my definition of an anonymous cart).  For example:

1. Start private browsing session in Firefox so I look anonymous to Etsy.
2. Got to www.etsy.com
3. Click on the first item I see
4. Click Add to Cart
5. Checkout page is shown
6. Click Check out with PayPal
7. I am now prompted to create an Etsy account

At step 5, a cart exists for an anonymous user. 

What I'd like to be able to do is add items to a cart programmatically and then redirect the user to Step 5 where they could checkout (and register, if necessary).

Sorry if I am restating the obvious but I thought it would be good to make sure we had clearly defined the feature we're requesting. 

-Chris

Jey B

unread,
Jun 13, 2011, 2:53:35 PM6/13/11
to Etsy API V2
The totals coming through from the new carts API are formatted
differently than numbers from elsewhere in the API.

eg. getListing on this item
http://www.etsy.com/listing/59070078/oil-painting-dollhouse-3

returns a price "100000.00"

and a cart containing this item

returns a subtotal in the format: "100,000.00"

Can these be standardized to be like the listing for ease of parsing
and given that comma-formatting is only correct in certain locales?

Thanks.
Jey
> > > On Thu, Jun 9, 2011 at 5:37 PM, Ian Maroney <ian.maro...@gmail.com>

Daniel Dickison

unread,
Jun 14, 2011, 11:04:56 AM6/14/11
to etsy-...@googlegroups.com
I second this ― commas in those fields is problematic. I do see that the doc specifies them as "string" type rather than "float", but it would be a lot more useful if they are floats since the API client needs to subtract the discounts from the total to match what gets displayed on the website as the "Total" for an order.

Sent from my iPhone

sgress

unread,
May 25, 2012, 10:18:29 PM5/25/12
to etsy-...@googlegroups.com
Any update on the ability to add an item to an anonymous cart?  Users have been asking for this feature for almost a year without any response.  It's asking a lot for users to oAuth in to an app to do something that they can do on etsy.com without logging in at all.  The only alternative is to use the add_to_cart.php method which isn't supported and can't give useful feedback.

Thanks,

Scott
Reply all
Reply to author
Forward
0 new messages