Versions Compared

Key

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

Use this method to add a product into Komet Sales.

Tip

Valid Tokens: Company.


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

Request


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

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


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 or product legacy code. 


regionsOfOrigin (optional)(array)

An array containing the regions where the product comes from. 


productRollUpCode (optional)(string:20)

Code of the rollup product. 

When you transfer this item to the Inventory in Units, it will be changed to the roll-up item specified here.


defaultUnitType (optional(string:10)

Default unit type of the product.

Valid values: Stem or Bunch. 


tags (optional)(string:200)

Tags associated with the product separated by a comma.


Info

You must use at least one of the following parameters: Variety, Color, Grade.  


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

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction 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.