Add a Product
Use this method to add a product into Komet Sales.
Valid Tokens: Company.
Related Articles
-
Delete a Prebook 1.0 (API)
-
-
Add Products to Your Komet Account (Knowledge Base)
-
-
Inventory Summary (Knowledge Base)
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.
description (optional)(string:300)
Text input for adding a product description.
tags (optional)(string:200)
Tags associated with the product separated by a comma.
You must use at least one of the following parameters: Variety, Color, Grade.
{
"authenticationToken": "token_info_goes_here",
"category": "Rose",
"color": "Red",
"variety": "Freedom",
"grade": "50 cm",
"code": "RS50",
"description": "Rose Red Freedom 50cm",
"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.
{
"status": "1",
"message": "The product was successfully saved.",
"productId": "234234"
}