Overview

This method allows to delete completely an inventory line. Keep in mind that this method only works with company's tokens.

Request

https://api.kometsales.com/api/inventory.delete

  • Method: POST
  • Content-Type: application/json


Input parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.
  • InventorylineId (required) (integer:20):  Inventory line ID. (This can be obtained from the API method inventory.list, named as orderItemId).


Response

Output:

    • message (String): description of the transaction status.
    • status (integer:1): transaction status. 1 for success or 0 for failure.

Sample
{ "message": "The inventory Item has been updated successfully", "status": 1 } { "message": "The inventory Item could not be deleted", "status": 0 }

I can't delete some inventory lines.

Boxes already sold cannot be deleted through this method.