{% extends "base.html" %} {% load i18n %} {% block page_title %}{% trans "Settings" %} | Smart Parts{% endblock %} {% block content %}

API Settings

Configure distributor API credentials and test connections. Settings are saved in InvenTree's plugin settings.

Note: API keys are stored in InvenTree's built-in plugin settings system. To change values, go to InvenTree Settings — Plugins — SmartParts. This page lets you test connections with your current configuration.

API Providers

M
Mouser Electronics
{% if mouser_enabled %} ● Enabled {% if mouser_has_key %} – Key configured{% else %} – No API key{% endif %} {% else %} ● Disabled {% endif %}
DK
DigiKey
{% if digikey_enabled %} ● Enabled {% if digikey_has_key %} – OAuth2 configured{% else %} – No credentials{% endif %} {% else %} ● Disabled {% endif %}
LC
LCSC Electronics
{% if lcsc_enabled %} ● Enabled – No API key required {% else %} ● Disabled {% endif %}
F
element14 / Farnell / Newark
{% if element14_enabled %} ● Enabled {% if element14_has_key %} – Key configured – {{ element14_store }}{% else %} – No API key{% endif %} {% else %} ● Disabled {% endif %}
T
TME (Transfer Multisort Elektronik)
{% if tme_enabled %} ● Enabled {% if tme_has_token %} – Token configured – {{ tme_country }} / {{ tme_currency }}{% else %} – No API token{% endif %} {% else %} ● Disabled {% endif %}

Learned Category Mappings

These mappings are built automatically when you correct a category during import. Each entry acts as a 100% confidence override — the distributor's exact category string is instantly resolved to your chosen InvenTree category path, bypassing fuzzy matching entirely. Edit or remove entries here to fix incorrect learning.

Raw JSON (advanced edit)
Advanced: Category Synonym Engine Aliases for the fuzzy matcher — click to expand

Define custom aliases so the fuzzy category matcher understands your distributor's jargon. From = distributor term  →  To = your InvenTree equivalent keyword. Built-in synonyms (MLCC, MCU, LDO, etc.) are always active.

Raw JSON (advanced)

Quick Links

Edit All Settings Back to Dashboard View Logs

Scanner Diagnostic Tool

Scan a barcode into the field below to test your scanner configuration. The tool checks for missing GS control characters (Keyboard Wedge problem) and shows the full parsed result from the DataMatrix decoder.

{% endblock %}