Link a Magento 2 online store

Linking a Magento 2 online store consists of two parts. On the one hand, you need to configure some settings in the Magento 2 backend, and on the other hand, you need to configure the obtained information in Stoqflow. Below, we will explain step by step how it should be done.

?> Tip Make sure that before making the connection, all 'open' orders in your Magento store have been processed. This way, you prevent possible stock discrepancies.

!> Note In Magento 2, switch off the "stock reservation" function (MSI, Multi Source Inventory) to avoid stock discrepancies. Stoqflow will be leading as far as inventory quantities are concerned. Read here how to do that.

Part 1: Magento 2 settings

  • Log in to your Magento 2 account and navigate via the left navigation menu to
    • 'System' > 'Integrations' > 'Add new integration'
  • Fill in 'Stoqflow' for name and a valid email address below it
  • Confirm the password of the user you are logged in with
  • Click on 'API' on the left and check if this integration has access to the full API ('All' selected in the dropdown)
  • Click then on 'Save'
  • Then go back to the overview of integrations and click on 'Webshop Online' on 'activate' and then on 'authorize'
  • Now click on the pencil icon to edit the integration and leave this tab open

Part 2: Stoqflow settings

  • Open a new tab in your browser
  • Open Stoqflow and navigate to 'Shops' and add a new online store (if necessary).
    • Select 'Webstore'
    • Select 'Magento'
  • Press 'New' for API configuration
  • Enter the exact URL of the webstore (https://yourdomainname.com)
  • Now go back to the Magento tab in your browser and copy the 'consumer key'
  • Paste this key into 'Key' in Stoqflow
  • Open the Magento tab again and copy the 'access token'
  • Paste this key into 'Secret' in Stoqflow
  • Select which orders you precisely want to receive in our app under 'Order filters' (status = processing is the most obvious, only paid orders will come in Stoqflow). See also advanced filter settings.
  • Then click on 'Save'
  • Click on 'Start transfer' to import data from Magento into Stoqflow (products and orders)

!> Note After setting up the API connection, try to synchronize products and orders, in that exact order. You will then see two synchronization buttons under your API settings in Stoqflow.