shop
query
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
Store name.
Store's unique ID.
Store's brand information.
The metafield associated with the store.
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.
Code
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?