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.

webhook doesn't return post parameters

webhook doesn't return post parameters

Antonio84
Shopify Partner
50 1 3

Hello, I have registered some webhook in the notifications admin panel, like update inventory.

I tried to send and receive a webhook with the testing button and it works.

I get the InventoryItem updated but there are no post parameters.

For example if I have more than one webhooks how to distinguish them?

I need to get shop info also, if I have more than one shopify website where this webhook come from?

How to get all these data?

I am using Flask.

 

Thansk

Replies 2 (2)

james-langille
Shopify Staff (Retired)
70 15 28

Hello @Antonio84,

You are correct that there are no post parameters, just a payload of the updated model you are looking for. If you're looking for more details, take a look at https://shopify.dev/docs/admin-api/rest/reference/events/webhook - it describes some of the different headers that are sent, such as 'X-Shopify-Webhook-Id' (to uniquely identify webhooks) and 'X-Shopify-Shop-Domain' (to see which store triggered the webhook).

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

Antonio84
Shopify Partner
50 1 3

ok I found myself a solution, 

it could be helful,

use  

 

request.headers