---
title: "Update an Item"
method: PUT
path: "/v2/product"
tags: ["Product V2"]
---

# Update an Item

`PUT /v2/product`

## Request body

- ItemV2
  - `id` string, required — Unique id for each item.
  - `name` string, required — Name of the Product
  - `quantity` number, required — Opening Quantity
  - `unit_price` number, required — Price per item without Tax
  - `tax_rate` number — Tax percentage for each item . Only valid tax rates are accepted
  - `price_with_tax` number, required — Price per item with Tax
  - `purchase_price_with_tax` number — Purchase Price per item with Tax
  - `description` string — Item Description
  - `hsn_code` string — HSN Code
  - `item_type` 'Product' | 'Service', required — Product or Service enum
  - `unit` string — Item quantity unit. You can find the GST-approved units in the UQC Codes section at: https://einvoice1.gst.gov.in/Others/MasterCodes.
  - `cess_rate` number — Cess Percent of the Item
  - `cess_amount` number — Cess Amount of the Item
  - `barcode` string — Barcode
  - `category` string — Category
  - `custom_columns` ProductCustomFieldsV2[] — Custom Fields
    - `label` string, required
    - `value` string, required
  - `alternative_units` AlternativeUnitsV2[] — Alternative Units
    - `alternative_unit` 'LAD' | 'PET' | 'JARS' | 'HEGAR' | 'POCH' | 'BOR' | 'COIL' | 'FT' | 'IN' | 'PRT' | 'CASE' | 'EACH' | 'CPS' | 'PADS' | 'REEL' | 'BLISTER' | 'PAD' | 'PCS' | 'PRS' | 'QTL' | 'ROL' | 'SET' | 'SQF' | 'SQM' | 'SQY' | 'TBS' | 'TGM' | 'THD' | 'TON' | 'TUB' | 'UGS' | 'UNT' | 'YDS' | 'OTH' | 'HRS' | 'MINS' | 'LTR' | 'MTS' | 'MLG' | 'BCK' | 'GLS' | 'PLT' | 'CTS' | 'STRP' | 'CFT' | 'VIAL' | 'BAG' | 'BAL' | 'BDL' | 'BKL' | 'BOU' | 'BOX' | 'BTL' | 'BUN' | 'CAN' | 'CBM' | 'CCM' | 'CMS' | 'CTN' | 'DOZ' | 'DRM' | 'GGR' | 'GMS' | 'GRS' | 'GYD' | 'KGS' | 'KLR' | 'KME' | 'MLT' | 'MTR' | 'NOS' | 'PAC' | 'CNT' | 'RFT' | 'RIM' | 'TIN' | 'CHUDI' | 'PATTA' | 'KIT' | 'CUFT' | 'RMT' | 'MM' | 'AMP' | 'PAIR' | 'ANA' | 'CFM' | 'YRS' | 'MTH' | 'MAN-DAY' | 'NIGHT' | 'DAY' | 'SQIN' | 'WEEK' | 'PERSON' | 'LOT' | 'SAC' | 'REAM' | 'BRASS' | 'NONE' | 'COPY' | 'TKT' | 'KW' | 'W' | 'SEC' | 'BARREL' | 'SHEETS' | 'HOLES' | 'LINES' | 'LGTH' | 'TRIP' | 'LPSM' | 'WDTH' | 'SQCM' | 'SHFT' | 'AU' | 'SQKM' | 'JOBS' | 'CUIN' | 'IDIA' | 'INMT' | 'AC' | 'HA' | 'BARS' | 'PKTS' — Alternative Unit
    - `conversion_rate` number — Conversion Rate
  - `preferences` ProductPreferencesV2
    - `not_for_sale` boolean — Hides the item for sale and shows only while making a purchase. eg. Office equipment
    - `low_stock_alert` integer — Low stock alert for the item
    - `show_online` boolean — Show or hide the product in catalogue/ online store
    - `discount_percent` number — Default Discount Percent
  - `visibility` integer — If set to 1, the product will be visible to all branches. If set to 0, the product will be visible only to the branch it was created in.

## Response `200`

Success

- ProductResponseV2
  - `success` boolean — Success flag
  - `message` string — Response message
  - `error_code` string — Error Code
  - `errors` object — Errors
  - `data` EmptyData
    - `message` string — Response message

## Other responses

- `400` — Validation Error
- `401` — Unauthorized

---

[API](https://skmtc.dev/getswipe/apis/swipeapi.md) · [All operations](https://skmtc.dev/getswipe/apis/swipeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getswipe/swipeapi/revisions/80fcaf1a3463/schema)
