Anchor to currentAppInstallationcurrent
currentAppInstallation
query
Return the AppInstallation for the currently authenticated App.
Anchor to Possible returnsPossible returns
- Anchor to AppInstallationApp•
Installation Represents an installed application on a shop.
Was this section helpful?
- Get a list of access scopes
- Retrieves a list of application charges
- Retrieves a list of recurring application charges
Examples
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}`,
);
const data = await response.json();
query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query AccessScopeList { currentAppInstallation { accessScopes { handle } } }"
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}`,
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: `query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}`,
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}
QUERY
response = client.query(query: query)
Response
JSON{
"currentAppInstallation": {
"accessScopes": [
{
"handle": "read_all_orders"
},
{
"handle": "read_all_subscription_contracts"
},
{
"handle": "read_analytics_overviews"
},
{
"handle": "read_billing"
},
{
"handle": "read_checkouts"
},
{
"handle": "read_discovery"
},
{
"handle": "read_discovery_synonym_groups"
},
{
"handle": "read_payment_settings"
},
{
"handle": "read_subscription_plans"
},
{
"handle": "read_users"