Get shop data by shop_id

Highlighted
Tourist
4 0 0

Hello community,

I'm trying to get shop details like name, email, etc by shop_id.

I have this APP_SUBSCRIPTIONS_UPDATE webhook response:

{
"app_subscription": {
"admin_graphql_api_id": "gid:\/\/shopify\/AppSubscription\/11111111",
"name": "business",
"status": "ACTIVE",
"admin_graphql_api_shop_id": "gid:\/\/shopify\/Shop\/11111111",
"created_at": "2020-06-29T16:36:13-04:00",
"updated_at": "2020-06-29T16:42:03-04:00"
}
}

Here I can only get subscription id and shop id. Can someone please explain me how can I retrive shop data from this?

I would appreciate any help.

Thank you in advance!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
462 93 80

Hi @Alex_Buran 

 

Are you able to pull data from the API? The fields mentioned are available through the Shop API: https://shopify.dev/docs/admin-api/rest/reference/store-properties/shop?api[version]=2020-04 or through Graphql here: https://shopify.dev/docs/admin-api/graphql/reference/object/shop?api[version]=2020-04

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


1 Like