This method allows you to update the prices and costs of an inventory item in boxes.
json
: Komet
: Inventory In Komet Sales, this field represents the Inventory Line Id.
: quantity be added The boxes
: when unitType is Bunch you must use the bunch cost. When unitType is stem you must use the stem cost
: The (You must send either price A or price B).priceB
: The (You must send either price A or price B).Sample Request
Output
: description of the status of the transaction
: transaction 1 for success or 0 for failure.Sample Response
Filter by label (Content by label) showLabels false max 5 sort title title Related Articles cql label in ( "inventory-update" , "create-inventory" , "api-inventory" , "inventory-api" ) labels invoice invoice-creation order invoice-editing
Excerpt | ||
---|---|---|
Use this method to update the information or amount of an Inventory item.
|
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Request
Headers
authenticationToken (required)(string:50): Komet Sales security token.
JSON
Input Parameters
authenticationToken (required)(string:50)
Sales security token.
inventoryId (required)(integer:20)
Inventory Item Line ID.
quantity (optional)(integer:4)
Number of boxes to
add to the inventory.
The maximum number of boxes per line is 100
.
unitCost (required)(decimal:10,3)
The cost per Unit according to unitType
.
priceA (optional)(decimal:10,3)
The price A.
priceB (optional)(decimal:10,3)
The price B.
Code Block |
---|
{
"authenticationToken": "pfjup3eodu2p9sk729p7jsdl98",
"inventoryId": 903359,
"priceA": 4,
"priceB": 7.919,
"unitCost": 2.9888
} |
Response
message (string:500)
Transaction status description.
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
Code Block |
---|
{
"message": "The inventory Item has been updated successfully",
"status": 1
} |
We've encountered an issue exporting this macro. Please try exporting this page again later.