dolibarr  17.0.4
INV123

Create stock movement object.You can use the following message to test this RES API: { "product_id": 1, "warehouse_id": 1, "qty": 1, "lot": "", "movementcode": "INV123", "movementlabel": "Inventory 123", "price": 0 } $price Can be set to update AWP (Average Weighted Price) when you make a stock increase $dlc Eat-by date. Will be used if lot does not exists yet and will be created. $dluo Sell-by date. Will be used if lot does not exists yet and will be created.

Parameters
int$product_idId product id {@min 1} {@from body} {@required true}
int$warehouse_idId warehouse {@min 1} {@from body} {@required true}
float$qtyQty to add (Use negative value for a stock decrease) {@from body} {@required true}
int$typeOptionally specify the type of movement. 0=input (stock increase by a stock transfer), 1=output (stock decrease by a stock transfer), 2=output (stock decrease), 3=input (stock increase). {@from body} {@type int}
string$lotLot {@from body}
string$movementcodeMovement code {} {@from body}
string$movementlabelMovement label {