unique identifier for custom app account with app_subscriptions/update

Shopify Partner
3 0 0

Hello, I hope you guys are well. 





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. 


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?



Replies 0 (0)