Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This method allows you
Excerpt

Use this method to add an item in units to the Komet Sales

inventory.

Inventory.

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
sorttitle
titleRelated Articles
cqllabel in ( "invoice" , "order" , "invoice-creation" )
labelsinvoice invoice-creation order

Request


URL: https://api.kometsales.com/api/inventory.units.add

Method: POST

Content-Type: application/

json 

JSON


Input Parameters

authenticationToken

authenticationToken (required)(string:50)

:

Komet Sales security token.


productCode (required)(string:20)

: product code of the

Komet Sales inventory item product code.


stemsBunch (required)(integer:10)

: stems for

Stems per bunch.

unitType 

unitType (required)(string:5)

: stem or bunch are the unique valid values.

Unit type.

Valid values: Stem or Bunch


quantity (required)(integer:10)

: quantity of units to be added to

Total units you are adding to the inventory.


block (optional)(string:20)

: the code of the block

Block code.


bed (optional)(string:20)

: the code of the bed

Bed code.


cutter (integer:10)

: the code of the cutter

Cutter code.


customerCode (string:20)

:

Customer code

of the customer

.


cutDate (optional)(date)

: The

The cut date

(date

.

Date format: YYYY-MM-

DD). 

Sample Request

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

Output


message (string:500)

: description of the status of the transaction

Transaction status description.


status (integer:1)

: transaction

Transaction status.

1 for success or 0 for failure.

Sample Response

Valid values: 1 = Success | 0 = Failure


Code Block
{
    "message": "The inventory unit has been created successfully",
    "status": "1"
}
Filter by label (Content by label)showLabelsfalsemax5sorttitletitleRelated Articlescqllabel in ( "invoice" , "order" , "invoice-creation" )labelsinvoice invoice-creation order
We've encountered an issue exporting this macro. Please try exporting this page again later.