Webhook URL integration

Hi,

I have created a new plugin that will call an external API to update stock. I have set up a cron job these will lead to overload our server. I have discussed with API provider they told me we will provide webhook but you need to place the listener in shopware.  How to provide a listener URL to them.

 

Step 1 : Place an Order

Step 2: Call an external API checkout (Stock Adjustment)

Step 3: Its update stock in external Stock Manager 

Step 4: That’t it

Its working good. Now issue is when External Soruce Stock updated we can’t get that update and stock is mismatch.

 

Solution :

  1. Provide them a static URL where they can send data whenever a stock modified outside shopware.

  2. Cron Job Setup website

I want to know how provide a website URL in plugin.