Versions Compared

Key

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

This method allows you to update the prices and costs of an inventory item in boxes.

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
sorttitle
titleRelated Articles
cqllabel in ( "inventory-update" , "create-inventory" , "api-inventory" , "inventory-api" )
labelsinvoice invoice-creation order invoice-editing


Request


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

Method: POST

Content-Type: application/

json

Headers

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

JSON


Input Parameters

authenticationToken (required)(string:50)

: Komet

Sales security token.


inventoryId (required)(integer:20)

: Inventory Item ID. In Komet Sales, this field represents the Inventory

Inventory Item Line Id.


quantity (optional) (integer: 4)

: quantity

Number of boxes to

be added

add to the inventory.

 The

 

The maximum number of boxes per line is 100 boxes.


unitCost (required)(decimal:10,3)

: when unitType is Bunch you must use the bunch cost. When unitType is stem you must use the stem cost

The cost per Unit according to unitType.


priceA (optional)(decimal:10,3)

: The

The price A.

(You must send either price A or price B).priceB


priceB (optional)(decimal:10,3)

: The price B.  (You must send either price A or

The price B

)

.

Sample Request


Code Block
{
    "authenticationToken": "pfjup3eodu2p9sk729p7jsdl98",
    "inventoryId": 903359,
    "priceA": 4,
    "priceB": 7.919,
    "unitCost": 2.9888
}

Response

Output


message (string:500)

: description of the status of the transaction

Transaction status description.


status (integer:1)

: transaction

Transaction status. 1

for success or 0 for failure.Sample Response

= Success | 0 = Failure


Code Block
{
    "message": "The inventory Item has been updated successfully",
    "status": 1
}
Filter by label (Content by label)showLabelsfalsemax5sorttitletitleRelated Articlescqllabel in ( "inventory-update" , "create-inventory" , "api-inventory" , "inventory-api" )labelsinvoice invoice-creation order invoice-editing