Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Request

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

Method: POST

Content-Type: application/json

Headers

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

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 Line Id.

  • quantity (optional) (integer: 4): quantity of boxes to be added to the inventory. The maximum number of boxes per line is 100 boxes.

  • unitCost (decimal:10,3): when unitType is Bunch you must use the bunch cost. When unitType is stem you must use the stem cost.

  • priceA (decimal:10,3): The price A. (You must send either price A or price B).

  • priceB (decimal:10,3): The price B.  (You must send either price A or price B).

Sample Request

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

Response

Output

  • message (string:500): description of the status of the transaction.

  • status (integer:1): transaction status. 1 for success or 0 for failure.

Sample Response

{
    "message": "The inventory Item has been updated successfully",
    "status": 1
}

Related Articles


  • No labels