Lookup

The Lookup resource is used to return data that is currently stored in the cached lookup tables.

Return Cached Lookup Data

This endpoint returns the cached lookup data for a specific table.


POST lookup/lookup


Parameters

Name Description
LookupCode Specifies the lookup table name (for example, ‘branch’, ‘brand’). If missing, the response includes data from all lookup tables.

Sample: Returning Data from a Cached Lookup Table


POST /lookup/lookup
{
  "LookupCode": "BRANCH"
}


[
    {
        "tableName": "BRANCH",
        "tableData": [
            {
                "code": "4",
                "descr": "Andersons Ottawa"
            },
            {
                "code": "9",
                "descr": "Andersons Delta Warehouse"
            }
        ]
    }
]


"LookupCode not found."