What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

POST webhook returns 200 but empty array

POST webhook returns 200 but empty array

brickfox
Shopify Partner
2 0 0

Dear community,

 

we are trying to register a webhook from a custom app.

This worked a few times in the past, but for a new customer, it is not.

We are POSTing to /admin/api/2023-10/webhooks.json with the payload

{
  "webhook": {
    "topic": "orders/create",
    "address": "https://***/webhook/orders-create",
    "format": "json"
  }
}

The API return status code 200 but an empty array of webhooks:

{
	"webhooks": []
}

When trying to GET the /admin/api/2023-10/webhooks.json endpoint, the same result is returned, so the webhook is not created.

 

How can I find the reason for the webhook not beeing created?

 

Kind regards

Niko

Replies 0 (0)