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.
This is an example Request from API System, if there a new buy in this system. We can use the SKU from this to call them, to get the new stock.
2.3 The JSON Request objectEach time the external system call is triggered, the cash register sends the current document as a JSON object as a request to the stored URL. The JSON object corresponds to the structure and content of the cash register receipt. Only existing document parts are transferred. If there is no customer on the document, the object part is missing in the call. Thus, the request can consist of the following main parts with the respective properties:Request object
Document object receipt
Document customer - customer
Post - sales
Account bookings - account transactions
Payments - payments
Example of a document with two items, an account posting, for customer Thomas Müller:
Need open URL where API Provider send response