Update inventory
loyverse_update_inventoryUpdate inventory stock levels for variants in specific stores. Adjust stock quantities after sales or audits by sending variant IDs, store IDs, and new stock amounts.
Instructions
Update inventory stock levels (POST /inventory). List returns stock levels per variant/store. Update expects a body like { inventory_levels: [{ variant_id, store_id, stock_after }] }. Field names follow the Loyverse API v1.0 (developer.loyverse.com/docs). If a call fails with a 400, the error message from Loyverse is returned verbatim — adjust the fields and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Body for the inventory update, e.g. { inventory_levels: [{ variant_id, store_id, stock_after }] }. |