Hi,
I have many inventory lines to update.
I am updating using the set inventory API.
It does not seem to be possible to submit this as an array, and can only be called item by item.
This is leading me to be rate limited by Shopify.
Has anyone been able to achieve this?
Thank you
Hi
You can use the GraphQL mutation to bulk update the Inventory - The two mutations available for doing this would be:
If you want to set on_hand quantity -
inventorySetOnHandQuantities
Or use inventoryAdjustQuantities and you can set the name which you can specify available, on_hand, committed.
Here is the API link - https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/inventoryAdjustQuantities
FYI - Please be aware though it only allows delta values (with REST you just set what you want the Available Qty to be) in the mutations you can only set the delta values, for example if the current Available Qty against a SKU in Shopify is 10 and you are wanting to update the Available Qty to be 45 then would set the Detla value to be 35 not 45 as that would set the available qty to 55.
Thanks
Steve