Add stock
skuvault_add_stockWRITE: add quantity of a product to a warehouse location (a transaction in SkuVault's history; every call adds again, so do not retry blindly). The transaction reason must already exist in SkuVault. Serialized or lotted products need serial numbers / a scanned lot code. Moderate throttling (10/min). POST /inventory/addItem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Product SKU (give sku or code). | |
| code | No | Product code (give sku or code). | |
| note | No | Transaction note. | |
| reason | Yes | Transaction reason; must already exist in SkuVault. | |
| lot_code | No | Lot number (ScannedCode); required when adding to a lotted product. | |
| quantity | Yes | Quantity to add (a positive whole number). | |
| warehouse_id | Yes | SkuVault warehouse id (an integer; see skuvault_list_warehouses). | |
| location_code | Yes | Location the quantity is added to. | |
| serial_numbers | No | Serial numbers, as many as the quantity; only for serialized products. |