Focusing on managing products, variants, and collections through the API.
I have a problem with stock and location.
The issue is:
1. I created fulfillment service and then pushed product with variant stock success to my store.
2. Testing by creating new fulfillment service , or even if removing app (when removing app, the stock will return to the main location)
3. I create new fulfillment service, and try to update these product stocks with the new fulfillment service.
=> And the issue is bottled that: The specified inventory item is not stocked at the location.
My expectation is update product from my app to shopify store with the new fulfillment service and location.
After pushing success, it can show the stock directly for the new fulfillment service in shopify product editor.
How can I do that? Does it need locations permission?
I used the list mutation below:
- https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productCreate
- https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productVariantsBulkCreate
- https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productVariantsBulkUpdate
- https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventoryAdjustQuantities
And I've been stucking with inventoryAdjustQuantities mutation when updating stock for my old products
After researching, the main thing that I want to change the inventory management for a fulfillment service location to a new fulfillment service location.
By going to Variant detail and update the option Inventory will be stocked at manually, and it works when updating stock with new fulfillment service location, but seems like it's stupid, right? Can anyone help me?