Use this method to add an item from Vendor Availability to an existing Prebook in Komet Sales.

Valid Tokens: Company.


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
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockd5188b59-f61c-4dbc-a62b-cb03945bde7dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock5b560b7f-0963-44a8-983e-5593e81ceb49defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockd5188b59-f61c-4dbc-a62b-cb03945bde7dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock5b560b7f-0963-44a8-983e-5593e81ceb49