Magento 2.x - integrating with Price2Spy

Magento 2.x – integrating with Price2Spy

Integrating your Magento 2.x store with Price2Spy

Supported Magento version: 2.x

 

Steps to be peformed in Price2Spy (1)

Please make sure you have registered Price2Spy account, and that you have account credentials at hand.

 

Next step in the integration process is in your Magento

Steps to be performed on Magento 2.x side

Please login to your Magento, and do the following

1. Click Integrations, and then Add New Integration

Magento 2.x - integrating with Price2Spy
Magento 2.x - integrating with Price2Spy

2. In Integration Info tab, fill in the following

  • Name = Price2Spy
  • Email = (can be left blank)
  • Callback URL = https://spy.price2spy.com/ei/magento2/callback/
  • Indentity Link URL = https://spy.price2spy.com/ei/magento2/authorize
  • Current User Identity Verification = your current Magento Password

3. In API tab please make sure to select tick following Resources

  • Catalog
    • Inventory
      • Products
      • Categories
  • Stores
    • Attributes
      • Products

4. Click Save and Activate

5. On the following screen, click Allow

Magento 2.x - integrating with Price2Spy
Magento 2.x - integrating with Price2Spy

6. (optional) If on the following screen you get ‘Unable to post to data consumer…’ error, please click Activate, as showed on the screenshot

Magento 2.x - integrating with Price2Spy
Magento 2.x - integrating with Price2Spy

7. (again optional) If you have Popup Blocker turned on in your browser, please make sure to turn it off

Magento 2.x - integrating with Price2Spy

8. A popup window will open, where you should fill in your Price2Spy username / password

After this your Magento2 will be linked to your Price2Spy account, and all that is left to be done is to define which products (from which Magento categories) to link, and how often to perform sync operation.

These steps are done in Price2Spy

Steps to be performed in Price2Spy

 

Please login to your Price2Spy account and do the following

1.Click Misc => Link My Store

Magento 2.x - integrating with Price2Spy
2.Click MAGENTO 2.X and click Next
Magento 2.x - integrating with Price2Spy
3.Fill in store details

  • Store URLhttp://www.mymagentostore.com (this is the URL of your online store)
  • API URL: by default, copy Store URL field (in some cases, it may differ, if so, please contact us)
  • Username = price2spy (this corresponds to username defined in Magento setup (see above: point 2.3.1.)
  • Password =  YOUR SECRET API KEY (this corresponds to username defined in Magento setup (see above: point 2.3.5.)Please be patient: depending on your store size and your server speed, it may take 30s or so to establish a link to your Magento

Magento 2.x - integrating with Price2Spy
4.Select Categories (or leave default = all) from which the products should be copied

 

5.Click Matched products to see how many products are contained in the above categories, click Next

Magento 2.x - integrating with Price2Spy
6.Finalizing operation details

  • Name your operation (for example Magento | LINK)
  • Define execution frequency (default = 1 day)
  • Choose whether you want to be notified by email on each operation execution (default = OFF)
  • Check ‘Do it now‘ if you want the products to be copied immediately (otherwise, the operation will be done according to the daily schedule)
  • Define price check frequency (of the products created via Link My Store Operation)

7.Click Finish. Once your products have been linked from Magento, you’ll see them in your Price2Spy account

Magento 2.x - integrating with Price2Spy

Troubleshooting

 

  • WS-I Compliance: If you have followed the above steps, but you still receive error ‘Error logging in to Magento store‘, please check your WS-I Compliance setting (Magento Core API – please check the screenshot). This setting needs to be set to NO (which is it’s default value). Before changing this setting, please verify that you don’t have any other Magento plugins that require WS-I compliance set to YES.
  • Network / Firewall issues
    • When syncing your Magento with Price2Spy, Price2Spy has to perform an API request for each and every product you’re syncing (this is far from optimal, but I’m afraid this is the way Magento API works). For example – if you’d like to sync 2500 products, that means 2500 individual small HTTP requests from Price2Spy API to your Magento
    • In many cases we experience that client’s Magento is behind a firewall, which will block our requests. Therefore, please make sure that you have done the following whitelisting changes in your firewall
      • Whitelist Price2Spy IPs (please ask support@price2spy.com for the list of IPs we use)
      • Whitelist specific countries: please white list Serbia and The Netherlands (Holland)
      • Whitelist user-agent: Axis
    • In case you’re not sure where to apply the above firewall changes, please get in touch with your hosting company. If you’re unsure whom to contact, please let us know, we’ll be happy to point you in the right direction.