query parameters in webhook address

niraizik
Visitor
1 0 0

Hi,

Does webhooks support query parameters in address field ?
something like this

POST /admin/api/2021-01/webhooks.json
{
  "webhook": {
    "topic": "orders/create",
    "address": "https://whatever.hostname.com?query1=value1&query2=value2",
    "format": "json"
  }
}
Reply 1 (1)

mikedasilva
Shopify Staff (Retired)
61 7 13

Hi @niraizik 

Yes, that should be supported. You can try posting that and then calling the same API (with GET) to retrieve your subscriptions to ensure the data matches what you expect.

Cheers

 

To learn more visit the Shopify Help Center or the Community Blog.