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! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024