> For the complete documentation index, see [llms.txt](https://developer.converted.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.converted.in/magento-or-webhooks/getting-started-1.md).

# Webhook

There are some actions that you need to trigger on some events

Production BaseUrl `app.converted.in/magento/webhooks`

Testing BaseUrl `app-stg.converted.in/magento/webhooks`

### Actions to trigger

When a new collection/category is added [webhook](https://developer.converted.in/magento-or-webhooks/categories)

When a new user is registered [webhook](https://developer.converted.in/magento-or-webhooks/customers)

When a new product is added/updated/stock changed [webhook](https://developer.converted.in/magento-or-webhooks/products)

When order is added or updated [webhook](https://developer.converted.in/magento-or-webhooks/orders)

#### Request template

## Request authorization should follow the following template

<mark style="color:green;">`POST`</mark> `BASEURL/endpoint`

#### Headers

| Name          | Type   | Description                                               |
| ------------- | ------ | --------------------------------------------------------- |
| Authorization | string | Bearer token, the same magento token that you provided us |

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| JSON object | string | json entity |

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

```
{
    "status": "success"
}
```

{% endtab %}

{% tab title="401 " %}

```
{
    "status": "Authorization error"
}
```

{% endtab %}
{% endtabs %}
