Use this method to add a new product line to the Hard-Goods inventory.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/hardgood.inventory.add

Method: POST

Content-Type: application/JSON


Header

authenticationToken (required)(string:50)

Komet Sales security token.


Input Parameters

productId (required)(integer:20)

Hard Good Vendor product ID.


locationId (optional)(integer:20)

Komet Sales internal Location ID.

Only applies to Multi-Location companies.

You can get this value from the location.list API method.


quantity (required)(integer:10)

The number of hard goods units to be added to inventory. 

The maximum number of products allowed is 999.


unitCost (required)(decimal:10,2)

The cost per unit.


unitPrice (optional)(decimal:10,2)

The price per unit.


{
   "authenticationToken": "token_info_goes_here",
   "productId": 17432,
   "locationId": 2212,
   "quantity": 50,
   "unitPrice": 1.2,
   "unitCost": 3
}

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


hardGoodInventoryId (integer:20)

New product ID.


{
	"status": 1,
	"message": success,
	"hardGoodInventoryId": 1313
}

defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock80872707-e2d0-4795-9ebb-691900d43a7eari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3a1f72c8-6920-4449-b189-51f2578b500bdefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock80872707-e2d0-4795-9ebb-691900d43a7eari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3a1f72c8-6920-4449-b189-51f2578b500b