Pass parameters to Webhook URL

Pass parameters to Webhook URL

Ramesh_Kunhiram
Visitor
3 0 0

Could someone share an example on how to pass parameters to a webhook URL from shopify admin panel

Regards, Ramesh

 

 

Replies 2 (2)

elliot74710
Shopify Staff (Retired)
84 0 6

Hey Ramesh.

Here's an example:

1. Go to Request Bin and click "Create a request Bin". It will give you a bin URL - you can then go to that page.

2. Go to Shopify - in your Admin -> Settings -> Notifications, create a webhook for the action of your choosing in JSON or XML. Paste the bin URL in the URL field. 

3. Choose the action from the action list that you would like. Send a test notification. 

4. Go to Request Bin, hit refresh. All that info should be populated. 

Cheers, Elliot
support@shopify.com

Elliot | 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 the Shopify Help Center or the Shopify Blog

Ramesh_Kunhiram
Visitor
3 0 0

Thanks for your reply.

I had already done the steps you mentioned above. What I want to do is send a parameter to the URL. Let me share an example. I have a requirement where I need to send orderno and mobile no when the order creation event is triggered like -

URL/?order_no=xxx&param2=xxx

The Order record is passed as a JSON document to the url. What I need is just the orderno and mobile number to be selectively passed to url. The URL is an existing third party API, that I cannot change, it expects these two parameters to be sent for the  API to trigger the correct fucntion.

Hope this should clarify the problem better.

Regards , Ramesh