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 costs and prices of product lines available in the Hard-Goods inventory.

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): location Komet Sales internal ID. You can obtain this value from the location.list API method. This only applies for companies in Multi-Location mode.

  • unitCost (required) (decimal: 10,2): the cost per unit.

  • unitPrice (optional) (decimal: 10,2): the unit price.

Sample Request

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

Response

Output

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

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

Sample Response

{
  "message": "The item was successfully updated",
  "status": "1"
 }


  • No labels