Skip to content

Magento 2

CatalogRelay exports products to Magento 2 via the Magento REST API.

  • Magento 2.4 or later
  • An integration user with appropriate API permissions
  • Your store’s base URL
  1. In Magento Admin, go to SystemIntegrationsAdd New Integration
  2. Give it a name (e.g. “CatalogRelay”)
  3. Under API, set permissions:
    • Catalog → Products (read, write)
    • Catalog → Categories (read)
    • Store → All Store Views (read)
  4. Click Save and then Activate
  5. Copy the Access Token
  1. Go to Export DestinationsAdd destination
  2. Select Magento 2
  3. Enter:
    • Store URL: your Magento base URL (e.g. https://store.example.com)
    • Access Token: from the integration you created
    • Store View: which store view to sync to (default: all / default)
    • Root Category ID: the root category to assign products to (usually 2)
CatalogRelayMagento field
Namename
SKUsku
Descriptiondescription
Short descriptionshort_description
Price (after rules)price
Stockextension_attributes.stock_item.qty
GTINcustom_attributes.ean
Statusbased on availability
VisibilityCatalog, Search

Map canonical attributes to Magento EAV attribute codes via Field Mappings in the export profile. The Magento attribute must already exist with the matching code.

Example mapping:

  • Canonical: delivery_days → Magento: custom_attributes.delivery_time

Use a category set configured with Magento category IDs (integer) as destination codes. CatalogRelay assigns products to categories by ID.

By default, CatalogRelay sets is_in_stock based on the stock quantity:

  • Stock > 0 → in stock
  • Stock = 0 → out of stock, qty = 0

If you use MSI (Multi-Source Inventory), contact support for MSI-aware sync options.

CatalogRelay can sync to a specific store view. To sync the same products to multiple store views (e.g. different locales), create multiple export profiles, one per store view.

After importing products, Magento’s indexers may need to run. CatalogRelay triggers reindexing via the API for the affected indexers (price, stock, search). If you notice search results not updating, ensure the catalogsearch_fulltext indexer is running.

401 Unauthorized: The access token is invalid or the integration was revoked. Re-activate the integration in Magento and update the token in CatalogRelay.

Product not appearing in search: Ensure the product is set to Visibility: Catalog, Search and that the search indexer has run.

Category not assigned: Verify the category ID in your category set matches an existing Magento category. Root category (ID 1) cannot hold products — use a subcategory.