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:
- GraphQL
- cURL
query PublicStorefrontAppBlocks($subdomain: String!, $target: String!) {
publicStorefrontAppBlocks(subdomain: $subdomain, target: $target) {
title
appName
appHandle
handle
installationId
components {
currencyCode
type
amount
display
label
max
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query PublicStorefrontAppBlocks($subdomain: String!, $target: String!) {\n publicStorefrontAppBlocks(subdomain: $subdomain, target: $target) {\n title\n appName\n appHandle\n handle\n installationId\n components {\n currencyCode\n type\n amount\n display\n label\n max\n }\n }\n}",
"variables": {
"subdomain": "string",
"target": "string"
}
}
EOF
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.