# WebHooks

### Install

After you have downloaded the code from CodeCanyon, log in to your admin panel as admin and go to the "Apps" section. there is an "Add" button where you can upload the zip file you got from CodeCanyon.

{% content-ref url="/pages/-MXf92\_\_T5iQR3PBKVRg" %}
[How to install plugin](/mresto/plugins/how-to-install-plugin.md)
{% endcontent-ref %}

### Setup as project admin

After the module is installed, if you go to "Settings->Apps" you will see the "WebHooks" section.&#x20;

![](https://i.imgur.com/HEbpUw3.png)

WebHooks is a link or an API endpoint that accepts POST call with data for the order being made.&#x20;

You can set WebHook when the order is approved by the admin ( system ) or by the vendor.&#x20;

You can connect with tools like [integromat](https://www.integromat.com/) or [zappier](https://zapier.com/) and connect the project with some of their connections. &#x20;

You or your developer can make a custom API that will receive this data and extend the system without modifying any of the code of the project.

### Setup as vendor

When vendors log in, they can go to "Restaurant->Apps->WebHooks"

![](https://i.imgur.com/LlNLeQ8.png)

WebHooks is a link or an API endpoint that accepts POST call with data for the order being made.&#x20;

Vendors can set WebHook when the order is approved by the admin ( system ) or by themself.&#x20;

They can connect with tools like [integromat](https://www.integromat.com/) or [zappier](https://zapier.com/) and connect the project with some of their connections. &#x20;

A developer can make a custom API that will receive this data and extend the system without modifying any of the code of the project.

### Video

{% embed url="<https://www.youtube.com/watch?v=5bl9TZP2GBY>" %}

### Demo

In order to experience the demo, and test&#x20;

1. Go inside the demo of [FoodTiger](https://foodtiger.site/),[ QR Menu](https://zebra-qr.com/), or [WhatsApp food](https://whatsappmenus.com/) and login as <admin@example.com> | secret
2. Then go to restaurants, and choose some of the demo restaurants
3. Go in Apps tab
4. Enter a link for the WebHook ( you can use any POST API link )
5. Do a demo order for that restaurant
6. You should get the order data to send to that url
7. Remove the url link from that restaurant

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mobidonia.gitbook.io/mresto/plugins/webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
