Excerpt | ||
---|---|---|
Use this method to add an item in units to the Komet Sales Inventory.
|
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Request
URL: https://api.kometsales.com/api/inventory.units.add
Method: POST
Content-Type: application/JSON
Input Parameters
authenticationToken (required)(string:50)
Komet Sales security token.
productCode (required)(string:20)
Komet Sales inventory item product code.
stemsBunch (required)(integer:10)
Stems per bunch.
unitType (required)(string:5)
Unit type.
Valid values: Stem or Bunch
quantity (required)(integer:10)
Total units you are adding to the inventory.
block (optional)(string:20)
Block code.
bed (optional)(string:20)
Bed code.
cutter (integer:10)
Cutter code.
customerCode (string:20)
Customer code.
cutDate (optional)(date)
The cut date.
Date format: YYYY-MM-DD
Code Block |
---|
{ "authenticationToken": "tkcldomk9s2sb973i0seag334o", "block": "1-A", "bed": "123", "cutter": 2332, "productCode": "235284", "stemsBunch": 10, "unitType": "Stem", "quantity": 1, "customerCode": "365634", "cutDate": "2020-08-15" } |
Response
message (string:500)
Transaction status description.
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
Code Block |
---|
{ "message": "The inventory unit has been created successfully", "status": "1" } |