Hi All,
Im using graphql activate and then deactivate to set inventory from default location, to a new location.
Activation works as expected:
mutation ActivateInventoryItem($inventoryItemId: ID!, $locationId: ID!, $available: Int) {
inventoryActivate(inventoryItemId: $inventoryItemId, locationId: $locationId, available: $available) {
inventoryLevel {
id
quantities(names: [“available”]) {
name
quantity
}
item {
id
}
location {
id
}
}
}
}
Deactivate the default location works ok too:
mutation inventoryDeactivate($inventoryLevelId: ID!) {
inventoryDeactivate(inventoryLevelId: $inventoryLevelId) {
userErrors {
message
}
}
}
However, when I check in admin console, my product / variant still lists on both Inventories (default & new).
When I check into the product, my Location is correctly set to just 1 location (the new location I activated above).
Any one found this before please? Is there another graphql or additional parameters i need to add to deactivate it from the default Inventory list?
Thanks Len
