An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Query store information associated with storefront access token.
Returns
name ● String!non-null
Store name.
id ● ID!non-null
Store's unique ID.
brand ● StoreBrand
Store's brand information.
metafield ● Metafield
The metafield associated with the store.
metafields ● [Metafield]
List of metafields associated with the store.
Error Code
For more information about common error codes, refer to Status and error codes.
Example
Query store information.
query Shop {
shop {
name
id
brand {
coverImage {
image {
url
}
mediaContentType
}
logo {
image {
url
}
mediaContentType
}
shortDescription
squareLogo {
image {
url
}
mediaContentType
}
slogan
}
}
}
Response
{
"data": {
"shop": {
"brand": {
"logo": null,
"shortDescription": null,
"slogan": null,
"squareLogo": null,
"coverImage": null
},
"id": "1672369729606",
"name": "OpenAPI 测试店铺"
}
}
}
Was this article helpful to you?