inventoryMoveQuantities creating a new "Managed by Apps" inventory state instead of the desired Unavailable inventory state

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

I’m trying to do the same thing and I have the exact same problem here.
Have you found a solution?

Unfortunately not. I spoke to our Shopify Plus rep who did some digging and found that our use case is “a current limitation of the API” according to a senior developer.

I haven’t found another way to move products in bulk to this new inventory state either. Hopefully the API gets an update, or the bulk editor does, or the inventory import/export does. There’s a lot of ways this could be done, but nothing seems to make use of these new inventory states yet.

1 Like