Use this method to delete an item from an existing Prebook in Komet Sales.

Valid Tokens: Company and Vendor.

note

Executing this method with a Vendor Token, the item to delete must be associated to the Vendor. The line will not be deleted but the quantity will be updated to zero.

Executing this method with a Vendor Token, the item to delete must be associated to the Vendor. The line will not be deleted but the quantity will be updated to zero.


Request


URL: https://api.kometsales.com/api/prebook.item.delete

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:20)

Komet Sales security token.


prebookId (required)(integer:20)

Komet Sales internal Prebook ID.

You can get this value from the prebook.create API method.


prebookItemId (required)(number:20)

Komet Sales internal Prebook Item ID.

You can get this value from the prebook.create API method.


{
  "authenticationToken": "token_info_goes_here",
  "prebookId": 85063,
  "prebookItemId": 9999999
}

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


{
  "status": "1",
  "message": "success"
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockf20dd789-f657-4a9b-9db5-b8571b2d3bd3ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockc65dc665-713d-4ba8-a6de-b17178a26079defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockf20dd789-f657-4a9b-9db5-b8571b2d3bd3ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockc65dc665-713d-4ba8-a6de-b17178a26079