Skip to main content

publicStorefrontAppBlocks

Public: no authentication required.

The blocks installed apps show a signed-out visitor at one place in the store: storefront.footer.block only. The store is the request host. A block that failed is left out.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query PublicStorefrontAppBlocks($subdomain: String!, $target: String!) {
publicStorefrontAppBlocks(subdomain: $subdomain, target: $target) {
title
appName
appHandle
handle
installationId
components {
currencyCode
type
amount
display
label
max
}
}
}

Variables:

{
"subdomain": "string",
"target": "string"
}

Response:

{
"data": {
"publicStorefrontAppBlocks": [
{
"title": "string",
"appName": "string",
"appHandle": "string",
"handle": "string",
"installationId": "id",
"components": [
{
"currencyCode": "string",
"type": "string",
"amount": "string",
"display": "string",
"label": "string",
"max": 0
}
]
}
]
}
}
publicStorefrontAppBlocks(
subdomain: String!
target: String!
): [AppBlockView!]!

Arguments​

publicStorefrontAppBlocks.subdomain ● String! non-null scalar​

The store's subdomain, used only when the request host names no store.

publicStorefrontAppBlocks.target ● String! non-null scalar​

The place: storefront.footer.block.

Type​

AppBlockView object​

One installed app's block for a place in the app. A block that failed is left out, never sent empty.