Edit in GitHubLog an issue
Thanks to Atwix for contributing this topic!

Simple product data types

The SimpleProduct data type implements the following interfaces:

Attributes that are specific to the simple products can be used when performing a products query.

Sample query

The following query returns information about simple product 24-MB01, which is defined in the sample data.

Copied to your clipboard
{
products(
filter: {
sku: {
eq: "24-MB01"
}
}
) {
items {
sku
__typename
uid
name
categories {
uid
name
path
}
price_range {
minimum_price {
final_price {
currency
value
}
}
maximum_price {
final_price {
currency
value
}
}
}
stock_status
}
}
}
Copied to your clipboard
{
"data": {
"products": {
"items": [
{
"sku": "24-MB01",
"__typename": "SimpleProduct",
"uid": "MQ==",
"name": "Joust Duffle Bag",
"categories": [
{
"uid": "Mw==",
"name": "Gear",
"path": "1/2/3"
},
{
"uid": "NA==",
"name": "Bags",
"path": "1/2/3/4"
}
],
"price_range": {
"minimum_price": {
"final_price": {
"currency": "USD",
"value": 34
}
},
"maximum_price": {
"final_price": {
"currency": "USD",
"value": 34
}
}
},
"stock_status": "IN_STOCK"
}
]
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.