Versions Compared

Key

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

Overview

Excerpt

This method allows you to delete an item from an existing Prebook on Komet Sales.

 

Request

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

Method: POST

Content-Type: application/

json

JSON

Input Parameters

:

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

  • prebookId (required)(integer:20): the Komet Sales internal prebook ID that you want to update. You can obtain this value from the prebook.create API method.

  • prebookItemId (required)(number:20): ID of the Komet Sales prebook item that you want to delete. This value can be obtained from the prebook.create API method.

Elite soft json viewer
width100%
languagejs
themeConfluence
titleSample 1
height100%

Sample Request

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

Response

Output

:

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

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


elite-soft-json-viewer
width100%languagejsthemeConfluencetitleSample 1height100%

Sample Response

Code Block
{
  "status": "1",
  "message": "success"
 }
Tip

Valid Tokens: Company and Vendor.

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 0.

Panel
titleRelated Articles
Filter by label (Content by label)
showLabelsfalse
max10
showSpacefalse
sorttitle
cqllabel in ( "editing-prebooks" , "prebook-summary" , "prebooks-creation" )
labelsediting-prebooks prebooks-creation prebook-summary
Info
titleInformation
This method can be executed with tokens type company and vendor (In the second case, the item to delete must be associated to the vendor and the line will not be delete but the quantity will be update to 0).