Hello,
I have a private app that I’m trying to use to move inventory in bulk from Available to Unavailable, specifically the safety_stock inventory state. I am using the inventoryMoveQuantities mutation and specifying that I want the inventory to move from available to safety_stock, but when I look at the products in the Shopify Admin, the Unavailable inventory is listed under Managed By Apps and the Unavailable inventory is attributed to my app.
I’d like this unavailable inventory to be attributed to Safety Stock instead, so that other employees in our company can change the inventory levels on a per-product basis through the Admin later on. As it is now, the only way to change this Unavailable inventory is by using my app again.
Here is the query and variables that I am using:
mutation inventoryMoveQuantities($input: InventoryMoveQuantitiesInput!, $quantityNames: [String!]) {
inventoryMoveQuantities(input: $input) {
userErrors {
field
message
code
}
inventoryAdjustmentGroup {
createdAt
reason
referenceDocumentUri
changes(quantityNames: $quantityNames) {
name
delta
}
}
}
}
{
"input": {
"reason": "correction",
"referenceDocumentUri": "logistics://some.warehouse/take/2023-01-23T13:14:15Z",
"changes": [
{
"quantity": 1,
"inventoryItemId": "gid://shopify/InventoryItem/45185867677741",
"from": {
"locationId": "gid://shopify/Location/41441591341",
"name": "available"
},
"to": {
"locationId": "gid://shopify/Location/41441591341",
"name": "safety_stock",
"ledgerDocumentUri": "uri://example.com/some/external/reference"
}
}
]
},
"quantityNames": [
"committed",
"reserved",
"safety_stock",
"quality_control",
"damaged",
"available",
"on_hand",
"incoming"
]
}
I’m not sure if it’s relevant, but I’m executing the GraphQL query with Python. Any help is much appreciated!
Thank you