Versions Compared

Key

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

This method allows you to update the costs and prices of product lines available in the Hard-Goods inventory.

Tip

Valid Tokens: Company.


Request


 

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

Method: POST

Content-Type: application/JSON


Header

authenticationToken

authenticationToken (required)(string:50)

:  

Komet Sales security token.


Input Parameters

productId 

productId  (required)(integer: 20)

: hard good vendor product Id

Hard Good Vendor product ID.


locationId (optional)(integer:20)

: location

Komet Sales internal Location ID.

Only applies to Multi-Location companies.

You can

obtain

get this value from the location.list API method.

This only applies for companies in Multi-Location mode.unitCost 


unitCost (required)(decimal: 10,2)

: the

Unit cost

per unit

.


unitPrice (optional)(decimal: 10,2)

: the unit

Unit price.

Sample Request


Code Block
{
  "authenticationToken": "token_info_goes_here",
  "productId": 17432,
  "locationId": 2212,
  "unitCost": 3,
  "unitPrice": 1.2
}

Response

Output


status (integer:1)

: transaction

Transaction status. 1

for success or 0 for failure.

= Success | 0 = Failure


message (string:500)

: description of the status of the transaction.Sample Response

Transaction status description.


Code Block
{
  "message": "The item was successfully updated",
  "status": "1"
 }
Panel
titleRelated Articles
Filter by label (Content by label)showLabelsfalsemax10showSpacefalsesorttitlecqllabel in ( "hard-goods-inventory" , "add-hard-good" , "edit-hard-goods" , "api-hard-goods" )