Covers all questions related to inventory management, order fulfillment, and shipping.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
I'm using the Graph QL Admin API to create variants for a product using the "productVariantsBulkCreate" mutation.
The variants should not track inventory as I'm using Printful, so I set "tracked" to false under "inventoryItem". In order to set the location for the variant I have to add the ID of the Printful Location, the only place I can do that is under "inventoryQuantities" which also require me to set "availableQuantity" which I do.
When I create all the variants they all come in as expected and I can see the product and variants on the products page of the store, but after a few minutes most (but not all) of the variants is updated so "Track quantity" is marked, and if I query Graphql then I can also see the variants has "tracked" set to true.
If I don't set "inventoryQuantities" then the inventory stays non tracked, but then the location of the store is just set to "Shop location" instead of Printful.
I can run through all the variants afterwards with graphql and set tracked to false, but that feels wrong, doing it once should be enough!
Hope someone can help!
I have 30 variants, they are all set to tracked false, but when I check them afterwards it looks like this:
"data": {
"product": {
"id": "gid://shopify/Product/11111111111111",
"variants": {
"edges": [
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": true
}
}
},
{
"node": {
"inventoryItem": {
"tracked": false
}
}
}
]
}
}