Skip to main content

Connect Magento

Connect Magento 2 or Adobe Commerce through an Integration you create in its admin.

Before you start​

  • A Magento admin account that can create an integration.
  • Your store address as it opens in a browser, such as https://shop.example.com.
  • A store reachable from the internet. If a firewall limits requests to certain addresses, reach out and we send you Nasam's address to add.

Steps​

In Magento​

  1. Open «System».

  2. Choose «Extensions».

  3. Choose «Integrations».

  4. Click «Add New Integration».

  5. In the «Integration Info» tab, type «Nasam» in Name.

  6. Leave Callback URL and Identity link URL empty.

  7. Enter your password in Your Password.

    The Integration Info tab in Magento

  8. Open the «API» tab.

  9. Choose Custom in Resource Access.

  10. Tick these resources:

    SectionResourcesUsed for
    Sales → Operations → Orders → ActionsView, Cancel, ShipReading and cancelling orders
    Sales → OperationsShipmentsShipment tracking numbers
    Catalog → InventoryProductsProducts and prices
    Stores → InventorySources, Sales StockReading stock
    Stores → Inventory → StocksSource to Stock Assigning, Source Item AssigningWriting stock

    The resources to tick in the API tab

  11. From the arrow beside «Save» choose «Save & Activate».

  12. Click «Allow».

  13. Copy the four values: Consumer Key, Consumer Secret, Access Token and Access Token Secret. Open the integration to see them again.

    The integration's four values

In Nasam​

From «Sales Channels» → «Connect Channel» → Magento, enter «Store address» and the four values, then «Next». Choose how Magento takes part in your stock, then «Connect & Link Products».

Worth knowing
  • More than one stock source? Choose the one Nasam reads and writes in «Inventory settings» → «Inventory branch». With none chosen, Nasam writes to the default source.
  • No stock for a code Magento has no product for. Nasam refuses it and shows why on the listing.
  • Prices. The base price goes to the product's price, and a discount to its Special Price with its start and end dates, for the whole store.
  • Cancelling. Cancelling an order from Nasam cancels all of it in Magento unless it's invoiced or you ship it. An order paid online is invoiced at payment, so refund it with a credit memo in Magento.
  • Statuses. Complete counts as delivered, Closed as returned.

Common problems​

MessageFix
«We couldn't reach the Magento REST API at this address»Check the store address. If it is right, a firewall is blocking us: reach out and we send you the address
«Magento did not accept these keys»Check the integration is Active and the four values were copied whole. Reauthorizing changes the values, so connect again with the new ones
«The integration is missing a permission»Open the integration, tick the resources in the table above, save, then connect again

Next step​

Need a hand?

The Nasam team is with you, whatever the question: WhatsApp +966 55 009 0039 or general@nasam.co. And we set up your marketplace accounts with you, step by step. The consultation is free.