Use this method to update an existing product in Komet Sales.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/product.update

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


productId (required)(integer:20)

Komet Sales internal Product ID.

You can get this value from the product.list API method.


category (required)(string:200)

Product category name.


color (optional)(string:100)

Product color.


variety (optional)(string:100)

Product variety. 


grade (optional)(string:100)

Product grade.


code (optional)(string:20)

Product code.


active (optional)(boolean:1)

If the Product is active.

Valid values: 1 = Active | 0 = Inactive


regionsOfOrigin (optional)(array)

An array containing regions where the product comes from. 


productRollUpCode (optional)(string:20)

Code of the roll-up product. When you transfer this item to the unit's inventory it will be changed to the roll-up item specified here.


defaultUnitType (optional(string:10)

Default unit type.

Valid values: Stem or Bunch


tags (optional)(string:200)

Tags associated with the product separated by a comma.


 You must enter at least one of the following parameters: variety, color, orgrade.


{
  "authenticationToken": "token_info_goes_here",
  "productId": 234234,
  "category": "Rose",
  "color": "Red",
  "variety": "Freedom",
  "grade": "50 cm",
  "code": "RS50",
  "tags": "standard,x-mas",
  "regionsOfOrigin" : [ "Africa","Quito" ],
  "active": 1 
 }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Trnsaction status description.


productId (integer:20)

Komet Sales internal Product ID.


{
  "status": "1",
  "message": "The product was successfully saved.",
  "productId": 234234
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock6748cdbf-2c62-4df9-b6c3-f872f776b22cari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock356545fe-97a3-474a-9ae3-97f32ec7e867defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock6748cdbf-2c62-4df9-b6c3-f872f776b22cari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock356545fe-97a3-474a-9ae3-97f32ec7e867