1. Item Master
1.1. Inventor
1.1.1. Get

The Item Master get API is used to view item details and find information such as item unique ID numbers. 

Example URL-{Root URL of your Manexcloud site}/api/ItemMaster/Get?apiKey={Your API KEY}&uniqkey={uniq_key from inventor table} 


Note: PartMFGR or MPN can be used in place of uniqkey in above URL.  

Parameters

Parameter Description Required Comment
uniqkey  Item Unique Identifier Key  Y (Or partnum) Used to select the part.  
partnum  Part Number   Y (Or uniqkey) Can be used instead of uniqkey to select a part.
revision  Revision  N Used with partnum to select a part. 

Example Strings

Edit Part Description

URL-?uniqkey=UNIQUEKEY

JSON

{

'uniqkey':'UNIQUEKEY'

}

A successful request should result in

{

"$id": "1",

"Code": 200,

"Message": "Inventor details:",

"SessionId": null,

"IsValidUser": true,

-"ResponseObject": {

"$id": "2",

-"InvtmfHdList": [

-{

"$id": "3",

"InvtmfGrList": [

-{

"$id": "4",

"W_Key": "_4750SXAYN",

"Uniq_Key": "_4750SWEOD",

"Qty_Oh": 0,

"Reserved": 0,

"Netable": true,

"Count_Dt": null,

"Count_Type": " ",

"Rstk_Ord": 0,

"Count_Init": " ",

"Location": " ",

"Instore": false,

"Reordpoint": 0,

"Reorderqty": 0,

"Marking": " ",

"Pkg": " ",

"Body": " ",

"Width": 0,

"Pitch": 0,

"Safetystk": 0,

"Countflag": " ",

"Is_Deleted": false,

"Is_Validated": false,

"Uniqmfgrhd": "_4750SXAYM",

"Uniqwh": "_0DM120YNM",

"Uniqsupno": " ",

"InstoreInstalled": false,

"InvtLotList": [ ]

}

],

"InvtmfspList": [ ],

"InvtserList": [ ],

"UNIQMFGRHD": "_4750SXAYM",

"UNIQ_KEY": "_4750SWEOD",

"PARTMFGR": "GENR ",

"MFGR_PT_NO": " ",

"MARKING": " ",

"BODY": " ",

"PITCH": " ",

"PART_SPEC": " ",

"UNIQPKG": " ",

"IS_DELETED": false,

"MATLTYPE": " ",

"AUTOLOCATION": false,

"ORDERPREF": 99,

"MATLTYPEVALUE": " ",

"LDISALLOWBUY": false,

"LDISALLOWKIT": false,

"SFTYSTK": 0,

"InstoreInstalled": false,

"IsInvtMfhdExist": false

}

],

"Uniq_Key": "_4750SWEOD",

"Part_Class": "AUDIO ",

"Part_Type": "SPEAKER ",

"Custno": " ",

"Part_No": "416-110989 ",

"Revision": "b ",

"Prod_Id": " ",

"Custpartno": " ",

"Custrev": " ",

"Descript": "Loud ",

"U_Of_Meas": "EACH",

"Pur_Uofm": "EACH",

"Ord_Policy": "Lot for Lot ",

"Package": "BULK ",

"No_Pkg": 0,

"Inv_Note": "",

"Buyer_Type": " ",

"Stdcost": 1,

"Minord": 0,

"Ordmult": 0,

"Usercost": 0,

"Pull_In": 0,

"Push_Out": 0,

"Ptlength": 0,

"Ptwidth": 0,

"Ptdepth": 0,

"Fginote": "",

"Status": "Active ",

"Perpanel": 0,

"Abc": "B",

"Layer": " ",

"Ptwt": 0,

"Grosswt": 0,

"Reorderqty": 0,

"Reordpoint": 0,

"Part_Spec": " ",

"Pur_Ltime": 3,

"Pur_Lunit": "WK",

"Kit_Ltime": 0,

"Kit_Lunit": " ",

"Prod_Ltime": 0,

"Prod_Lunit": " ",

"Udffield1": " ",

"Wt_Avg": 0,

"Part_Sourc": "BUY ",

"Insp_Req": false,

"Cert_Req": false,

"CERT_TYPE": " ",

"Scrap": 0,

"Setupscrap": 0,

"Outsnote": "",

"Bom_Status": " ",

"Bom_Note": "",

"Bom_Lastdt": null,

"Serialyes": false,

"Loc_Type": " ",

"Day": 0,

"Dayofmo": 0,

"Dayofmo2": 0,

"Saletypeid": " ",

"Feedback": "",

"Eng_Note": "",

"Bomcustno": " ",

"Laborcost": 0,

"Int_Uniq": " ",

"Eau": 0,

"Require_Sn": false,

"Ohcost": 0,

"Phant_Make": false,

"Cnfgcustno": " ",

"Confgdate": null,

"Confgnote": "",

"Xferdate": null,

"Xferby": " ",

"Prodtpuniq": " ",

"Mrp_Code": 0,

"Make_Buy": false,

"Labor_Oh": 0,

"Matl_Oh": 0,

"Matl_Cost": 1,

"Overhead": 0,

"Other_Cost": 0,

"Stdbldqty": 0,

"Usesetscrp": false,

"Configcost": 0,

"Othercost2": 0,

"Matdt": "2014-10-30T13:31:00",

"Labdt": null,

"Ohdt": null,

"Othdt": null,

"Oth2Dt": null,

"Stddt": "2014-10-30T13:31:00",

"Arcstat": " ",

"Is_Ncnr": false,

"Toolrel": false,

"Toolreldt": null,

"Toolrelint": " ",

"Pdmrel": false,

"Pdmreldt": null,

"Pdmrelint": " ",

"Itemlock": false,

"Lockdt": null,

"Lockinit": " ",

"Lastchangedt": "2014-10-30T13:30:00",

"Lastchangeinit": "T1000 ",

"Bomlock": false,

"Bomlockinit": " ",

"Bomlockdt": null,

"Bomlastinit": " ",

"Routrel": false,

"Routreldt": null,

"Routrelint": " ",

"Targetprice": 0,

"Firstarticle": false,

"Mrc": " ",

"Targetpricedt": null,

"Ppm": 0,

"Matltype": "Unk ",

"Newitemdt": "2014-10-30T13:30:00",

"Bominactdt": null,

"Bominactinit": " ",

"Mtchgdt": "2014-10-30T13:30:00",

"Mtchginit": "T1000 ",

"Bomitemarc": false,

"Cnfgitemarc": false,

"C_Log": "",

"Importid": null,

"useipkey": false,

"InstoreInstalled": false,

"SerializationRequired": false,

"NewPartNo": null,

"NewRevision": null,

"RevOnly": false

}

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

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

}

