query parameters in webhook address

niraizik
New Member
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"
  }
}
0 Likes
mikedasilva
Shopify Staff
Shopify Staff
26 2 2

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

 

mikedasilva | Developer @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes