Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello, I hope you guys are well.
Webhook
Context
we have a custom app that is integrated with shopify and that app has multiple accounts registered against it. We want to trigger a webhook that updates subscription plan in the database whenever a user upgrades/downgrades the subscription plan.
Problem
The webhook payload does not contain information that we can use to uniquely identify the each user registered against our custom app that is registered with shopify. Attaching the sample payload body. Also the Header contains information that is unique to the shopify store not the individual accounts registered with that stores.
{ admin_graphql_api_id: 'gid://shopify/AppSubscription/1029266966', name: 'Webhook Test', status: 'PENDING', admin_graphql_api_shop_id: 'gid://shopify/Shop/548380009', created_at: '2021-12-31T19:00:00-05:00', updated_at: '2021-12-31T19:00:00-05:00', currency: 'USD', capped_amount: '20.0' }
How can I solve this problem?
Same problem here! Also I need the subscription details like, user email, start date, end date, and plan id for example