Stock level changes on order/invoice
questions regarding inventory stock level and orders:
- I am looking at https://developers.lightspeedhq.com/ecom/endpoints/variantmovement. In one of our orders a product was ordered with a quantity of 3. Then a credit was created for 1 of those products. When the credit invoice was created, the user toggled 'Update Stock' to 'on'. I see a record in variant movement with stockLevelChange set to -3 (for original order), then I see a record in variant movement with the stockLevelChange field is set to -2. I would expect that last record to indicate +1 as a credit is returning to the product to inventory. Could you please explain how to interpret the variant movement api endpoint
- In the case above, no 'Return' record (https://developers.lightspeedhq.com/ecom/endpoints/return/) was created, only the toggle 'Update stock' was used. I noticed in other orders where 'Return' was used, the orderProducts (https://developers.lightspeedhq.com/ecom/endpoints/orderproduct/) quantityReturned field was correctly updated. But when the credit invoice (with toggle 'Update stock') was used it did not update the quantityReturned field for that OrderProduct. Is this expected behavior?
- Is there a consistent way to know if a product was returned to the inventory (whether a "Return" or 'Update stock' toggle was used) and tie it to the original order product (or invoice item)?
Post edited by rhofland on
0 · Share on Google+