Personalized checkout and custom promotions with Shopify Scripts
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
}
}
]
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025