Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "product" , "product-add" , "company-token" )

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.


Info

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


Code Block
{
  "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.


Code Block
{
  "status": "1",
  "message": "The product was successfully saved.",
  "productId": 234234
 }
We've encountered an issue exporting this macro. Please try exporting this page again later.