How to set negative inventory on a product through the API

in Development
The stock for products is maintained outside lightspeed, so it is updated through the API.
However the API doesn't allow to set negative inventory.
Can the API be improved to allow negative inventory too?
Is there a request for change process to go through?
Tags:
Best Answer
-
LucienVersendaal Moderator, Lightspeed Staff Posts: 991 moderator
Hi @JeroenR,
Thank you for contacting us.
I've tested this out in Postman, and it worked for me. I can set the inventory to a negative integer, here's my payload:
PUT /variants/{variant_id}.json { "variant": { "stockLevel": -5 } }
This is my response:
I hope this helps.