Remove stock
skuvault_remove_stockWRITE: remove quantity of a product from a warehouse location (a transaction in SkuVault's history; every call removes again, so do not retry blindly). The transaction reason must already exist in SkuVault. Serialized products need serial numbers. Moderate throttling (10/min). POST /inventory/removeItem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Product SKU (give sku or code). | |
| code | No | Product code (give sku or code). | |
| reason | Yes | Transaction reason; must already exist in SkuVault. | |
| quantity | Yes | Quantity to remove (a positive whole number). | |
| warehouse_id | Yes | SkuVault warehouse id (an integer; see skuvault_list_warehouses). | |
| location_code | Yes | Location the quantity is removed from. | |
| serial_numbers | No | Serial numbers, as many as the quantity; only for serialized products. |