# Custom Webhook  to process code

**URL:** https://forum.shopware.com/t/custom-webhook-to-process-code/62953
**Category:** Programmierung
**Created:** [13. November 2019 um 11:26 UTC](https://forum.shopware.com/t/custom-webhook-to-process-code/62953 "2019-11-13T11:26:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![teseres451](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@teseres451](https://forum.shopware.com/u/teseres451)
#### Post date: [13. November 2019 um 11:26 UTC](https://forum.shopware.com/t/custom-webhook-to-process-code/62953/1 "2019-11-13T11:26:52Z")

</div>

Hi,

&nbsp;

I have created a new plugin that will call an external API to update stock. I&nbsp;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.&nbsp; How to provide a listener URL to them.

&nbsp;

> 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 object
> 
> Each 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
