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 Callback Payload

Webhook Callback Payload

zendu
Shopify Partner
1 0 0

Hi, 

im trying to create a custom Storefront (not using hydrogen).

I have created webhook subscriptions for "/products/create", "/products/update", "/products/delete" using the GraphQL Admin API.

When I create/update a product, I only get this payload in the triggered webhook request body:

body =

{
  id: 8520488485109,
  variant_gids: [
    {
      admin_graphql_api_id: 'gid://shopify/ProductVariant/45276618752245'
    }
  ]
}

 

With this behavior, I have to query the storefront api again to retrieve the fields of the product, is that how it should be?

Or is there a way to retrieve specific fields of the product or any field that has been updated in the webhook payload (eg. "title", "handle", "featuredImage", ...)?



THANKS!

Replies 0 (0)