Overview

This method allows you to add an item from the vendor availability to an existing Prebook on Komet Sales.

Request

https://api.kometsales.com/api/prebook.vendor.availability.item.add

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

Input Parameters:

  • authenticationToken (required)(string:50): 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.
  • inventoryIds (required)(integer:20): Id of the vendor availability items that want to add to the order. This field is required. This value can be obtained from the vendor.availability.items.list API method.
  • quantity (required)(integer:10): Number of boxes.
  • price (required) (decimal:10,2): The unit price.
  • markCode (optional)(string:20): The item mark code.
  • boxTypeId (optional) (integer: 10): The ID of the Box Type. This field is not required for K2K transactions. 
  • boxTypeCode (optional) (string: 3): The code of the Box Type. This field is not required for K2K transactions. 
  • stemsBunch (optional) (integer: 5): Number of stems per bunch. This field is not required for K2K transactions. 
  • unitType (optional) (string: 10): Stem or Bunch. This field is not required for K2K transactions. 
  • bunches (optional) (integer: 10): Number of bunches per box. This field is not required for K2K transactions. 


Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure/error.
  • message (string:500): contains the status description of the request.
  • prebookItemId (integer:20): Id of the prebook item added to the order.