minhhieu106 wrote:Now i got the new webhook event inventory.stocklevel but on this event only return Inventory ID and Warehouse ID.
Can we return more information such as stock in, stock out, stock onhand for this product?
Not without making some significant changes.
Most of the time when we adjust stock resulting in the webhook inventory.stocklevel being invoked we don't know the stock level ourselves - we simply adjust stock levels upwards or downwards - eg:
- Code: Select all
UPDATE IN_WarehouseSOH SET QuantityLeft = QuantityLeft - {0} WHERE InventoryID = {1} AND IN_LogicalID = {2}
What you can do, however, is when you receive the webhook perform a GET on our API to retrieve the stock level or any other information you are interested in.
Mike