I used the mutation for setting quantities for product with fulfillment service location.
mutation inventorySetOnHandQuantities($input: InventorySetOnHandQuantitiesInput!) { inventorySetOnHandQuantities(input: $input) { userErrors { field message } inventoryAdjustmentGroup { createdAt reason referenceDocumentUri changes { name delta } } } }
Variables:
{
"input": {
"reason": "correction",
"referenceDocumentUri": null,
"setQuantities": [
{
"quantity": 2399,
"locationId": "gid://shopify/Location/99253289248",
"inventoryItemId": "gid://shopify/InventoryItem/50738918031648"
},
{
"quantity": 2383,
"locationId": "gid://shopify/Location/96594264352",
"inventoryItemId": "gid://shopify/InventoryItem/50738921275680"
}
]
}
}
But I got the error that LOCATION_NOT_FOUND.
What is the problem? And how can I solve this?