This method allows you
inventory.
authenticationToken:
productId : hard good vendor product Id
: location obtain . This only applies for companies in Multi-Location mode unitCost
: the per unit
: the unit Sample Request
: transaction 1 for success or 0 for failure.
: description of the status of the transaction.Sample Response
Panel
Filter by label (Content by label) showLabels false max 10 showSpace false sort title cql label in ( "hard-goods-inventory" , "add-hard-good" , "edit-hard-goods" , "api-hard-goods" )
Excerpt |
---|
Use this method to update the costs and prices of product lines available in the Hard-Goods |
Inventory.
|
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
Request
URL: https://api.kometsales.com/api/hardgood.inventory.update
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
.
unitCost (required)(decimal: 10,2)
Unit cost
.
unitPrice (optional)(decimal: 10,2)
Unit price.
Code Block |
---|
{
"authenticationToken": "token_info_goes_here",
"productId": 17432,
"locationId": 2212,
"unitCost": 3,
"unitPrice": 1.2
} |
Response
Output
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
message (string:500)
Transaction status description.
Code Block |
---|
{
"message": "The item was successfully updated",
"status": "1"
} |
title | Related Articles |
---|
We've encountered an issue exporting this macro. Please try exporting again later.