Update a Product

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.


description (optional)(string:300)

Text input for adding a product description.


tags (optional)(string:200)

Tags associated with the product separated by a comma.


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


 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", "description": "Rose Red Freedom 50cm", "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 }
Peacock