> For the complete documentation index, see [llms.txt](https://mipos.gitbook.io/public-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mipos.gitbook.io/public-api/markets/delivery-webhooks.md).

# Third Party Webhook Management

| Available types | Description                                                   |
| --------------- | ------------------------------------------------------------- |
| MENU            | webhook for receive menus uploads and menu changes.           |
| ORDER\_STATUS   | webhook for receive the status result when you send an order. |

## Create Webhook for Third Party  (create or update)

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/third_party/v1/integration/webhook/create`

This endpoint allows you to create or update webhooks by a type.&#x20;

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Content-type  | string | application/json       |
| Authorization | string | Bearer {access\_token} |

#### Request Body

| Name   | Type   | Description                            |
| ------ | ------ | -------------------------------------- |
| url    | string | <https://yourapiurl.com/weebhook/menu> |
| type   | string | TAG in available table. example: MENU  |
| secret | string | Use like a password                    |

{% tabs %}
{% tab title="201 " %}

```javascript
{
    "message": "Webhook successfully created",
    "data": null
}
```

{% endtab %}

{% tab title="409 Could not find a cake matching this query." %}

```javascript
{
    "message": "This webhook already exists",
    "data": null
}
```

{% endtab %}
{% endtabs %}
