# Using webhooks in plugins

**URL:** <https://forum.shopware.com/t/using-webhooks-in-plugins/99062>\
**Category:** Shopware 6 (English)\
**Tags:** programming\
**Created:** [23. März 2023 um 15:22 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062 "2023-03-23T15:22:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavlos](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pavlos](https://forum.shopware.com/u/pavlos)\
**Post date:** [23. März 2023 um 15:22 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062/1 "2023-03-23T15:22:04Z")

</div>

Hello,

I have created a plugin for Shopware 6. I need to use webhooks when an order is placed, but I couldn’t find any documentation regarding this one. Can anyone help?

I tried using admin api(_/api/webhook_) to create one but I got the following error:  
„This field is write-protected. (Got: "crud" scope and "system" is required)“.

Thanks!

---

<div class="post-metadata">

**Author:** ![michael7](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@michael7](https://forum.shopware.com/u/michael7)\
**Post date:** [2. Mai 2023 um 10:09 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062/2 "2023-05-02T10:09:36Z")

</div>

Hello. Did you find a solution to this?

I am trying to create a webhook using the REST admin api, but getting some errors.

```auto
{
  "code": "FRAMEWORK__WRITE_CONSTRAINT_VIOLATION",
  "status": "400",
  "detail": "This field is write-protected. (Got: \"crud\" scope and \"system\" is required)",
  "template": "This field is write-protected. (Got: \"%s\" scope and \"%s\" is required)",
  "meta": {
    "parameters": [
      "crud",
      "system"
    ]
  },
  "source": {
    "pointer": "/0/errorCounterrorCount"
  }
}

```

---

<div class="post-metadata">

**Author:** ![s.b](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@s.b](https://forum.shopware.com/u/s.b)\
**Post date:** [21. Juni 2023 um 14:52 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062/3 "2023-06-21T14:52:19Z")

</div>

Hi,

I am getting the same error message, would appreciate if someone could share their solution.

**SW Version** : 6.4.11.0 (Dockware dev)

Thanks

---

<div class="post-metadata">

**Author:** ![pavlos](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pavlos](https://forum.shopware.com/u/pavlos)\
**Post date:** [21. Juni 2023 um 15:47 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062/4 "2023-06-21T15:47:19Z")

</div>

I didn’t find a solution for this one, so I created a separate app for creating the webhooks.

---

<div class="post-metadata">

**Author:** ![omer.iliski](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@omer.iliski](https://forum.shopware.com/u/omer.iliski)\
**Post date:** [26. Januar 2024 um 09:53 UTC](https://forum.shopware.com/t/using-webhooks-in-plugins/99062/5 "2024-01-26T09:53:54Z")

</div>

Did anyone find a solution? i have the same issue.
