Hello all,
I have the following jsonl object to update variants including inventory quantities. However, this is working if I remove “inventoryQuantities” from jsonl. Could someone please let me know what am I missing here? thanks
I am using the latest api version 10-2024. Thanks
{
"productId": "gid://shopify/Product/9249501937848",
"variants": [{
"id": "gid://shopify/ProductVariant/48715982536888",
"barcode": "5015860071782",
"price": 6.99,
"inventoryItem": {
"sku": "969",
"cost": 3.58,
"tracked": true,
"measurement": {
"weight": {
"unit": "GRAMS",
"value": 32
}
}
},
"inventoryPolicy": "DENY",
"inventoryQuantities": {
"locationId": "gid://shopify/Location/68265869496",
"availableQuantity": 509
}
}
]
}