connect magento site with other platform site using API and display same quantity in both sites

magento.stackexchange https://magento.stackexchange.com/questions/98098

  •  09-12-2020
  •  | 
  •  

Question

we are working on Magento Marketplace Multi vendor site.

Means Sellers can able to sell the products through our site.

Our sellers are selling the same products in other e-commerce site [not magento - http://www.flipkart.com/ ],

http://builtwith.com/flipkart.com - platform of flipkart site.

sellers using same sku in both our site and in flipkart.

what we want to achieve is display "same Quantity" in both sites.

Suppose if one product sold in flipkart, than quantity will decrease in flipkart.

same quantity should reflect in our site too for that sku.

flipkart provides an API for this : https://seller.flipkart.com/api-docs/FMSAPI.html

Is it possible to display same quantity in both sites using an API.

Was it helpful?

Solution

This would be possible if both sites support webhooks. Magento 2 (and Magento 1) at the moment does not provide such functionality out of the box, but you might implement something custom since you have control over it. I don't know if http://www.flipkart.com/ has webhooks functionality, if not - then you need to modify their code.

On the other hand, if webhooks are not available, you can implement some script which will periodically request current quantity from both systems via web API and then make updates if necessary.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top