I tried filling out referencedocumenturi
field in inventorySetQuantities
mutation.
I would expect it to show up as a link on “inventory adjustment history”, however nothing shows up:
Where can I expect reference document URI to show up in the UI?
Hi just to confirm, is this screenshot from the Shopify admin or your own UI? Can you post the full mutation you’re making?
Yes, the screenshot is from Shopify Admin UI (full URL).
Mutation and response below. You can see that reference document id has been echoed back.
{"query":"
mutation InventorySet($input: InventorySetQuantitiesInput!) {
inventorySetQuantities(input: $input) {
inventoryAdjustmentGroup {
createdAt
reason
referenceDocumentUri
changes {
name
delta
}
}
userErrors {
field
message
}
}
}
","variables":{
"input":{
"name":"available",
"reason":"correction",
"quantities":[
{
"inventoryItemId":"gid://shopify/InventoryItem/41502250205220",
"locationId":"gid://shopify/Location/36756848676",
"quantity":111
}
],
"ignoreCompareQuantity":true,
"referenceDocumentUri":"http://www.kruszewski.com/"}
}
}
Response:
{
"data": {
"inventorySetQuantities": {
"inventoryAdjustmentGroup": {
"createdAt": "2025-02-07T17:10:27Z",
"reason": "correction",
"referenceDocumentUri": "http://www.kruszewski.com/",
"changes": [
{
"name": "available",
"delta": -12
},
{
"name": "on_hand",
"delta": -12
}
]
},
"userErrors": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 11,
"actualQueryCost": 11,
"throttleStatus": {
"maximumAvailable": 4000.0,
"currentlyAvailable": 3989,
"restoreRate": 200.0
}
}
}
}
Updated screenshot:
@Liam-Shopify Any updates here? I’m seeing the same behavior where neither ledgerDocumentUri
or referenceDocumentUri
are linked/displayed in the UI. Our requests were using 2024-04
Hey folks - I did connect with the product team on this, and our team are aware and working on resolving this. I don’t have an ETA to share on when this will be resolved, but I’ll report back here when I have more info.
2 Likes