Missing Required Parameter

If a required parameter is missing the system will return an error describing the incorrect parameter.

{

"$id": "1",

"Code": 403,

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.1.2. Add

The Item Master add API is used to insert new items into the database. 

URL-{Root URL}/api/ItemMaster/Add/{API KEY}

Parameters

Parameter Description Required Comment
part_class Part Class   Y Used to designate the new part's class. Must be a valid part class. 
part_type Part Type  Y Used to designate the new part's type. Must be a valid part type.
part_sourc Part Source  Y Used to designate the new part's source. Must be a valid part source. 
U_of_Meas Unit of Measurement   Y The part's unit of measurement. Must be a valid unit of measurement in the system.
Pur_UOfM Purchasing Unit of Measurement  Y The part's purchasing unit of measurement. Must be a valid unit of measurement.  
CustNo  Customer Identifier Number  Y The customer number is used to select the customer for the part. 
CustPartNo  Customer Part Number  Y Used to set the Customer's part number. 
CustRev Customer Revision  Y Used to set the revision level on the customer part.
part_No Part Number  Y Used to set the part number.
status  Part Status  Y Used to set the part's status, can be "active" or "inactive".
serialYes Serial Number Yes or No  Y Can be "true" or "false".
descript  Description  Y Can be true or false.

Example Strings

Example ItemMaster Add String-

URL-?Part_Class=CAP-SMT&Part_Type=0402&Part_Sourc=make&U_Of_Meas=Each&Pur_UOfM=Each&Custno=0000000001&custpartno=n7105&custrev=Q&part_no=121-1000003&status=Active&SerialYes=False&descript=test

JSON-

{

'Part_Class':'CAP-SMT',

'Part_Type':'0402',

'Part_Sourc':'make',

'U_Of_Meas':'Each',

'Pur_UOfM':'Each',

'Custno':'0000000001',

'custpartno':'n7105',

'custrev':'Q',

'part_no':'121-1000003',

'status':'Active',

'SerialYes':'False',

'descript':'test'

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Inventor added successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "0CQOOPKEFK"

}

Add New Item with InvtmfHD Information.

Adding InvtmfHd information at the same time as the basic part information. For InvtmfHd parameters see InvtmfHd Add API.

Example ItemMaster Add string with InvtmfHd Information

JSON

{'Part_Class':'PARTCLASS','Part_Type':'PARTTYPE','Part_Sourc':'SOURCE','U_Of_Meas':'UOM','Pur_UOfM':'PURCHASEUOM','Custno':'CUSTOMERNUMBER','custPartNo':'CUSTPARTNUMBER','part_no':'PARTNUMBER','status':'Active','SerialYes':'false','Descript':'new add',

InvtmfHdList: [{'partmfgr':'MANUFACTURER','mfgr_pt_no':'MANUFACTURER PARTNUMBER','MATLTYPE':'MATERIALTYPE','MATLTYPEVALUE':'','ORDERPREF':'1','SFTYSTK':'10','LDISALLOWBUY':'false','LDISALLOWKIT':'false',

 

}]

}

A successful should result in.

{

"$id": "1",

"Code": 200,

"Message": "Inventor added successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "UO2PKV74UE"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'Ad'."

}

Part Already in System

If the part number being added is already being used the system will return an error message describing it.

{

"$id": "1",

"Code": 403,

"Message": "Inventor add failed.Part number '121-1000003' and Revision '' already exists for customer '0000000001'.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Inventor add failed.Please provide description for Inventor.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.1.3. Edit

The Item Master edit API is used to modify item details in the database. 

URL-{Root URL}/api/ItemMaster/Edit/{API KEY}

Parameters

Parameter Description Required Comment
part_class Part Class   N Used to designate the new part's class. Must be a valid part class.  
part_type Part Type  N Used to designate the new part's type. Must be a valid part type. 
part_sourc Part Source  N Used to designate the new part's source. Must be a valid part source. 
U_of_Meas Unit of Measurement   N The part's unit of measurement. Must be a valid unit of measurement in the system.
Pur_UOfM Purchasing Unit of Measurement  N The part's purchasing unit of measurement. Must be a valid unit of measurement. 
CustNo  Customer Identifier Number  N The customer number is used to select the customer for the part.  
CustPartNo  Customer Part Number  N Used to set the Customer's part number. 
CustRev Customer Revision  N Used to set the revision level on the customer part. 
part_No Part Number  N Used to set the part number. 
status  Part Status  N Used to set the part's status, can be "active" or "inactive". 
serialYes Is the Part Serialized Yes or No  N Use the values true or false 
descript  Description  N
uniq_key  Item Unique Identifier Key  Y Used to select the item which item is being edited. 
abc  Item abc Code   Y Can be A, M, or D 

Example Strings

Edit Part Description

URL-?uniq_key=UNIQUEKEY&Description=EditedDescription&status=active&abc=D

{

'uniq_key':'UNIQUEKEY',

'Description':'EditedDescription',

'status':'active',

'abc':'D'

}

A Successful Edit Request Will Return

{

"$id": "1",

"Code": 200,

"Message": "Inventor edited successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

"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'."

}

Missing Required Parameter

If a required parameter is missing the system will return an error describing the incorrect parameter.

{

"$id": "1",

"Code": 403,

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.1.4. Delete

The Item Master Delete API is used to delete items from the database. 

URL-{Root URL}/api/ItemMaster/Delete/{API KEY}

Parameters

Parameter Description Required Comment
uniqkey  Item Unique Identifier Key  Y Used to select the part.  

Example Strings

Edit Part Description

URL-?uniqkey=UNIQUEKEY

JSON

{

'uniqkey':'UNIQUEKEY'

}

A successful request should result in

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

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

}

Missing Required Parameter

If a required parameter is missing the system will return an error describing the incorrect parameter.

{

"$id": "1",

"Code": 403,

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.1.5. Copy

The Item Master cop API is used to copy an item's details to a new part number. 

URL-{Root URL}/api/ItemMaster/copy/{API KEY}

Parameters

Parameter Description Required Comment
uniqkey  Item Unique Identifier Key  Y Used to select the part.  
part_no  Part Number  N Part_no can also be used to select part.  
newPartNumber  New Part Number  N Use newPartNumber to select which part number the item details will be copied to.
newRevision New Revision   N Use newRevision to set the revision of the part the items are being copied to. 

Example Strings

Edit Part Description

URL-?uniqkey=UNIQUEKEY&newPartNumber=PartNumber&newRevision=Revision

JSON

{

'uniqkey':'UNIQUEKEY',

'newPartNumber':'PartNumber',

'newRevision':'Revision'

}

A successful request should result in

{

"$id": "1",

"Code": 200,

"Message": "Inventory copied, newly generated uniq_key:",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "1K5DOWK6G1"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

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

}

Missing Required Parameter

If a required parameter is missing the system will return an error describing the incorrect parameter.

{

"$id": "1",

"Code": 403,

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.1.6. Next PN

The Item Master NextPn API is used to insert a new item into the database with the next available part number or revision.  

URL-{Root URL}/api/ItemMaster/NextPn/{API KEY}

Parameters

Parameter Description Required Comment
uniqkey  Item Unique Identifier Key  Y Used to select the part.  
revOnly  Revision Only  N RevOnly is used to note whether or not to increase next part by part number, or to increase by revision only.
part_class  Part Class   N You can change the part class for the next part number.  
part_type  Part Type   N You can change the part type for the next part number. 

Example Strings

Edit Part Description

URL-?uniqkey=UNIQUEKEY&revOnly=true

JSON

{

'uniqkey':'UNIQUEKEY',

'revOnly':'true'

}

A successful request should result in

{

"$id": "1",

"Code": 200,

"Message": "Inventor next part number generated successfully. Part number:'121-1000003' and Revision:'1'",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

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

}

Missing Required Parameter

If a required parameter is missing the system will return an error describing the incorrect parameter.

{

"$id": "1",

"Code": 403,

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.2. InvtmfHd
1.2.1. Add

The Item Master InvtmfHd add API is used to add Manufacturer information to parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfHdAdd/{API KEY}

Parameters

Parameter Description Required Comment
uniq_key  Part Unique Key Y The uniq_key is used to select the part you would like to add maufacturer information to.
partmfgr  Part Manufacturer  Y Sets the Part's manufacturer. Must be a manufacturer in your system. 
mfgr_pt_no  Manufacturer Part Number  Y Adds the manufacturer's part number to the part.
matltype  Material Type Y Must be a valid material type in the system.
matltypevalue  Material Type Value Y  
orderpref     
sftystk     
ldisallowbuy    Can be "true" or "false". 
ldisallowkit    Can be "true" or "False".  

Example Strings

Example invtmfHd Add String-

URL-?Uniq_key=_4750SWEOD&PARTMFGR=3G&MFGR_PT_NO=vit-2&MATLTYPE=Unk&MATLTYPEVALUE=&ORDERPREF=1&SFTYSTK=10&LDISALLOWBUY=false&LDISALLOWKIT=false

JSON-

{

'Uniq_key':'_4750SWEOD',

'PARTMFGR':'3G',

'MFGR_PT_NO':'vit-2',

'MATLTYPE':'Unk',

'MATLTYPEVALUE':'',

'ORDERPREF':'1',

'SFTYSTK':'10',

'LDISALLOWBUY':'false',

'LDISALLOWKIT':'false'

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfgrhd added successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "SWIWRWPI63"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'Ad'."

}

Part Already in System

If the part number being added is already being used the system will return an error message describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invtmfgrhd add failed.Combination of Uniq_Key '_4750SWEOD, PartMfgr '3G' and Mfgr_Part_No 'vit-2' is already exist.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Inventor add failed.Please provide description for Inventor.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.2.2. Edit

The Item Master InvtmfHd add API is used to add Manufacturer information to parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfHdEdit/{API KEY}

Parameters

Parameter Description Required Comment
uniq_key  Part Unique Key Y The uniq_key is used to select the part you would like to edit maufacturer information for.
uniqmfgrhd  Unique Part Manufacturer Key Unique field used to identify the part manufacturer information.  
partmfgr  Part Manufacturer  N Can be used to change the manufacturer, must be a manufacturer in the system.  
mfgr_pt_no  Manufacturer Part Number  N Can be used t change the manufacturer's part number. 
matltype  Material Type N Must exist within the system. 
matltypevalue  Material Type Value N Identifier value for the material type, must exist within the system.  
orderpref     
sftystk     
ldisallowbuy    Can be "true" or "false". 
ldisallowkit    Can be "true" or "False".  

Example Strings

Example invtmfHd edit String-

URL-?Uniq_key=_4750SWEOD&uniqmfgrhd=UNIQMFGRHD&MFGR_PT_NO=NEWMFGRPARTNUMBER

JSON-

{

'Uniq_key':'_4750SWEOD',

'uniqmfgrhd':'UNIQMFGRHD',

'MFGR_PT_NO':'vit-2'

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfgrhd edited successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "SWIWRWPI63"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfHdEdi'."

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Invtmfgrhd edit failed.Uniqmfhd required.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.2.3. Get

The Item Master InvtmfHd Get API is used to view Manufacturer information of parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfhdGet?apiKey={API KEY}&uniqmfgrHd={UNIQMFGRHD}

Parameters

Parameter Description Required Comment
uniqmfgrhd
Y The uniqmfgrhd is used to select the part you would like to view manufacturer information for.

Example Strings

Example invtmfHd Get String-

URL-?uniqmfgrhd=_4750SWEOD

JSON-

{

'uniqmfgrhd':'_4750SWEOD',

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfgrhd details:",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": {

"$id": "2",

"InvtmfGrList": [ ],

"InvtmfspList": [ ],

"InvtserList": [ ],

"UNIQMFGRHD": "SWIWRWPI63",

"UNIQ_KEY": "_4750SWEOD",

"PARTMFGR": "3G ",

"MFGR_PT_NO": "vit-2 ",

"MARKING": " ",

"BODY": " ",

"PITCH": " ",

"PART_SPEC": " ",

"UNIQPKG": " ",

"IS_DELETED": false,

"MATLTYPE": "Unk ",

"AUTOLOCATION": false,

"ORDERPREF": 99,

"MATLTYPEVALUE": " ",

"LDISALLOWBUY": false,

"LDISALLOWKIT": false,

"SFTYSTK": 0,

"InstoreInstalled": false,

"IsInvtMfhdExist": false

}

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfHdEdi'."

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Invtmfgrhd edit failed.Uniqmfhd required.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.2.4. Delete

The Item Master InvtmfHd Delete API is used to remove Manufacturer information from parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfHdDelete/{API KEY}

Parameters

Parameter Description Required Comment
uniqmfgrhd
Y The uniqmfgrhd is used to select the part you would like to delete manufacturer information from.

Example Strings

Example invtmfHd Delete String-

URL-?uniqmfgrhd=_4750SWEOD

JSON-

{

'uniqmfgrhd':'_4750SWEOD',

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfgrhd deleted successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfHdDelet'."

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Invtmfgrhd edit failed.Uniqmfhd required.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.3. Invtmfsp
1.3.1. Add

The Item Master InvtmfSp add API is used to add Supplier information to parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfSpAdd/{API KEY}

Parameters

Parameter Description Required Comment
uniq_key  Part Unique Key Y The uniq_key is used to select the part you would like to add supplier information to.
uniqmfgrhd Unique Manufacturer Information Key  Y The uniqmfgrhd is also used to choose the part you would like to add 
UniqWh  Warehouse Identifier Y Used to pick the default warehouse for the item. 
uniqsupno  Unique Supplier Number Y This is used to identify the supplier.
suplpartno  Supplier Part Number Y Set the supplier  part number for the item. 

Example Strings

Example invtmfSp Add String-

URL-?uniq_key=_4750SWEOD&uniqmfgrhd=SWIWRWPI63&UniqWh=_0DM120YNM&uniqsupno=_44L0SDHY2&suplpartno=1131

JSON-

{

'Uniq_key':'_4750SWEOD',

'PARTMFGR':'3G',

'MFGR_PT_NO':'vit-2',

'MATLTYPE':'Unk',

'MATLTYPEVALUE':'',

'ORDERPREF':'1',

'SFTYSTK':'10',

'LDISALLOWBUY':'false',

'LDISALLOWKIT':'false'

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfsp added successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "2JT3HLSFLQ"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfSpAd'."

}

Part Already in System

If the part number being added is already being used the system will return an error message describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invtmfsp add failed.Uniqmfsp with uniqmfgrhd 'SWIWRWPI63', supplier part number '1131' and uniqSupNum '_44L0SDHY2' already exists.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Inventor add failed.Please provide description for Inventor.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.3.2. Edit

The Item Master InvtmfSp Edit API is used to add Supplier information to parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfSpEdit/{API KEY}

Parameters

Parameter Description Required Comment
uniq_key  Part Unique Key Y The uniq_key is used to select the part you would like to add manufacturer information to.
Uniqmfsp    
uniqmfgrhd Unique Manufacturer Information Key  N  
UniqWh 
N  
uniqsupno  Unique Supplier Number N  
suplpartno  Supplier Part Number N  

Example Strings

Example invtmfSp Edit String-

URL-?uniq_key=_4750SWEOD&uniqmfgrhd=SWIWRWPI63&UniqWh=_0DM120YNM&uniqsupno=_44L0SDHY2&suplpartno=1131

JSON-

{

'Uniq_key':'_4750SWEOD',

'PARTMFGR':'3G',

'MFGR_PT_NO':'vit-2',

'MATLTYPE':'Unk',

'MATLTYPEVALUE':'',

'ORDERPREF':'1',

'SFTYSTK':'10',

'LDISALLOWBUY':'false',

'LDISALLOWKIT':'false'

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfsp edited successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": "2JT3HLSFLQ"

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name InvtmfSpAd'."

}

Missing Parameter

If a required parameter is missing the system will return an error message asking for the parameter.

{

"$id": "1",

"Code": 403,

"Message":"Invtmfsp edit failed.Uniqmfsp required.",

"SessionId": null,

"IsValidUser": true,

"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": "Inventor edit failed.Unique_key required.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.3.3. Get

The Item Master InvtmfSp Get API is used to view supplier information for parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfSpGet?apiKey={API KEY}&uniqmfsp={UNIQMFSP}

Parameters

Parameter Description Required Comment
uniqmfsp
Y The uniqmfsp is used to select the part you would like to view information for.

Example Strings

Example invtmfSp Get String-

URL-?uniqmfsp=UNIQMFSP

JSON-

{

'uniqmfsp':'UNIQMFSP',

}

A successful add should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfsp details:",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": {

"$id": "2",

"Uniqmfsp": "2JT3HLSFLQ",

"Uniqmfgrhd": "SWIWRWPI63",

"Uniqsupno": "_44L0SDHY2",

"Suplpartno": "1131 ",

"Uniq_Key": "_4750SWEOD",

"Pfdsupl": false,

"Is_Deleted": false

}

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfSpGe'."

}

Incorrect Parameter

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

{

"$id": "1",

"Code": 403,

"Message": "Uniqmfsp not provided.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

1.3.4. Delete

The Item Master InvtmfSp Delete API is used to remove supplier information from parts in the database. 

URL-{Root URL}/api/ItemMaster/InvtmfSpDelete/{API KEY}

Parameters

Parameter Description Required Comment
uniqmfsp
Y The uniqmfsp is used to select the part you would like to view information for.

Example Strings

Example invtmfSp Delete String-

URL-?uniqmfsp=UNIQMFSP

JSON-

{

'uniqmfsp':'UNIQMFSP',

}

A successful delete should result in:

{

"$id": "1",

"Code": 200,

"Message": "Invtmfsp deleted successfully.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}

Common Errors

API Key Error

If there is an error with the entered API key the system will return an error describing it.

{

"$id": "1",

"Code": 403,

"Message": "Invalid API Key.",

"SessionId": null,

"IsValidUser": false,

"ResponseObject": null

}

URL Error

If there is an error within the URL the system will return a HTTP error.

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ItemMaster' that matches the name 'InvtmfSpDelet'."

}

Incorrect Parameter

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

{

"$id": "1",

"Code": 403,

"Message": "Uniqmfsp not provided.",

"SessionId": null,

"IsValidUser": true,

"ResponseObject": null

}