Add a Vendor Availability Item to a Prebook
Use this method to add an item from Vendor Availability to an existing Prebook in Komet Sales.
Valid Tokens: Company.
Related Articles
-
Delete a Prebook 1.0 (API)
-
Allocations (Knowledge Base)
-
Prebooks (Knowledge Base)
-
Upload Vendor Availability Files (Knowledge Base)
-
Manage Prebooks from Vendor Availability (Knowledge Base)
Request
URL: 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)
Komet Sales internal Prebook ID.
You can get this value from the prebook.create API method.
inventoryIds (required)(integer:20)
Vendor Availability Item ID.
You can get this value from the vendor.availability.items.list API method.
quantity (required)(integer:10)
Number of boxes.
price (required) (decimal:10,2)
Unit price.
markCode (optional)(string:20)
Item mark code.
boxTypeId (optional)(integer: 10)
Box-Type ID.
This field is not required for K2K transactions.Â
boxTypeCode (optional) (string:3)
Box-Type code.Â
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)
Unit type.
Valid values: 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.
{
"authenticationToken": "your_token_goes_here",
"prebookId": 454371,
"inventoryIds": "428545, 428544",
"quantity": 1,
"price": 1
}
Response
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
message (string:500)
Transaction status description.
prebookItemId (integer:20)
Komet Sales internal Prebook Item ID.
{
"status":1,
"message":"Item was successfully added to the order Item was successfully added.",
"prebookItemId":930125
}