@Donal-Shopify, You were right, I was only calling the 1st object in the lineItems field. Now that I have incremented the first number to 5, I can see that 2 items were restocked and 1 item was not, as its disposition is empty array. Still, one thing that is bugging me is how I can find which item was restocked at which location. From the output below, I can say that 2 items were restocked, but it is difficult for me to actually map the right item to the right facility for restocking.
{
"returns": {
"edges": [
{
"node": {
"id": "gid://shopify/Return/48918954028",
"createdAt": "2026-09-22T09:14:18Z",
"status": "CLOSED",
"reverseFulfillmentOrders": {
"edges": [
{
"node": {
"id": "gid://shopify/ReverseFulfillmentOrder/48398401580",
"lineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/ReverseFulfillmentOrderLineItem/78892040236",
"dispositions": []
}
},
{
"node": {
"id": "gid://shopify/ReverseFulfillmentOrderLineItem/78892073004",
"dispositions": [
{
"type": "RESTOCKED",
"quantity": 1,
"id": "gid://shopify/ReverseFulfillmentOrderDisposition/4071260204",
"createdAt": "2026-09-22T09:14:22Z",
"location": {
"id": "gid://shopify/Location/11125850169",
"name": "Test Location 1"
}
}
]
}
},
{
"node": {
"id": "gid://shopify/ReverseFulfillmentOrderLineItem/78892105772",
"dispositions": [
{
"type": "RESTOCKED",
"quantity": 1,
"id": "gid://shopify/ReverseFulfillmentOrderDisposition/4071292972",
"createdAt": "2026-09-22T09:14:22Z",
"location": {
"id": "gid://shopify/Location/11125850169",
"name": "Test Location 1"
}
}
]
}
}
]
}
}
}
]
},
"refunds": {
"edges": []
},
"returnLineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/UnverifiedReturnLineItem/79839068204",
"quantity": 1,
"customerNote": null,
"refundableQuantity": 1,
"refundedQuantity": 0,
"processableQuantity": 0,
"processedQuantity": 0,
"unprocessedQuantity": 1,
"unitPrice": {
"amount": "75.0",
"currencyCode": "USD"
},
"returnReasonNote": "",
"returnReason": "UNKNOWN",
"returnReasonDefinition": {
"deleted": false,
"handle": "unknown",
"id": "gid://shopify/ReturnReasonDefinition/1",
"name": "Unknown"
}
}
},
{
"node": {
"id": "gid://shopify/UnverifiedReturnLineItem/79839100972",
"quantity": 1,
"customerNote": null,
"refundableQuantity": 1,
"refundedQuantity": 0,
"processableQuantity": 0,
"processedQuantity": 0,
"unprocessedQuantity": 1,
"unitPrice": {
"amount": "70.0",
"currencyCode": "USD"
},
"returnReasonNote": "",
"returnReason": "UNKNOWN",
"returnReasonDefinition": {
"deleted": false,
"handle": "unknown",
"id": "gid://shopify/ReturnReasonDefinition/1",
"name": "Unknown"
}
}
},
{
"node": {
"id": "gid://shopify/UnverifiedReturnLineItem/79839133740",
"quantity": 1,
"customerNote": null,
"refundableQuantity": 1,
"refundedQuantity": 0,
"processableQuantity": 0,
"processedQuantity": 0,
"unprocessedQuantity": 1,
"unitPrice": {
"amount": "78.0",
"currencyCode": "USD"
},
"returnReasonNote": "",
"returnReason": "UNKNOWN",
"returnReasonDefinition": {
"deleted": false,
"handle": "unknown",
"id": "gid://shopify/ReturnReasonDefinition/1",
"name": "Unknown"
}
}
}
]
},
"exchangeLineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/ExchangeLineItem/3636265004",
"quantity": 1,
"lineItems": [
{
"id": "gid://shopify/LineItem/16842789322796",
"quantity": 1,
"unfulfilledQuantity": 0,
"nonFulfillableQuantity": 0,
"sku": null,
"variant": null,
"variantTitle": null,
"isGiftCard": true,
"product": null,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "240.3",
"currencyCode": "USD"
}
},
"originalTotalSet": {
"presentmentMoney": {
"amount": "240.3",
"currencyCode": "USD"
}
},
"discountedUnitPriceSet": {
"presentmentMoney": {
"amount": "240.3",
"currencyCode": "USD"
}
},
"discountedUnitPriceAfterAllDiscountsSet": {
"presentmentMoney": {
"amount": "240.3",
"currencyCode": "USD"
}
},
"discountedTotalSet": {
"presentmentMoney": {
"amount": "240.3",
"currencyCode": "USD"
}
},
"discountAllocations": [],
"taxLines": [
{
"priceSet": {
"presentmentMoney": {
"amount": "0.0",
"currencyCode": "USD"
}
}
},
{
"priceSet": {
"presentmentMoney": {
"amount": "0.0",
"currencyCode": "USD"
}
}
},
{
"priceSet": {
"presentmentMoney": {
"amount": "0.0",
"currencyCode": "USD"
}
}
},
{
"priceSet": {
"presentmentMoney": {
"amount": "0.0",
"currencyCode": "USD"
}
}
}
]
}
]
}
}
]
}
}
}
]
}
}