How to remove an itemComponent from an Assembly using API?

14 views
Skip to first unread message

br...@newdistrict.ca

unread,
May 2, 2017, 7:34:54 PM5/2/17
to Lightspeed Retail API Developers
Hopefully the subject has enough detail. I'm working with the rest API, and I've figured out how to create an assembly, then add products to it.  I've also figured out how to modify the quantity OR the product id of an existing entry (itemComponent) in the assembly, but i'm lost on how to remove an itemComponent from the assembly outright.  I would expect setting the quantity to 0 to do this, but it just reverts to 1 instead.

I would like to accomplish the equivalent of clicking the trash can icon in the Assembly editor view.  The line disappears entirely, removing the item from the assembly.

Screen Shot 2017-05-02 at 4.32.00 PM (3).png

br...@newdistrict.ca

unread,
May 4, 2017, 12:54:32 PM5/4/17
to Lightspeed Retail API Developers
for anyone coming across this, I got the answer from lightspeed support:

Hello Brad,
Thanks for your email. Deleting an ItemCompenent is only possible via the UI, via the API is only possible to assign them to its parent Item and/or update them.
Kind Regards,

Alex Lugo 

API Integration Specialist

Reply all
Reply to author
Forward
0 new messages