Function

   

The Inventory handling Issue API is used to issue parts from a warehouse.



URL

{Root URL}/API/InventoryHandling/Issue/{API Key

    

Parameters


ParameterDescriptionRequiredComment
1 IPKEYThe IPKEY is used to select a partNThe IPKEY can be used as the main identifier for the part. If used, other parameters will be used to validate the IPKEY.
2serialNoSerial numberNRequired if the part being issued is serialized.
3serialUniqSerial informationNAlternative to a serial number (serialNo).
4part_sourcPart sourceYCan be "BUY," "MAKE," or "CONSG."
5UNIQ_KEYPart identification keyNCan be used to choose the product.
6part_noPart numberY
7RevisionPart's revision levelNRequired if the selected part has a revision level.
8custPartNoCustomer part numberNUsed if the part source is "CONSG."
9custRevCustomer part revision levelNUsed with a customer part number (custPartNo) if the part has a revision level.
10partMfgrPart manufacturerNUsed to specify which manufacturer the part will come from.
11mfgr_pt_noManufacturer's part numberNUsed to specify which manufacturer the part comes from.
12uniqmfgrhdManufacturer part unique identifierNUsed to specify which manufacturer the part comes from.
13warehouseWarehouse nameYSelect which warehouse the part will be issued from.
14locationWarehouse locationNChoose the warehouse location the part will be issued from if there is one assigned.
15uniqWhWarehouse ID numberNCan be used instead of a warehouse.
16W_KeyInventory unique identifierNCan be used to specify both a warehouse and a location.
17lotCodeLot codeNRequired if the selected part is lot coded.
18expDate
NRequired if the part is lot coded. Use the following date format: MM-DD-YYYY.
19referenceLot referenceNCan only be used if the part is lot coded.
20poNumPurchase order numberNUsed only when there is lot code information. But is not needed if the part was received through inventory handling.
21issuedQuantityIssued quantityYThe amount to be issued.
22issueToWhere the part will be issuedYThis is a user-defined field.
23gl_nbrGeneral ledger number for the transactionYNot required if the part source is "CONSG."
24WoNoWork order number<n<> </n<>Should remain empty unless created by KIT API
25reasonReason for issueYCan be "INVENTORY ADJUSTMENTS," "SCRAP," "INSTORE ISSUES," "RETURNS TO VENDORS FROM STOCK."
26transactionReferenceTransaction referenceNThis is a user-defined field.
27inStorReturn   
28deptKeyShop floor department keyNUsed when issuing a part back to WIP from FGI.
29actvKeyShop floor activity keyUsed when issuing a part back to WIP from FGI.
30fk_useridUser IDN

   

Example Strings

No Lot Code and No Serialization

   

URL

   

?part_sourc=buy&uniqmfgrhd=UNIQMFGRHD&uniq_key=UNIQKEY&warehouse=WAREHOUSE&location=LOCATION&IssuedQuantity=1&issueTo=ISSUETO&gl_nbr=0000000-00-00



JSON  


{

"part_source":"BUY",

"uniqmfgrhd":"UNIQMFGRHD",

"uniq_key":"UNIQKEY",

"warehouse":"WAREHOUSE",

"location":"LOCATION",

"issuedQuantity":"1",

"issueTo":"ISSUETO",

"gl_nbr":"0000000-00-00"

}

   

Issue Serialized


URL

?part_sourc=buy&uniqmfgrhd=UNIQMFGRHD&uniq_key=UNIQKEY&serialNo=000000000000000000000000000000&warehouse=WAREHOUSE&location=LOCATION&IssuedQuantity=1&issueTo=ISSUETO&gl_nbr=0000000-00-00


 

JSON


{

"part_sourc":"BUY",

"uniqmfgrhd":"UNIQMFGRHD",

"uniq_key":"UNIQKEY"

"serialNo":"000000000000000000000000000000",

"warehouse":"WAREHOUSE",

"location":"LOCATION",

"issuedQuantity":"1",

"issueTo":"ISSUETO",

"gl_nbr":"0000000-00-00"

}

 

   

A successful request should return the following:

  

{

"$id":"1",

"Code": "200",

"Message": "Inventory added successfully.",

"SessionId": "null",

"IsValidUser":"true",

"ResponseObject":"null"

}


   

Lot Code and No Serialization


Note: If a record is lot coded, the purchase order number (PONUM) is an integral part of the lot code. Since we will allow the user to enter the same lot code when receiving a different PO, you need to provide the PONUM in the string, or it will likely fail because the PONUM has not been provided as part of the lot code information.

{
 "Gl_nbr":"1490000-00-00",
 "transactionReference":"PI Adjustment",
 "issuedQuantity":"5000",
 "issueTo":"PI Adjustment",
 "part_sourc":"Buy",
 "uniq_key":"_3WE0OVX9A",
 "uniqmfgrhd":"_3WE0OVX9F",
 "location":"53J-05",
 "warehouse":"STKRM1",
 "lotcode":"6733527",
 "Reference":"",
 "expdate":"01-22-2022",
 "ponum":"000000000129005",
 "reason":"Inventory Adjustment"
}

   

Common Errors

API Key Error


If there is an error with the API key, the system will return an error message describing a failed API key:

{

"$id":"1",

"Code": "403",

"Message: "Invalid API Key.",

"SessionId":"null",

"IsValidUser": "false",

"ResponseObject": "null"

}

      

   

Incorrect Parameter


If an incorrect parameter value is used, the system will return an error describing the incorrect parameter:

{

"$id":"1",

"Code": "403",

"Message": "Failed:Please provide valid GL_NBR."",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}

   

The GL_nbr parameter for the Issue API has to be on the list for the Inventory Handling GL Defaults for "Issue."




URL Error

  

If there is an error within the URL, the system will return an HTTP error:

 

{

"$id":"1",

"Code": 403,

"Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/InventoryHandling/Receiv/123456789'.",

"MessageDetail": "No action was found on the controller 'InventoryHandling' that matches the name 'Receiv'."

}