Using webhooks in plugins

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!

Hello. Did you find a solution to this?

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

{
  "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"
  }
}

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

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

1 „Gefällt mir“

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