Setting listing quantity to zero or setting listing to state "sold_out" via API

682 views
Skip to first unread message

Eric Hoxworth

unread,
Aug 2, 2013, 12:37:18 PM8/2/13
to etsy-...@googlegroups.com
What are the steps for setting a listing quantity to zero or setting listing to state "sold_out" via API?

Attempts to set listing quantity to zero yield the following error message:
quantity cannot be empty., quantity cannot be less than 1.

Attempts to set the listing state to "sold_out" yield the following error message:
Invalid value for enum(active, inactive, draft).

If a item corresponding to a listing is sold-out outside of Etsy, there does not appear to be a way to update Etsy via the API to indicate the listing is sold out.


david olick

unread,
Aug 2, 2013, 2:34:06 PM8/2/13
to Etsy API V2

I would assume having a state of sold_out would mean that it has been sold on Etsy, which would require purchasing/transaction info to be generated.  The most we can do is set it to inactive.

--
You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etsy-api-v2...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Hoxworth

unread,
Aug 2, 2013, 2:42:40 PM8/2/13
to etsy-...@googlegroups.com, david...@gmail.com
That's understandable - sold_out only being an Etsy concept.  

How would you set an item quantity to zero?  This seems like a pretty common situation where an Etsy user might sell an item at a farmers market or show and then want that item quantity to be automatically set to zero so they don't sell the same item from their Etsy store.

Matt Graham

unread,
Aug 2, 2013, 3:29:48 PM8/2/13
to Etsy API V2
Hi Eric,

On Fri, Aug 2, 2013 at 6:42 PM, Eric Hoxworth <er...@nahnay.com> wrote:
That's understandable - sold_out only being an Etsy concept.  

How would you set an item quantity to zero?  This seems like a pretty common situation where an Etsy user might sell an item at a farmers market or show and then want that item quantity to be automatically set to zero so they don't sell the same item from their Etsy store.

At this point, I don't believe we support quantity = 0. You can set a listing quantity=0 via the web UI either.
I think your only 2 options at present are to mark the listing inactive or to delete it outright. I don't think there's any recovery of deleted listings, so this may not be a suitable option.

If neither of those work for you and you still want to set quantity = 0, can you make a ticket for it? Since this is not a current feature of the site overall, I'm not sure where we might have built in expectations that quantity will be > 0, so it's not clearly something that we can just add and not worry about it.

Thanks,
Matt

Reply all
Reply to author
Forward
0 new messages