dolibarr
17.0.3
|
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.
int | $product_id | Id product id {@min 1} {@from body} {@required true} |
int | $warehouse_id | Id warehouse {@min 1} {@from body} {@required true} |
float | $qty | Qty to add (Use negative value for a stock decrease) {@from body} {@required true} |
int | $type | Optionally 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 | $lot | Lot {@from body} |
string | $movementcode | Movement code {} {@from body} |
string | $movementlabel | Movement label { |