Main Web API Documentation Information
Actual Page/Function Name:
getGeneralLookupValues
Human Readable Name or Caption:
Get General Lookup Values
Page/Function Description:
This method will help to get a number of eCommerce look-up values.
Page/Function Output Type:
API - JSON or WDDX
Categories:
eComm,stock/unit,general
Extra Page/Function Notes:
This returns data like inventory types, makes, sub inventory types, and locations. The location lookup is one of the most common uses.


Parameters
Scope Name Type Default Description Required Alternates Known Values
Arguments CORP_KEY_ID String Pass in the corporation key. This is a combination of 3 letters from the corporation name, a dash, and then the actual corp id number. Ex: PLA-0053, XYZ-0123. As a note, the corporation ID may be padded with zeros. This is not required, but it will be added if the number is system-generated (the numbers will be stripped off later). Yes


Results
RET_STATUS RET_MAIN_MESSAGE RET_SECOND_MESSAGE Redirect Link Description
ok success This assumes that everything went well.
Name Type Description Notes
INVENTORY_TYPE_LIST String This is a list of inventory types. See description.
QRY_INVENTORY_TYPES_INFO_ARRAY Array This array contains the main inventory types per corporation. This contains inventory type ids and inventory types.
QRY_MAKES_INFO_ARRAY Array This array contains information about the makes. This holds data like inventory type id, make id, make name, and inventory type.
QRY_SUB_TYPES_INFO_ARRAY Array This array contains info about the sub-inventory types. This query has values like sub inventory type, sub inventory type id, and inventory type id.
QRY_LOCATION_INFO_ARRAY Array This array has the location information. This contains values like address, email, city, name, phone, etc.
zeroInventoryTypes Sorry, unable to find any inventory types associated with the corporation requested. Use your back button and try again. This is returned if there are no records returned associated with the corp id requested.
logicProblem Unable to connect to the database. Missing lookup values for the search page. Use your back button and try again. This is a catch for any errors that occur while querying the database.


Samples
Caption Text
JSON
{"API_CALL_FUNCTION_NAME":"getGeneralLookupValues","CORP_KEY_ID":"PLA-0053","API_CORP_KEY_ID":"PLA-0053","API_USER_NAME":"demo","API_USER_PASSWORD":"1234","API_CURRENT_PAYEE_ID":"3","API_INPUT_OUTPUT_TYPE":"JSON","API_URL_ENCODING":"AUTO"}