Update selected item fields
Changes only the fields you send for the item identified by itemId, such as name, prices, UPC, status, or the IDs of its category, brand, tax and other attributes. Unknown fields are ignored.
How to use it
- Send only the fields to change, e.g. {"sellingPrice": 12.5, "status": "INACTIVE"}. Send prices as decimal numbers (12.0, not 12); a whole number is rejected.
- Accepted keys: productId, itemName, sellingPrice, costPrice, upc, description, season, status, departmentId, categoryId, subcategoryId. The item type cannot be changed here; use Replace an item.
- Linked attributes by ID use the keys image, style, size, color, brand, tax and discount; an unknown ID is rejected as not found and unknown keys are ignored.
- A changed sellingPrice is recorded in the price change audit trail; the updated item is returned.
BearerAuthAuthorizationBearer <JWT>itemId*stringItem code (itemId) of the item, e.g. from List items.
application/json- body
[key: string]?OK
*/*- response
id?|Internal numeric ID. Set by the server; other endpoints identify items by itemId instead.
int64itemId*stringItem code: your unique identifier for the item, used in URLs and by other endpoints. Cannot be changed after creation.
upc?|Barcode (UPC/EAN) of the item, if any.
productId*stringProduct identifier the item belongs to, e.g. a parent product code shared by variants.
itemName?|Display name of the item.
sellingPrice*numberSelling price per base unit, in the merchant's currency.
doublecostPrice*numberCost price per base unit, in the merchant's currency.
doubledepartment?The item's department (id, name), or null.
category?The item's category, or null.
subcategory?The item's subcategory (id, name), or null.
description?|Free-text description of the item.
imageGallery?The gallery image linked to the item, or null.
style?The item's style (id, name), or null.
size?The item's size (id, name, status), or null.
color?The item's colour, or null.
brand?The item's brand, or null.
season?|Season label, e.g. a collection name. Free text up to 100 characters.
type*stringSTORE_ITEM for a normal sellable item, MODIFIER_ITEM for an add-on/modifier sold with another item.
"MODIFIER_ITEM""STORE_ITEM"tax?The tax applied to the item (name and rates), or null.
discount?The discount linked to the item, or null.
status*stringItem status: ACTIVE (sellable), INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringTime stored when the item was created (ISO 8601 timestamp). Replace an item and Update selected item fields do not refresh this time, so later edits are not reflected in it.
date-timeitemType*stringManufacturing role: RAW_MATERIAL, SEMI_FINISHED, FINISHED_GOOD (default), CONSUMABLE or TRADING.
unitCost?|Unit cost in the merchant's currency; for manufactured items it is recalculated from component costs when a production order completes.
baseUomId?|ID of the item's base (stocking) unit of measure; see List units of measure.
uuidcatchWeight*booleanTrue for a variable-weight item: stock is measured by actual net weight at receipt. Its base unit must be a weight unit.
hsnCode?|India GST: HSN classification code of the item (up to 8 characters).
gstRatePercent?|India GST: total GST rate as a percentage.
igstRatePercent?|India GST: IGST rate (inter-state sales) as a percentage.
cgstRatePercent?|India GST: CGST rate (intra-state sales) as a percentage.
sgstRatePercent?|India GST: SGST rate (intra-state sales) as a percentage.
commodityCode?|EU Intrastat: commodity code of the item (up to 8 characters).
netMassKg?|EU Intrastat: net mass of one unit in kilograms.
countryOfOrigin?|EU Intrastat: two-letter ISO country code where the item was produced.
curl -X PATCH 'https://beta.iotoms.com/api/v1/catalog/items/string' \ -H 'Content-Type: application/json' \ -d '{ "property1": {}, "property2": {}}'{ "id": 0, "itemId": "string", "upc": "string", "productId": "string", "itemName": "string", "sellingPrice": 0.1, "costPrice": 0.1, "department": { "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "category": { "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "subcategory": { "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "description": "string", "imageGallery": { "id": 0, "imageUrl": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "style": { "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "size": { "id": 0, "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "color": { "id": 0, "name": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "brand": { "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z" }, "season": "string", "type": "MODIFIER_ITEM", "tax": { "id": 0, "name": "string", "taxRate1": 0, "taxRate2": 0, "modifiedTime": "2019-08-24T14:15:22Z", "status": "string" }, "discount": { "id": 0, "name": "string", "discountType": 0, "rate": 0, "modifiedTime": "2019-08-24T14:15:22Z", "status": "string", "buyQuantity": 0, "getQuantity": 0, "getDiscountPercent": 0, "tierMinQuantity": 0 }, "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z", "itemType": "string", "unitCost": 0, "baseUomId": "0c43b7c4-22c4-4b37-9c1a-485778bd5b04", "catchWeight": true, "hsnCode": "string", "gstRatePercent": 0, "igstRatePercent": 0, "cgstRatePercent": 0, "sgstRatePercent": 0, "commodityCode": "string", "netMassKg": 0, "countryOfOrigin": "string"}