Lookup ====== Access system reference data and configuration values. Lookups provide standardized lists of values used throughout the system such as company types, job statuses, and service types. Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/lookup/{masterConstantKey} - Get lookup values * - GET - /api/lookup/{masterConstantKey}/{valueId} - * - GET - /api/lookup/countries - * - GET - /api/lookup/resetMasterConstantCache - * - GET - /api/lookup/accessKeys - * - GET - /api/lookup/accessKey/{accessKey} - * - GET - /api/lookup/documentTypes - * - GET - /api/lookup/items - * - GET - /api/lookup/referCategory - * - GET - /api/lookup/referCategoryHeirachy - * - GET - /api/lookup/PPCCampaigns - * - GET - /api/lookup/parcelPackageTypes - * - GET - /api/lookup/comonInsurance - * - GET - /api/lookup/contactTypes - .. _get-apilookupmasterconstantkey: GET /api/lookup/{masterConstantKey} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Get lookup values** Retrieves all values for a specific lookup type (e.g., CompanyTypes, ContactTypes, JobStatusTypes). **Parameters:** *Path Parameters:* - `masterConstantKey` (string, path) *(required)*: No description available **Response Type:** Array of :class:`~ABConnect.api.models.lookups.LookupValue` objects See the model documentation for detailed field descriptions. **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/{masterConstantKey}" , masterConstantKey="example-value" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/{masterConstantKey} \ masterConstantKey=example-value .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/example-value' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [ { "id": "e7f85166-34cf-429b-805d-261b44cb0c04", "value": "Customer" }, { "id": "f8a96277-45df-540c-916e-362b55da1d15", "value": "Vendor" }, { "id": "a9b07388-56ef-651d-a27f-473c66eb2e26", "value": "Carrier" } ] ---- .. _get-apilookupmasterconstantkeyvalueid: GET /api/lookup/{masterConstantKey}/{valueId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `masterConstantKey` (string, path) *(required)*: No description available - `valueId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/{masterConstantKey}/{valueId}" , masterConstantKey="example-value" , valueId="789e0123-e89b-12d3-a456-426614174002" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/{masterConstantKey}/{valueId} \ masterConstantKey=example-value \ valueId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/example-value/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookupcountries: GET /api/lookup/countries ~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/countries" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/countries .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/countries' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookupresetmasterconstantcache: GET /api/lookup/resetMasterConstantCache ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/resetMasterConstantCache" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/resetMasterConstantCache .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/resetMasterConstantCache' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookupaccesskeys: GET /api/lookup/accessKeys ~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/accessKeys" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/accessKeys .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/accessKeys' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookupaccesskeyaccesskey: GET /api/lookup/accessKey/{accessKey} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `accessKey` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/accessKey/{accessKey}" , accessKey="example-value" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/accessKey/{accessKey} \ accessKey=example-value .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/accessKey/example-value' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookupdocumenttypes: GET /api/lookup/documentTypes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `documentSource` (string, query): No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/documentTypes" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/documentTypes .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/documentTypes' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookupitems: GET /api/lookup/items ~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `jobDisplayId` (string, query): No description available - `jobItemId` (string, query): No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/items" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/items .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/items' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookuprefercategory: GET /api/lookup/referCategory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/referCategory" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/referCategory .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/referCategory' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookuprefercategoryheirachy: GET /api/lookup/referCategoryHeirachy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/referCategoryHeirachy" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/referCategoryHeirachy .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/referCategoryHeirachy' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookupppccampaigns: GET /api/lookup/PPCCampaigns ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/PPCCampaigns" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/PPCCampaigns .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/PPCCampaigns' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookupparcelpackagetypes: GET /api/lookup/parcelPackageTypes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/parcelPackageTypes" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/parcelPackageTypes .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/parcelPackageTypes' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apilookupcomoninsurance: GET /api/lookup/comonInsurance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/comonInsurance" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/comonInsurance .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/comonInsurance' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apilookupcontacttypes: GET /api/lookup/contactTypes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/lookup/contactTypes" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/lookup/contactTypes .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/lookup/contactTypes' **Sample Response:** .. toggle:: .. code-block:: json :linenos: []