Unable to "un-archive" item on PUT with archive=false

58 views
Skip to first unread message

Bob Hewett

unread,
Sep 9, 2014, 12:43:50 PM9/9/14
to merchantos-a...@googlegroups.com
Is there a way to un-archive an item?  I want to be able to do this but when I try to change the <archive>value I get the following response:

"Item not Updated. "archived" cannot be set on Update. File: /web/cloud/includes/business/process/Base.class.php Line: 100"



marshall...@lightspeedretail.com

unread,
Sep 9, 2014, 2:52:46 PM9/9/14
to merchantos-a...@googlegroups.com
Bob,


You would not do a PUT command, you would send a DELETE command to https://api.merchantos.com/API/Account/XXXXX/Item/ITEMID.  This will archive it automatically.  

Thanks,
Marshall Merritt

Bob Hewett

unread,
Sep 9, 2014, 3:12:10 PM9/9/14
to merchantos-a...@googlegroups.com
I'm trying to 'un-delete' it, not archive (or delete it).  Our system is the system of record, so I want to make sure we can "un-delete' items that have been removed in Lightspeed.  There was another post that indicated this should work.

Do I have to do a POST instead to re-add it?

marshall...@lightspeedretail.com

unread,
Sep 11, 2014, 12:22:39 PM9/11/14
to merchantos-a...@googlegroups.com
Bob,

Currently the API does not support unarchiving the product. You would have to create a new product (which will give you a new ItemID) based off the old product through the API.

Thanks,
Marshall

br...@newdistrict.ca

unread,
Aug 18, 2017, 3:48:50 PM8/18/17
to Lightspeed Retail API Developers, marshall...@lightspeedretail.com
3 years later, still cannot unarchive products using the API.  Another example of the discrepancy between what is possible in UI what is possible with API.

Is there plans to ever reconcile this gap and allow unarchiving products using the API?
Reply all
Reply to author
Forward
0 new messages