Overview


This method allows you to create new hard goods items in the Product Setup screen.

Request

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

  • Method: POST
  • Content-Type: application/json

Headers

authenticationToken (required)(string:50): Komet Sales security token.

Input Parameters

  • category (required)(string:200): name of the product category.

  • subcategory (required)(string): name of the product subcategory.

  • description  (required)(string:200): description of the hard good product.

  • color (optional)(string:200): color of the product.

  • activePerItem (boolean:1): 1 if the product is active, 0 if the product is not active.

  • vendorId (required if the vendorCode is not sent )(integer:20): Komet Sales internal ID of the vendor for the product that you want to update. You can obtain this value from the vendor.list API method.

  • vendorCode (required if the vendorId is not sent)(string:15): The code of the vendor that you want to update. You can obtain this value from the vendor.list API method.
  • sku (required) (string:15): SKU code (Stock Keeping Unit).

  • caseUPC (optional) (string:15): case UPC code (Stock Keeping Unit).

  • unitUPC (optional) (string:15): unit UPC code.

  • packSize (required) (integer:5): the number of units per pack.

  • unitCost (required) (decimal: 10,2): the cost per unit.

  • unitPrice (optional) (decimal: 10,2): the unit price.

  • unitPriceMarkup (optional) (decimal: 10,2): the unit price.

  • discount (optional) (decimal: 10,2):  discount percentage.

  • qtyForDiscount (integer): minimum quantity of boxes for discount.

  • activePerVendor (boolean:1): 1 if the vendor is active, 0 if the vendor is not active.


Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.

  • message (string:500): description of the status of the transaction.

  • productId (integer:20): product internal ID that was just created.