What's your biggest current challenge? Have your say in Community Polls along the right column.

Update Quanity in Bulk Using productVariantsBulkUpdate

Update Quanity in Bulk Using productVariantsBulkUpdate

excellentpick
Shopify Partner
4 1 0

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
            }
        }
    ]
}

 

 

 

 

Replies 0 (0)