Update product
smaregi_update_productWRITE: change fields of one product (only the fields you pass are changed), for example its price or name. Overwrites the old values. PATCH /products/{product_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag. | |
| url | No | Product URL. | |
| cost | No | Unit cost. | |
| size | No | Size. | |
| color | No | Color. | |
| price | No | Selling price. | |
| division | No | Product division: 0 = normal (default), 1 = prepaid multi-use ticket (only contracts with that feature), 2 = option product. | |
| catchCopy | No | Catch copy. | |
| groupCode | No | Group code. | |
| categoryId | No | Category (department) id, see smaregi_list_categories. | |
| product_id | Yes | Numeric Smaregi id (string or number). | |
| description | No | Description. | |
| displayFlag | No | Show on the register (0 = hidden, 1 = shown). | |
| productCode | No | Product code (unique per contract). | |
| productKana | No | Product name, kana. | |
| productName | No | Product name. | |
| taxDivision | No | Tax division code (0 = tax included, 1 = tax excluded, 2 = tax free). | |
| customerPrice | No | Member price. | |
| salesDivision | No | Sales accounting: 0 = counted in sales (default), 1 = excluded from sales totals. Does not control whether the product can be sold; use displayFlag to hide it from the register. | |
| supplierProductNo | No | Supplier's product number. | |
| productPriceDivision | No | Price division: 1 = standard price (default), 2 = open price. | |
| stockControlDivision | No | Stock control: 0 = stock is managed (default), 1 = stock is not managed. |