Creating Webhooks - Webhook fields (shopify-app.php) #165
clydesantiago
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Backgorund
Example of an entry in config/shopify-app.php:
When a shop logs into your app, this webhook entry will automatically be installed and App/Jobs/ProductsUpdateJob will be ready to accept data.
Problem
Currently, even if we specify
'fields' => ['id', 'title', 'handle', 'image'],
it will still register all the fields since it's not yet supported.Suggestion
Add support for
fields
. This will allow us to receive webhooks with the specified fields only.Note
See example here. https://shopify.dev/docs/api/admin-rest/2022-04/resources/webhook#post-webhooks-examples
Beta Was this translation helpful? Give feedback.
All reactions