Fetch a product by SKU
Retrieve a product using its SKU when you don't have the productId.
Query
query GetProductBySku($sku: String!) {
product(sku: $sku) {
productId
sku
names { language value }
manufacturer
status
}
}
Variables
{
"sku": "HP-450G10-I5"
}
Response
{
"data": {
"product": {
"productId": 1895,
"sku": "HP-450G10-I5",
"names": [
{ "language": "NL", "value": "HP ProBook 450 G10 i5" }
],
"manufacturer": "HP",
"status": "A"
}
}
}
How it works
SKU is a unique identifier. If no product matches the SKU, the API returns null.