Shopify / shopify_python_api

ShopifyAPI library allows Python developers to programmatically access the admin section of stores
http://shopify.github.io/shopify_python_api
MIT License
1.23k stars 348 forks source link

Add inventoryAdjustQuantities/inventoryActivate/inventoryDeactivate bulk mutation operation #724

Open plesoiucosmin opened 1 month ago

plesoiucosmin commented 1 month ago

There does not seem to be a way to update/activate/deactivate a location inventories by using a bulkOperationRunMutation Operations to add bulk option:

Batch updating location inventories and activate/deactivate inventories one by one complicate and slow down the process of synchronizing inventories per location. So adding bulk option for these operations will help us a lot to automate the stock update flow.

Not having batch/bulk operations support in the GraphQL API for such common use cases is a MAJOR oversight from the technical/product team.

We are also affected by this shortsightedness of the Shopify team in our effort to build automated stock update flows with our suppliers with catalogs of hundreds of thousands of products.

https://community.shopify.com/c/graphql-basics-and/graphql-bulkoperation-to-update-inventory-quantities/td-p/2078327

alexminza commented 1 month ago

Batch updating location inventories and activate/deactivate inventories one by one complicate and slow down the process of synchronizing inventories per location. So adding bulk option for these operations will help us a lot to automate the stock update flow.

There need to be bulk methods that would take multiple products and assign them to an inventory location:

Currently there is a batch method that activates one product to multiple locations but not the other way around: multiple products in a single location: inventoryBulkToggleActivation https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventoryBulkToggleActivation