Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
After uninstalling the app the uninstalled webhook is triggered so that I can cleanup the user data in my database.
But Iam cleaning up the DB based on shop's ID not the domain because domain can be changed , so to get the shop's ID I have to query the admin API but thats the issue after uninstalling the access token has been revoked immediately.
Any alternate solution would be helpful.
The domain sent in the "x-shopify-shop-domain" header should be the myshopify shop ID, which cannot be changed, so you should be fine to use that. This is different from the public facing domain the shop can configure and change.
Thanks for the reply but the value of this header x-shopify-shop-domain seems to same as the shop front store domain , suppose if anyone changed the domain so this also be changed or not ?
also I saving the shop ID which looks like this : gid://shopify/Shop/<number>
I got this ID by querying
let response = await admin.graphql(
`query {
shop {
name
email
id
url
}
}`,
);
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024