Set inventory level
easystore_set_inventory_levelWRITE. Set the stock of one variant at one location to an exact number (quantity 0 or more). Omit location_id for the primary location. Overwrites the current quantity; use easystore_adjust_inventory_level for a relative change. Needs write_products. PUT /api/4.0/inventory_levels/set.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | The exact available quantity to set. | |
| variant_id | Yes | Variant id (see easystore_list_product_variants). | |
| location_id | No | Location id (see easystore_list_locations). Default: the primary location. |