Covers all questions related to inventory management, order fulfillment, and shipping.
Hi,
I am trying to set the on_hand quantities for a fulfillment service location using the following graphql API:
mutation inventorySetOnHandQuantities($input: InventorySetOnHandQuantitiesInput!) { inventorySetOnHandQuantities(input: $input) { inventoryAdjustmentGroup { createdAt reason } userErrors { field message } } }
Hi Ppadlia,
This error typically occurs when the locationId
you're providing in the request does not exist or is not associated with your Shopify account. Here's a few suggestions to troubleshoot this issue:
Check the locationId
: Make sure the locationId
you are passing is correct. You can fetch all your location IDs using the locations
query to confirm.
Fulfillment Service Location: If you're using a fulfillment service, ensure that you're using the correct locationId
of the fulfillment service and not your store's location.
Permissions: Ensure your app has necessary permissions to access and modify inventory levels at the specified location.
Check your Fulfillment Service Settings: You mentioned that the `permitsSkuSharing` option is set to true. This setting allows sharing SKUs between your store and the fulfillment service. However, it may not allow inventory adjustments at the location You might want to check the settings or contact the fulfillment service provider for more details.
Try the above steps to troubleshoot and let us know if you're still seeing issues. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog