接口访问需要令牌,具体如何获取令牌参考:身份认证
查询跟 storefront access token 关联的店铺信息。
Return
name ● String!non-null
店铺的名称。
id ● ID!non-null
店铺的唯一 ID 。
brand ● StoreBrand
店铺的品牌信息。
More
metafield ● Metafield
关联在店铺上的元字段。
More
metafields ● [Metafield]
关联在店铺上的一组元字段。
More
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
查询店铺的信息。
query Shop {
shop {
name
id
brand {
coverImage {
image {
url
}
mediaContentType
}
logo {
image {
url
}
mediaContentType
}
shortDescription
squareLogo {
image {
url
}
mediaContentType
}
slogan
}
}
}
Response
{
"data": {
"shop": {
"name": "OpenAPI test store",
"brand": {
"coverImage": null,
"logo": null,
"shortDescription": null,
"slogan": null,
"squareLogo": null
},
"id": "1672369729606"
}
}
}
这篇文章对你有帮助吗?