Update item
phppos_update_itemWRITE: change fields of an existing item (for example its price, category or active state); only the fields you pass are sent. Overwrites the current values, and a price change applies to the next sale. Needs a Read/Write API key. The store's 'edit item' webhook, if configured, fires. POST /items/{item_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Item name. | |
| size | No | Size. | |
| tags | No | Tag names. | |
| item_id | Yes | Item id (find it with phppos_list_items). | |
| cost_price | No | Cost price. | |
| is_service | No | True for a service (no stock tracking). | |
| product_id | No | Product id / SKU. | |
| unit_price | No | Selling price. | |
| category_id | No | Category id - see phppos_list_categories. | |
| description | No | Short description. | |
| item_number | No | Barcode / item number (UPC). | |
| promo_price | No | Promotional price. | |
| supplier_id | No | Supplier person id - see phppos_list_suppliers. | |
| item_inactive | No | True to deactivate the item (it can no longer be sold). | |
| reorder_level | No | Stock level at which the item shows as low. |